]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix DT CPU features Power9 DD2.1 logic
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Jun 2018 13:23:56 +0000 (23:23 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Jun 2018 11:28:21 +0000 (21:28 +1000)
commit280480ce0a4fe47b9eda3e8ba4261bd9f4e56343
treeec267d992c4bcd8d2ad3843c96c915d3181c509c
parentce7da158cd9223309b5f44c18a86a7bbdaad3038
powerpc/64s: Fix DT CPU features Power9 DD2.1 logic

In the device tree CPU features quirk code we want to set
CPU_FTR_POWER9_DD2_1 on all Power9s that aren't DD2.0 or earlier. But
we got the logic wrong and instead set it on all CPUs that aren't
Power9 DD2.0 or earlier, ie. including Power8.

Fix it by making sure we're on a Power9. This isn't a bug in practice
because the only code that checks the feature is Power9 only to begin
with. But we'll backport it anyway to avoid confusion.

Fixes: a28bdf391b60 ("powerpc/64s: Fix POWER9 DD2.2 and above in DT CPU features")
Cc: stable@vger.kernel.org # v4.17+
Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/dt_cpu_ftrs.c