Skip to content

Commit 4d6c51b

Browse files
committed
powerpc/64s: Fix Power9 DD2.1 logic in DT CPU features
I got the logic wrong in the DT CPU features code when I added the Power9 DD2.1 feature. We should be setting the bit if we detect a DD2.1, not clearing it if we detect a DD2.0. This code isn't actually exercised at the moment so nothing is actually broken. Fixes: 3ffa9d9 ("powerpc/64s: Fix Power9 DD2.0 workarounds by adding DD2.1 feature") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 73ce9ae commit 4d6c51b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/kernel/dt_cpu_ftrs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ static __init void cpufeatures_cpu_quirks(void)
735735
*/
736736
if ((version & 0xffffff00) == 0x004e0100)
737737
cur_cpu_spec->cpu_features |= CPU_FTR_POWER9_DD1;
738-
else if ((version & 0xffffefff) == 0x004e0200)
739-
cur_cpu_spec->cpu_features &= ~CPU_FTR_POWER9_DD2_1;
738+
else if ((version & 0xffffefff) == 0x004e0201)
739+
cur_cpu_spec->cpu_features |= CPU_FTR_POWER9_DD2_1;
740740
}
741741

742742
static void __init cpufeatures_setup_finished(void)

0 commit comments

Comments
 (0)