From: sashiko-bot@kernel.org
To: "Eric Lin" <eric.lin@sifive.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org,
linux-perf-users@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH RFC] dt-bindings: perf: riscv,pmu: Add interrupts-extended property
Date: Thu, 02 Jul 2026 09:16:27 +0000 [thread overview]
Message-ID: <20260702091627.C5B5D1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702-pmu-dt-property-v1-1-a7a7737afb72@sifive.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Overloading `interrupts-extended` as the sole CPU affinity map fails when PMU interrupts are optional.
--
commit c04ae2b471021dd39ca8ccf1e788362245660a9d
Author: Eric Lin <eric.lin@sifive.com>
dt-bindings: perf: riscv,pmu: Add interrupts-extended property
This commit adds the interrupts-extended property to the riscv,pmu binding
to define the connection between the PMU overflow interrupt and the CPU
local interrupt controller. It also notes this property is used by software
to associate a PMU node with a specific CPU on heterogeneous systems.
> diff --git a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml
> --- a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml
> +++ b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml
> @@ -34,6 +34,13 @@ properties:
> compatible:
> const: riscv,pmu
>
> + interrupts-extended:
> + minItems: 1
> + maxItems: 4095
> + description:
> + Specifies the interrupt-parent and local interrupt index for each CPU's
> + PMU counter overflow. Each item points to a riscv,cpu-intc node.
[Severity: Medium]
Does overloading interrupts-extended as the sole CPU affinity map cause
failures on systems without PMU interrupts?
If a heterogeneous RISC-V SoC lacks the optional Sscofpmf extension, it
would omit the interrupts-extended property entirely. Without this property,
it seems the OS would have no mechanism to determine which PMU node belongs
to which CPU, potentially breaking perf functionality on such hardware.
Would it be safer to introduce a dedicated affinity property to prevent
future fragmentation when PMU interrupts are absent?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260702-pmu-dt-property-v1-1-a7a7737afb72@sifive.com?part=1
prev parent reply other threads:[~2026-07-02 9:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 9:04 [PATCH RFC] dt-bindings: perf: riscv,pmu: Add interrupts-extended property Eric Lin
2026-07-02 9:16 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260702091627.C5B5D1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eric.lin@sifive.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox