Skip to content

Updates for powerpc vas log buffer

Mamatha Inamdar requested to merge mainamdar/centos-stream-9:RHEL-14975 into main

Description: Updates for powerpc vas log buffer

JIRA: https://issues.redhat.com/browse/RHEL-14975

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=58297629

Tested: Verified Brew build test kernel RPMs and confirmed issue is resovled

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

commit 73b25505ce043b561028e5571d84dc82aa53c2b4 Author: Haren Myneni haren@linux.ibm.com Date: Thu Oct 19 14:50:33 2023 -0700

powerpc/vas: Limit open window failure messages in log bufffer

The VAS open window call prints error message and returns -EBUSY
after the migration suspend event initiated and until the resume
event completed on the destination system. It can cause the log
buffer filled with these error messages if the user space issues
continuous open window calls.  Similar case even for DLPAR CPU
remove event when no credits are available until the credits are
freed or with the other DLPAR CPU add event.

So changes in the patch to use pr_err_ratelimited() instead of
pr_err() to display open window failure and not-available credits
error messages.

Use pr_fmt() and make the corresponding changes to have the
consistencein prefix all pr_*() messages (vas-api.c).

Fixes: 37e6764895ef ("powerpc/pseries/vas: Add VAS migration handler")
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
[mpe: Use "vas-api" as the prefix to match the file name.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231019215033.1335251-1-haren@linux.ibm.com

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

Merge request reports