Skip to content

arm64/hw_breakpoint: Enable FEAT_Debugv8p9

Anshuman Khandual kvmarm linux-arm-kernel linux-doc lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 14 repliesIn review
  2. v246 patches 38 repliesSuperseded
  3. v147 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Marked ID_AA64DFR1_EL1.ABLE as FTR_NONSTRICT in ftr_id_aa64dfr1[]
- Dropped MDCR_EL3.TDA boot requirement from documentation (separate series)
- Dropped MDCR_EL2_EBWE definition as MDCR_EL2 is now defined in tools sysreg
- Used SYS_FIELD_PREP() in read_wb_reg() and write_wb_reg()
- Added MAX_PER_BANK based BUILD_BUG_ON() tests in arch_hw_breakpoint_init()
- Dropped local variables i.e mdsel_bank and index
- Derived bank and index from MAX_PER_BANK as required

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1arch/arm64/tools/sysreg+2 -00 replies
2/7arm64/sysreg: Add register fields for MDSELR_EL1arch/arm64/tools/sysreg+11 -00 replies
3/7arm64/sysreg: Add register fields for HDFGRTR2_EL2arch/arm64/tools/sysreg+29 -00 replies
4/7arm64/sysreg: Add register fields for HDFGWTR2_EL2arch/arm64/tools/sysreg+28 -00 replies
5/7arm64/cpufeature: Add field details for ID_AA64DFR1_EL1 registerarch/arm64/kernel/cpufeature.c+16 -50 replies
6/7arm64/boot: Enable EL2 requirements for FEAT_Debugv8p9Documentation/arch/arm64/booting.rst arch/arm64/include/asm/el2_setup.h+44 -06 replies
7/7arm64/hw_breakpoint: Enable FEAT_Debugv8p9arch/arm64/include/asm/debug-monitors.h arch/arm64/include/asm/hw_breakpoint.h arch/arm64/kernel/debug-monitors.c +1 more+95 -168 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchMark Brown
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/7] arm64/hw_breakpoint: Enable FEAT_Debugv8p9

This series enables FEAT_Debugv8p9 thus extending breakpoint and watchpoint support upto 64. This series is based on v6.13-rc3 although this depends on FEAT_FGT2 FGU series posted earlier, for MDSELR_EL1 handling in various KVM guest configurations.

https://lore.kernel.org/all/[email protected]/

Cc Jonathan Corbet <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>
Cc James Morse <[email protected]>
Cc Suzuki K Poulose <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Mark Brown <[email protected]>
Cc Mark Rutland <[email protected]>

Changes in V3:

- Marked ID_AA64DFR1_EL1.ABLE as FTR_NONSTRICT in ftr_id_aa64dfr1[]
- Dropped MDCR_EL3.TDA boot requirement from documentation (separate series)
- Dropped MDCR_EL2_EBWE definition as MDCR_EL2 is now defined in tools sysreg
- Used SYS_FIELD_PREP() in read_wb_reg() and write_wb_reg()
- Added MAX_PER_BANK based BUILD_BUG_ON() tests in arch_hw_breakpoint_init()
- Dropped local variables i.e mdsel_bank and index
- Derived bank and index from MAX_PER_BANK as required

Changes in V2:

https://lore.kernel.org/all/[email protected]/

Following changes have been made per review comments from Mark Rutland

- Orr MDCR_EL2_EBWE directly without an intermittent register
- Alphabetically order header files in debug-monitors.c
- Dropped embwe_ref_count mechanism
- Dropped preempt_enable() from AARCH64_DBG_READ
- Dropped preempt_disable() from AARCH64_DBG_WRITE
- Dropped set_bank_index()
- Renamed read/write_wb_reg() as __read/__write_wb_reg()
- Modified read/write_wb_reg() to have MDSELR_E1 based banked read/write
- Added required sysreg tools patches from KVM FEAT_FGT2 series for build

Changes in V1:

https://lore.kernel.org/all/[email protected]/

- Changed FTR_STRICT to FTR_NONSTRICT for the following ID_AA64DFR1_EL1 register fields - ABL_CMPs, DPFZS, PMICNTR, CTX_CMPs, WRPs and BRPs

Changes in RFC V2:

https://lore.kernel.org/linux-arm-kernel/[email protected]/

- This series has been split from RFC V1 dealing only with arm64 breakpoints
- Restored back DBG_MDSCR_MASK definition (unrelated change)
- Added preempt_disable()/enable() blocks between selecting banks and registers

Changes in RFC:

https://lore.kernel.org/all/[email protected]/

Anshuman Khandual (7):
arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1 arm64/sysreg: Add register fields for MDSELR_EL1 arm64/sysreg: Add register fields for HDFGRTR2_EL2 arm64/sysreg: Add register fields for HDFGWTR2_EL2 arm64/cpufeature: Add field details for ID_AA64DFR1_EL1 register arm64/boot: Enable EL2 requirements for FEAT_Debugv8p9 arm64/hw_breakpoint: Enable FEAT_Debugv8p9

 Documentation/arch/arm64/booting.rst    | 18 +++++++
 arch/arm64/include/asm/debug-monitors.h |  1 +
 arch/arm64/include/asm/el2_setup.h      | 26 +++++++++
 arch/arm64/include/asm/hw_breakpoint.h  | 47 +++++++++++++----
 arch/arm64/kernel/cpufeature.c          | 21 ++++++--
 arch/arm64/kernel/debug-monitors.c      | 15 ++++--
 arch/arm64/kernel/hw_breakpoint.c       | 48 ++++++++++++++++-
 arch/arm64/tools/sysreg                 | 70 +++++++++++++++++++++++++
 8 files changed, 225 insertions(+), 21 deletions(-)
Signature · 1 line
2.25.1