OSDN Git Service

powerpc/pseries/vas: Use QoS credits from the userspace
authorHaren Myneni <haren@linux.ibm.com>
Sat, 19 Mar 2022 09:28:09 +0000 (02:28 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 May 2022 12:00:47 +0000 (22:00 +1000)
commit57831bfb5e78777dc399e351ed68ef77c3aee385
tree975073b1bf63c13cb586fb134f6650e62d45992f
parentbb82c574691daf8f7fa9a160264d15c5804cb769
powerpc/pseries/vas: Use QoS credits from the userspace

The user can change the QoS credits dynamically with the
management console interface which notifies OS with sysfs. After
returning from the OS interface successfully, the management
console updates the hypervisor. Since the VAS capabilities in
the hypervisor is not updated when the OS gets the update,
the kernel is using the old total credits value from the
hypervisor. Fix this issue by using the new QoS credits
from the userspace instead of depending on VAS capabilities
from the hypervisor.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/76d156f8af1e03cc09369d68e0bfad0c40031bcc.camel@linux.ibm.com
arch/powerpc/platforms/pseries/vas-sysfs.c
arch/powerpc/platforms/pseries/vas.c
arch/powerpc/platforms/pseries/vas.h