Skip to content

[PW_SID:1147299] RISC-V Sspesa: Linux perf precise sample attribution - #2485

Closed
linux-riscv-bot wants to merge 4 commits into
workflowfrom
pw1147299
Closed

[PW_SID:1147299] RISC-V Sspesa: Linux perf precise sample attribution#2485
linux-riscv-bot wants to merge 4 commits into
workflowfrom
pw1147299

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1147299 applied to workflow

Name: RISC-V Sspesa: Linux perf precise sample attribution
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1147299
Version: 1

Linux RISC-V bot and others added 4 commits August 16, 2026 23:19
Document the RISC-V Performance Event Sampling extensions Sspesa
(Precise Event Sample Attribution) and Ssplcofi (Precise Local Counter
Overflow Interrupt) in the ISA extensions binding.

Add a dependency rule requiring Sspesa to be present whenever Ssplcofi
is present.

Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add ISA extension detection for the RISC-V Performance Event Sampling
extensions Sspesa (Precise Event Sample Attribution) and Ssplcofi
(Precise Local Counter Overflow Interrupt).

Ssplcofi requires Sspesa, so validate that Sspesa is present before
enabling Ssplcofi.

Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
When the Sspesa (Precise Event Sample Attribution) extension is
available and a counter overflows, the hardware records a sample PC in
shpmspc register and the counter ID and additional implementation-defined
data in shpmsdata register.

In the SBI PMU overflow handler, use shpmspc to report sample PC via
PERF_SAMPLE_IP for the counter that caused the overflow. Shpmsdata is
exported as raw data to userspace when events request PERF_SAMPLE_RAW
sample type and it assists in deriving the sample PC from shpmspc if
precise attribution is not supported for the event.

If sspesa is not available or for counters that don't match
shpmsdata.CNTRID, fallback to epc for PERF_SAMPLE_IP.

Signed-off-by: Mayuresh Chitale <mayuresh.chitale@oss.qualcomm.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 168.70 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1133.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1448.26 seconds
Result: PENDING

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 46.67 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 88.84 seconds
Result: PENDING

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 34.28 seconds
Result: PENDING

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 123.80 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 20.87 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
kdoc
Desc: Detects for kdoc errors
Duration: 29.12 seconds
Result: PENDING

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
module-param
Desc: Detect module_param changes
Duration: 41.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 21.71 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[RFC,1/3] dt-bindings: riscv: Add Sspesa and Ssplcofi extensions"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 60.91 seconds
Result: PENDING

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 169.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1938.70 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 2353.79 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.90 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 30.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.20 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 86.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[RFC,2/3] riscv: Add detection for Sspesa and Ssplcofi extensions"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[RFC,3/3] perf/riscv: Use Sspesa for precise sample attribution"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 141.81 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[RFC,3/3] perf/riscv: Use Sspesa for precise sample attribution"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1421.97 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow branch 28 times, most recently from aa59017 to 875d2a7 Compare August 24, 2026 20:03
@linux-riscv-bot
linux-riscv-bot deleted the pw1147299 branch August 25, 2026 00:50
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.

1 participant