]> git.baikalelectronics.ru Git - 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)
commit1848567dc9a5ab3effb5e2d3b5444d32f630a401
treef4cd2e48f6d3e2e798d617c2ba64497845121d94
parent9cf8413d53b13ae5c204d950c81ca18542b03b30
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