Skip to content

[PW_SID:1118782] RISC-V IOMMU HPM support#2173

Closed
linux-riscv-bot wants to merge 3 commits into
workflow__riscv__fixesfrom
pw1118782
Closed

[PW_SID:1118782] RISC-V IOMMU HPM support#2173
linux-riscv-bot wants to merge 3 commits into
workflow__riscv__fixesfrom
pw1118782

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1118782 applied to workflow__riscv__fixes

Name: RISC-V IOMMU HPM support
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1118782
Version: 3

Linux RISC-V bot and others added 3 commits June 25, 2026 20:36
Add a new driver to support the RISC-V IOMMU PMU. This is an auxiliary
device driver created by the parent RISC-V IOMMU driver.

The RISC-V IOMMU PMU separates the cycle counter from the event counters.
The cycle counter is not associated with iohpmevt0, so a software-defined
cycle event is required for the perf subsystem.

The number and width of the counters are hardware-implemented and must
be detected at runtime.

The performance monitor provides counters with filtering support to
collect events for specific device ID/process ID, or GSCID/PSCID.

PMU-related definitions are moved into the perf driver, where they are
used exclusively.

Suggested-by: David Laight <david.laight.linux@gmail.com>
Suggested-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/linux-riscv/20260618143634.7f3dd6c5@pumpkin/
Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Create an auxiliary device for HPM when the IOMMU supports a
hardware performance monitor.

Suggested-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 144.57 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1476.78 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1746.63 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 29.13 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 30.68 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 3.20 seconds
Result: WARNING
Output:

WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#143: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 795 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit 80fe14e21a8d ("drivers/perf: riscv-iommu: add risc-v iommu pmu driver") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 1 warnings, 0 checks, 795 lines checked
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.46 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.41 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
kdoc
Desc: Detects for kdoc errors
Duration: 1.55 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
module-param
Desc: Detect module_param changes
Duration: 0.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.43 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v3,1/2] drivers/perf: riscv-iommu: add risc-v iommu pmu driver"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.53 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 144.97 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1411.66 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1734.40 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 29.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 30.18 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.99 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 87.97 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.45 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
kdoc
Desc: Detects for kdoc errors
Duration: 1.15 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
module-param
Desc: Detect module_param changes
Duration: 0.51 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.52 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v3,2/2] iommu/riscv: create a auxiliary device for HPM"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.55 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from 89be0ce to dc5ff20 Compare July 7, 2026 03:25
@linux-riscv-bot
linux-riscv-bot deleted the pw1118782 branch July 8, 2026 01:56
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