]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/vas: Validate window credits
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 8 Nov 2017 02:23:42 +0000 (18:23 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Nov 2017 22:03:05 +0000 (09:03 +1100)
commit51b537124fc24074aee67cae9ca94ec4d9c204fc
treef4cd2e48f6d3e2e798d617c2ba64497845121d94
parente34917fbee1226144c94413697ddbf2d5b06d0d3
powerpc/vas: Validate window credits

NX-842, the only user of VAS, sets the window credits to default values
but VAS should check the credits against the possible max values.

The VAS_WCREDS_MIN is not needed and can be dropped.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/vas-window.c
arch/powerpc/platforms/powernv/vas.h