summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/dt_cpu_ftrs.c
diff options
context:
space:
mode:
authorMichael Neuling2018-03-27 06:37:23 +0200
committerMichael Ellerman2018-03-27 14:55:33 +0200
commit622aa35e8f6a077f034fe4ad053b6a2e9d278414 (patch)
tree9a42e7a822ce606312770571a3bbaf7f41e8186b /arch/powerpc/kernel/dt_cpu_ftrs.c
parentKVM: PPC: Book3S HV: Handle migration with POWER9 disabled DAWR (diff)
downloadkernel-qcow2-linux-622aa35e8f6a077f034fe4ad053b6a2e9d278414.tar.gz
kernel-qcow2-linux-622aa35e8f6a077f034fe4ad053b6a2e9d278414.tar.xz
kernel-qcow2-linux-622aa35e8f6a077f034fe4ad053b6a2e9d278414.zip
powerpc: Disable DAWR on POWER9 via CPU feature quirk
This disables the DAWR on all POWER9 CPUs via cpu feature quirk. Using the DAWR on POWER9 can cause xstops, hence we need to disable it. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/dt_cpu_ftrs.c')
-rw-r--r--arch/powerpc/kernel/dt_cpu_ftrs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/dt_cpu_ftrs.c b/arch/powerpc/kernel/dt_cpu_ftrs.c
index 0a0c601c6ade..0af2c5dc5162 100644
--- a/arch/powerpc/kernel/dt_cpu_ftrs.c
+++ b/arch/powerpc/kernel/dt_cpu_ftrs.c
@@ -713,6 +713,9 @@ static __init void cpufeatures_cpu_quirks(void)
else if ((version & 0xffffefff) == 0x004e0202)
cur_cpu_spec->cpu_features |= CPU_FTR_P9_TM_HV_ASSIST |
CPU_FTR_P9_TM_XER_SO_BUG;
+
+ if ((version & 0xffff0000) == 0x004e0000)
+ cur_cpu_spec->cpu_features &= ~(CPU_FTR_DAWR);
}
static void __init cpufeatures_setup_finished(void)