summaryrefslogtreecommitdiff
path: root/scripts/create-binary-archive.sh
diff options
context:
space:
mode:
authorMichael Ellerman <[email protected]>2026-03-24 23:29:20 +1100
committerAnup Patel <[email protected]>2026-05-11 11:30:22 +0530
commit65bb705f7b59d8f2a5683160f31db15b4e2c64d7 (patch)
treee60b4a558b4240e00a40c79eab3f716794bd612b /scripts/create-binary-archive.sh
parent3d8f1f386479219c4236b5c0fe483442c1bc7461 (diff)
lib/sbi_pmu: Don't fallback to fixed counters when sscofpmf && !smcntrpmf
Currently when searching for a hardware counter for an event, if no programmable counter is available, the code falls back to using a fixed counter (mcycle/minstret) if one matches the event. However the fallback is incorrect when sscofpmf is present but smcntrpmf is not. That's because with sscofpmf, programmable counters support mode filtering, but the fixed counters do not (without smcntrpmf). Even if the caller didn't configure mode filtering, by default programmable counters don't count M mode when sscofpmf is present, whereas mcycle/minstret do. Fix the logic to not fallback to a fixed counter if sscofpmf is present but smcntrpmf is not. Fixes: 0c304b661965 ("lib: sbi: Allow programmable counters to monitor cycle/instret events") Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts/create-binary-archive.sh')
0 files changed, 0 insertions, 0 deletions