]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45d9b263410f8e1456586fef4d38e4e2231c12ce
tree975073b1bf63c13cb586fb134f6650e62d45992f
parent363843fa921a7aca05ee88acddb0eb14e3846ce1
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