Re: [PATCH v4 0/6] LoongArch: Fix perf hardware breakpoints

From: Huacai Chen

Date: Sat Oct 03 2026 - 00:02:03 EST


Applied, thanks.


Huacai

On Thu, Sep 24, 2026 at 10:27 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
>
> v4:
> -- Do not modify thread_struct layout for hardware breakpoints
>
> This series addresses severe functional degradations in standard
> perf_event usage, including initialization failures and one-shot
> triggering limitations.
>
> Tiezhu Yang (6):
> LoongArch: Fix bitmask corruption in update_bp_registers()
> LoongArch: Remove redundant call in update_bp_registers()
> LoongArch: Fix architectural naming typo for CSR_FWPS_SKIP
> LoongArch: Only send SIGTRAP signal if necessary in do_watch()
> LoongArch: Fix perf hardware breakpoint failure via installation
> LoongArch: Fix one-shot limitation for perf hardware breakpoints
>
> arch/loongarch/include/asm/hw_breakpoint.h | 8 +--
> arch/loongarch/include/asm/loongarch.h | 7 ++-
> arch/loongarch/include/asm/processor.h | 3 +
> arch/loongarch/include/asm/switch_to.h | 2 +-
> arch/loongarch/kernel/hw_breakpoint.c | 66 ++++++++++++++++++----
> arch/loongarch/kernel/traps.c | 12 ++--
> 6 files changed, 74 insertions(+), 24 deletions(-)
>
> --
> 2.42.0
>
>