]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/pkeys: Use PVR check instead of cpu feature
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:24 +0000 (08:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:57 +0000 (22:57 +1000)
commitcfbae5a7eac503f8958ae00c2649131a9d03e9c0
tree6085c2bc19d3b5c5a584c1d8da8930423b333ddf
parentbb2cdf73fd54693618506a0b91e37733dd81e172
powerpc/book3s64/pkeys: Use PVR check instead of cpu feature

We are wrongly using CPU_FTRS_POWER8 to check for P8 support. Instead, we should
use PVR value. Now considering we are using CPU_FTRS_POWER8, that
implies we returned true for P9 with older firmware. Keep the same behavior
by checking for P9 PVR value.

Fixes: b5a994822277 ("powerpc: Enable pkey subsystem")
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/20200709032946.881753-2-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/pkeys.c