Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d6c51b1 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: 3ffa9d9e ("powerpc/64s: Fix Power9 DD2.0 workarounds by adding DD2.1 feature")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 73ce9aec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -735,8 +735,8 @@ static __init void cpufeatures_cpu_quirks(void)
	 */
	if ((version & 0xffffff00) == 0x004e0100)
		cur_cpu_spec->cpu_features |= CPU_FTR_POWER9_DD1;
	else if ((version & 0xffffefff) == 0x004e0200)
		cur_cpu_spec->cpu_features &= ~CPU_FTR_POWER9_DD2_1;
	else if ((version & 0xffffefff) == 0x004e0201)
		cur_cpu_spec->cpu_features |= CPU_FTR_POWER9_DD2_1;
}

static void __init cpufeatures_setup_finished(void)