Skip to content

[PW_SID:1121386] perf kvm/riscv: Fix event key collision between interrupts and exceptions#2211

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1121386
Closed

[PW_SID:1121386] perf kvm/riscv: Fix event key collision between interrupts and exceptions#2211
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1121386

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1121386 applied to workflow__riscv__fixes

Name: perf kvm/riscv: Fix event key collision between interrupts and exceptions
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1121386
Version: 1

Linux RISC-V bot and others added 2 commits July 1, 2026 03:48
…ions

RISC-V scause encodes interrupts and exceptions in the same
cause field, with bit 63 on RV64 and bit 31 on RV32 used to
distinguish interrupts from exceptions. The lower cause bits
overlap between the two namespaces, so masking off the interrupt
bit makes distinct IRQ and exception events map to the same key.

This affects perf kvm stat exit-reason decoding. For example,
IRQ_S_TIMER and EXC_LOAD_ACCESS both use cause code 5, and can be
misreported as the wrong exit reason.

Fix this by using the full scause value as the lookup key in
event_get_key(). Also split TRAP() into TRAP_EXC() and
TRAP_IRQ() so interrupt entries are encoded with the
architecture-specific IRQ bit set, matching the value reported by
hardware.

Fixes: ceea279 ("perf kvm stat: Remove use of the arch directory")
Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 158.04 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1178.80 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1507.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 30.07 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 31.53 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.00 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.51 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
kdoc
Desc: Detects for kdoc errors
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "perf kvm/riscv: Fix event key collision between interrupts and exceptions"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.32 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 3 times, most recently from a50938c to 40ba5ca Compare July 8, 2026 17:32
@linux-riscv-bot
linux-riscv-bot deleted the pw1121386 branch July 9, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants