linux/arch/powerpc
Nicholas Piggin 252988cbf0 powerpc: Don't write to DABR on >= Power8 if DAWR is disabled
flush_thread() calls __set_breakpoint() via set_debug_reg_defaults()
without checking ppc_breakpoint_available(). On Power8 or later CPUs
which have the DAWR feature disabled that will cause a write to the
DABR which is incorrect as those CPUs don't have a DABR.

Fix it two ways, by checking ppc_breakpoint_available() in
set_debug_reg_defaults(), and also by reworking __set_breakpoint() to
only write to DABR on Power7 or earlier.

Fixes: 9654153158 ("powerpc: Disable DAWR in the base POWER9 CPU features")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Rework the logic in __set_breakpoint()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-04-03 21:50:08 +10:00
..
boot powerpc/boot: Remove duplicate typedefs from libfdt_env.h 2018-04-01 00:47:47 +11:00
configs powerpc updates for 4.16 2018-02-02 10:01:04 -08:00
crypto crypto: hash - annotate algorithms taking optional key 2018-01-12 23:03:35 +11:00
include powerpc: Fix oops due to bad access of lppaca on bare metal 2018-04-03 21:50:07 +10:00
kernel powerpc: Don't write to DABR on >= Power8 if DAWR is disabled 2018-04-03 21:50:08 +10:00
kvm KVM: PPC: Book3S HV: Fix ppc_breakpoint_available compile error 2018-04-03 21:50:07 +10:00
lib powerpc/64s: Set assembler machine type to POWER4 2018-04-01 00:47:49 +11:00
math-emu
mm powerpc/mm/radix: Fix always false comparison against MMU_NO_CONTEXT 2018-04-01 22:15:34 +10:00
net powerpc/bpf/jit: Fix 32-bit JIT for seccomp_data access 2018-02-22 14:36:08 +11:00
oprofile powerpc: Use sizeof(*foo) rather than sizeof(struct foo) 2018-03-20 16:47:53 +11:00
perf powerpc/64s: Remove POWER4 support 2018-04-01 00:47:50 +11:00
platforms powerpc/64s: Add POWER9 CPU type selection 2018-04-01 22:15:32 +10:00
purgatory
sysdev Merge branch 'topic/paca' into next 2018-03-31 09:09:36 +11:00
tools
xmon Merge branch 'topic/paca' into next 2018-03-31 09:09:36 +11:00
Kconfig Merge branch 'linus' into sched/urgent, to resolve conflicts 2018-02-06 21:12:31 +01:00
Kconfig.debug powerpc: Add new kconfig CONFIG_PPC_IRQ_SOFT_MASK_DEBUG 2018-01-19 22:37:03 +11:00
Makefile powerpc/64s: Add POWER9 CPU type selection 2018-04-01 22:15:32 +10:00
Makefile.postlink