[PW_SID:1081352] drivers/perf: riscv: do not restart throttled events after overflow#1770
[PW_SID:1081352] drivers/perf: riscv: do not restart throttled events after overflow#1770linux-riscv-bot wants to merge 1 commit into
Conversation
Perf core uses `event->hw.interrupts == MAX_INTERRUPTS` to keep throttled events stopped until it explicitly unthrottles them later. However, current RISC-V Perf/PMU system unconditionally restarts all the counters at the end of overflow handler, which bypasses the perf core's throttle mechanism. Therefore, an unreasonable small sampling period such as `perf top -c 20` may cause an IRQ storm and eventually leads to soft lockup. Fix this by filtering the counter start/restart mask: do not restart counters for events already marked as throttled by the perf core. This retains the throttle effect and prevents interrupt storms in such workloads. Signed-off-by: Zhanpeng Zhang <zhangzhanpeng.jasper@bytedance.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
|
Patch 1: "drivers/perf: riscv: do not restart throttled events after overflow" |
PR for series 1081352 applied to workflow__riscv__fixes
Name: drivers/perf: riscv: do not restart throttled events after overflow
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1081352
Version: 1