From: Robin Murphy <robin.murphy@arm.com>
To: Baisheng Gao <baisheng.gao@unisoc.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: cixi.geng@linux.dev, hao_hao.wang@unisoc.com,
linux-arm-kernel@lists.infradead.org,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] dt-bindings/perf: Drop irqs for clock domains without a PMU instance
Date: Mon, 26 Jan 2026 17:09:43 +0000 [thread overview]
Message-ID: <5f260792-40f2-4a54-a5d1-45644bc9012b@arm.com> (raw)
In-Reply-To: <20260126033029.7923-3-baisheng.gao@unisoc.com>
On 2026-01-26 3:30 am, Baisheng Gao wrote:
> No need to specify the interrupts for the clock domains without a
> PMU instance.
Yes there is a need, because it's what the binding has already defined
and systems are already implementing, so breaking compatibility at this
point more than a year after its introduction is not really acceptable.
And although there's no strict requirement for the DT and ACPI bindings
to be equivalent, in this case they currently are, and it doesn't seem
like you've accounted for ACPI here either.
Fact is, the Arm NI-700, NI-710AE, NoC S3 and SI L1 designs do all
define <CLKNAME>_nPMUINTERRUPT outputs for each <CLKNAME> domain, and
the intent of the binding was always to describe the hardware. If it's
the case that one or more of those interrupts are not wired up at all
(and presumably the corresponding PMU is never exposed to Non-Secure,
since it's unlikely to be useful), then at worst it's reasonable to use
dummy entries to pad the array.
If on the other hand you really have got something that is mangled to
the point of not being compatible with the stock Arm designs, then it
most likely warrants its own binding.
Thanks,
Robin.
> Signed-off-by: Baisheng Gao <baisheng.gao@unisoc.com>
> ---
> Documentation/devicetree/bindings/perf/arm,ni.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/perf/arm,ni.yaml b/Documentation/devicetree/bindings/perf/arm,ni.yaml
> index d66fffa256d5..40a5b8929ef2 100644
> --- a/Documentation/devicetree/bindings/perf/arm,ni.yaml
> +++ b/Documentation/devicetree/bindings/perf/arm,ni.yaml
> @@ -20,7 +20,8 @@ properties:
> interrupts:
> minItems: 1
> maxItems: 32
> - description: Overflow interrupts, one per clock domain, in order of domain ID
> + description: Overflow interrupts, one per clock domain which has a PMU
> + instance, in order of domain ID.
>
> required:
> - compatible
prev parent reply other threads:[~2026-01-26 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 3:30 [PATCH 0/2] Support " Baisheng Gao
2026-01-26 3:30 ` [PATCH 1/2] perf/arm-ni: Don't crash in probing " Baisheng Gao
2026-01-26 16:34 ` Robin Murphy
2026-01-26 3:30 ` [PATCH 2/2] dt-bindings/perf: Drop irqs for " Baisheng Gao
2026-01-26 17:09 ` Robin Murphy [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=5f260792-40f2-4a54-a5d1-45644bc9012b@arm.com \
--to=robin.murphy@arm.com \
--cc=baisheng.gao@unisoc.com \
--cc=cixi.geng@linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hao_hao.wang@unisoc.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh@kernel.org \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®