]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix P10 PVR revision in /proc/cpuinfo for SMT4 cores
authorMichael Neuling <mikey@neuling.org>
Mon, 3 Aug 2020 03:56:00 +0000 (13:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 Aug 2020 03:11:22 +0000 (13:11 +1000)
commitf7c0daa82e0f2c0b6d2284ef4fb21cc4bdc94fe6
tree6fece2a8ae8eec2fc286f8107305465452024d74
parente5f0bf958198ed018c9fdf06e8d307ced9af9c95
powerpc: Fix P10 PVR revision in /proc/cpuinfo for SMT4 cores

On POWER10 bit 12 in the PVR indicates if the core is SMT4 or SMT8.
Bit 12 is set for SMT4.

Without this patch, /proc/cpuinfo on a SMT4 DD1 POWER10 looks like
this:
  cpu             : POWER10, altivec supported
  revision        : 17.0 (pvr 0080 1100)

Fixes: e5326d46e07e ("powerpc: Add POWER10 architected mode")
Cc: stable@vger.kernel.org # v5.8
Signed-off-by: Michael Neuling <mikey@neuling.org>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200803035600.1820371-1-mikey@neuling.org
arch/powerpc/kernel/setup-common.c