]> 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)
commit1c4ce99ccd5fecdb22d07e6f35b827423275bd00
tree975073b1bf63c13cb586fb134f6650e62d45992f
parent69fecf99e9a4b7eeda872abbb9cd21935dcf7a51
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