]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/kup: Check max key supported before enabling kup
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 2 Dec 2020 04:38:54 +0000 (10:08 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:27 +0000 (01:01 +1100)
commit8e98a1ab1023a24d4d93e7cfed10d76e5557974a
treea96718f275df5029d775f4c7bea540ef8e879d30
parent1ab737474bb2668cd3ce5eabaf2da090ed25e337
powerpc/book3s64/kup: Check max key supported before enabling kup

Don't enable KUEP/KUAP if we support less than or equal to 3 keys.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201202043854.76406-1-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/kup.h
arch/powerpc/mm/book3s64/pkeys.c
arch/powerpc/mm/init-common.c