Skip to content

Commit

Permalink
powerpc: Disable DAWR on POWER9 via CPU feature quirk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Neuling authored and Michael Ellerman committed Mar 27, 2018
1 parent b53221e commit 622aa35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/dt_cpu_ftrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 622aa35

Please sign in to comment.