From: sashiko-bot@kernel.org
To: "Yin Li" <yin.li@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 3/7] dt-bindings: arm: Add MPAM MSC binding
Date: Mon, 09 Nov 2026 10:38:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-204830@kernel.org> (raw)
In-Reply-To: <20261109-mpam-resctrl-dt-knp-support-v5-3-150335a79381@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] dt-bindings: arm: arm,mpam-msc: 4-cell reg on 1-cell bus in
example
- [Low] dt-bindings: arm: arm,mpam-msc: missing top-level required
property list
- [Low] dt-bindings: arm: arm,mpam-msc: property order and unused labels
in example
--
commit fcdcd9b567c42204dbc32cc6d1155a3dddba1926
Author: Rob Herring <robh@kernel.org>
dt-bindings: arm: Add MPAM MSC binding
This commit adds the Devicetree binding schema for Arm Memory System
Resource Partitioning and Monitoring (MPAM) Memory System Component (MSC)
nodes.
> diff --git a/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml b/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml
> new file mode 100644
> index 0000000000000..b52599b47a1cd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml
> @@ -0,0 +1,62 @@
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - const: arm,mpam-msc # Further details are discoverable
> + - items:
> + - const: arm,mpam-memory-controller-msc
> + - const: arm,mpam-msc
> +
> + reg:
> + maxItems: 1
> + description: A memory region containing registers as defined in the MPAM
> + specification.
> +
> + arm,not-ready-us:
> + description: The maximum time in microseconds for monitoring data to be
> + accurate after a settings change. For more information, see the
> + Not-Ready (NRDY) bit description in the MPAM specification.
> +
> +additionalProperties: false
[Severity: Low]
Should this schema include a required section listing compatible and reg?
do_mpam_msc_drv_probe() unconditionally maps MMIO resource 0 when probing
DT MSC nodes, so nodes omitting reg will pass dtbs_check and then fail to
probe at runtime.
> +
> +examples:
> + - |
> + L3: cache-controller@30000000 {
> + compatible = "foo,a-l3-cache", "cache";
> + cache-level = <3>;
> + cache-unified;
> + reg = <0x0 0x30000000 0x0 0x2000>;
> + ranges = <0x0 0x30000000 0x2000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
[Severity: Low]
Should reg in cache-controller@30000000 be <0x30000000 0x2000>? The
default example bus uses #address-cells = <1> and #size-cells = <1> (as
used by ranges here and by msc@40000000 below), so a 4-cell reg is parsed
as two regions starting at 0x0 and triggers a dtc simple_bus_reg unit
address mismatch warning during dt_binding_check.
> +
> + msc@0 {
> + compatible = "arm,mpam-msc";
> + reg = <0x0 0x2000>;
> + arm,not-ready-us = <1>;
> + /* CPU affinity implied by parent cache node */
> + };
> + };
> +
> + ddr_msc: msc@40000000 {
> + compatible = "arm,mpam-memory-controller-msc", "arm,mpam-msc";
> + reg = <0x40000000 0x1000>;
> + arm,not-ready-us = <10>;
> + };
[Severity: Low]
This isn't a bug, but scripts/dtc/dt-check-style reports two style issues
in this example: in cache-controller@30000000, reg and ranges should come
immediately after compatible before cache-level and cache-unified, and the
unused labels L3 and ddr_msc should be dropped.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261109-mpam-resctrl-dt-knp-support-v5-0-150335a79381@oss.qualcomm.com?part=3
next prev parent reply other threads:[~2026-11-09 10:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 10:05 [PATCH v5 0/7] arm-mpam: Add basic device tree support for resctrl Yin Li
2026-11-09 10:05 ` [PATCH v5 1/7] arm_mpam: Fix the RIS index range check in mpam_ris_create_locked Yin Li
2026-11-09 10:05 ` [PATCH v5 2/7] arm_mpam: Fix MSC MMIO window size off-by-one with resource_size() Yin Li
2026-11-09 10:05 ` [PATCH v5 3/7] dt-bindings: arm: Add MPAM MSC binding Yin Li
2026-11-09 10:38 ` sashiko-bot [this message]
2026-11-09 10:05 ` [PATCH v5 4/7] cacheinfo: Expose the code to generate a cache-id from a device_node Yin Li
2026-11-09 10:05 ` [PATCH v5 5/7] arm_mpam: Add device tree support for MSC probing Yin Li
2026-11-09 11:08 ` sashiko-bot
2026-11-09 10:05 ` [PATCH v5 6/7] arm_mpam: Add support for memory controller MSC on DT platforms Yin Li
2026-11-09 11:20 ` sashiko-bot
2026-11-09 11:27 ` Ping Li
2026-11-11 9:42 ` Yin Li
2026-11-11 13:04 ` Ping Li
2026-11-09 10:05 ` [PATCH v5 7/7] arm64: dts: qcom: nord: Add MPAM MSC nodes for the L2 caches Yin Li
2026-11-09 11:43 ` sashiko-bot
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=sashiko-outbox-204830@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yin.li@oss.qualcomm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.