]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: cleanup AMR, IAMR when a key is allocated or freed
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:28 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:58:59 +0000 (22:58 +1100)
commit71b6ce5ce49d53f85b5070271bc2f6d74142dd65
treecbc35c25b030810556cab663e3800679df98b53d
parent8d1149aabe4ec606846861cd35497ac72a4bfd07
powerpc: cleanup AMR, IAMR when a key is allocated or freed

Cleanup the bits corresponding to a key in the AMR, and IAMR
register, when the key is newly allocated/activated or is freed.
We dont want some residual bits cause the hardware enforce
unintended behavior when the key is activated or freed.

Reviewed-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pkeys.h