]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix IBM_ARCH_VEC_NRCORES_OFFSET since POWER8NVL was added
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 8 Jun 2016 00:01:23 +0000 (10:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 8 Jun 2016 00:40:05 +0000 (10:40 +1000)
commit22ab6b8d7612d29e4997a43925ff1da7fc10f7cf
tree90d22d95bce265d5c5b7e5f1b6bb2d226be56a71
parentec340b2dfea4e9588adcd7c58d6d0c2a6545dc19
powerpc/pseries: Fix IBM_ARCH_VEC_NRCORES_OFFSET since POWER8NVL was added

The recent commit 1fcaad90a7f2 ("powerpc/pseries: Add POWER8NVL support
to ibm,client-architecture-support call") added a new PVR mask & value
to the start of the ibm_architecture_vec[] array.

However it missed the fact that further down in the array, we hard code
the offset of one of the fields, and then at boot use that value to
patch the value in the array. This means every update to the array must
also update the #define, ugh.

This means that on pseries machines we will misreport to firmware the
number of cores we support, by a factor of threads_per_core.

Fix it for now by updating the #define.

Fixes: 1fcaad90a7f2 ("powerpc/pseries: Add POWER8NVL support to ibm,client-architecture-support call")
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c