Skip to content

ARM: hw_breakpoint: fixes and improvements

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: hw_breakpoint: ensure OS lock is clear before writing to debug registersarch/arm/kernel/hw_breakpoint.c+22 -50 replies
2/4ARM: hw_breakpoint: reset control registers in hotplug patharch/arm/kernel/hw_breakpoint.c+15 -10 replies
3/4ARM: hw_breakpoint: correct and simplify alignment fixup codearch/arm/kernel/hw_breakpoint.c+31 -250 replies
4/4ARM: ptrace: fix style issue with hw_breakpoint interfacearch/arm/kernel/ptrace.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ARM: hw_breakpoint: fixes and improvements

Hello,

This patch series contains a number of fixes and improvements to the hw_breakpoint implementation for ARM. A quick summary:

* Support for cores that use the OS lock for debug register save/restore out of reset.

* A vastly simplified alignment model to match the v7 architecture. Breakpoints must be the same length as an instruction and be aligned to the same boundary. Watchpoints can be 1, 2, 4 or 8 bytes long and aligned to the appropriate datasize (byte, half-word, word, double-word).

* Minor style fix in ptrace.c

All feedback welcome!

Will Deacon (4):
ARM: hw_breakpoint: ensure OS lock is clear before writing to debug
registers
ARM: hw_breakpoint: reset control registers in hotplug path
ARM: hw_breakpoint: correct and simplify alignment fixup code
ARM: ptrace: fix style issue with hw_breakpoint interface

 arch/arm/kernel/hw_breakpoint.c |   99 ++++++++++++++++++++++++++------------
 arch/arm/kernel/ptrace.c        |    4 +-
 2 files changed, 70 insertions(+), 33 deletions(-)