From: sashiko-bot@kernel.org
To: "Komal Bajaj" <komal.bajaj@oss.qualcomm.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: remoteproc: qcom,shikra-pas: Allow 3 IOMMUs for LPAICP
Date: Mon, 05 Oct 2026 11:24:58 +0000 [thread overview]
Message-ID: <20261005112458.6FAE61F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261005-shikra-el2-v3-1-618f7343695c@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: remoteproc: qcom,shikra-pas: Broken inheritance drops #cooling-cells
- [Low] dt-bindings: remoteproc: qcom,shikra-pas: Missing minItems: 3 for iommus
--
commit e7d5ea05bb3cbb1ebebda930478b2df76f82dd6e
Author: Komal Bajaj <komal.bajaj@oss.qualcomm.com>
dt-bindings: remoteproc: qcom,shikra-pas: Allow 3 IOMMUs for LPAICP
This patch removes the common PAS schema inheritance (qcom,pas-common.yaml)
and specifies local IOMMU entry limits for each Shikra PAS compatible. It
allows 3 IOMMU entries for the LPAICP variant, resolving a conflict where the
common schema previously limited iommus to a single entry.
> diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,shikra-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,shikra-pas.yaml
> index 34a2f15e93616..4196f61a8ba0c 100644
> --- a/Documentation/devicetree/bindings/remoteproc/qcom,shikra-pas.yaml
> +++ b/Documentation/devicetree/bindings/remoteproc/qcom,shikra-pas.yaml
[ ... ]
> @@ -92,10 +95,14 @@ required:
> - compatible
> - reg
> - memory-region
> + - clocks
> + - clock-names
> + - interrupts
> + - interrupt-names
> + - qcom,smem-states
> + - qcom,smem-state-names
>
> allOf:
> - - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
> -
> - if:
> properties:
> compatible:
[Severity: Medium]
Does removing the $ref to qcom,pas-common.yaml# cause the schema to lose
support for standard PAS features like #cooling-cells?
Because json-schema allOf cannot loosen constraints, the inheritance from the
common PAS schema was severed to resolve the conflict with the inherited
maxItems: 1 constraint on iommus.
However, this prevents qcom,shikra-pas.yaml from receiving future updates to
the common PAS schema and silently drops support for inherited properties.
Since unevaluatedProperties: false is used, any attempt to use #cooling-cells
in a Shikra PAS node will now trigger a schema validation error.
Would it be better to relax the iommus: maxItems constraint in
qcom,pas-common.yaml (e.g., to 3 or higher) and apply stricter local
constraints where needed, rather than breaking the inheritance chain?
[ ... ]
> @@ -134,6 +143,8 @@ allOf:
> minItems: 2
> firmware-name:
> minItems: 2
> + iommus:
> + maxItems: 3
[Severity: Low]
Should there be a minItems: 3 constraint added here?
The commit message explicitly states: "The Shikra LPAICP PAS requires three
IOMMU entries." However, maxItems only sets an upper bound.
Without minItems: 3, incomplete device tree overlays with only 1 or 2 iommus
entries will silently pass schema validation despite violating the strict
hardware requirement.
Making the property mandatory via required: would be incorrect since iommus
is intentionally omitted from the base DT and added via an EL2 overlay, but
when the property is present, the 3-entry minimum size constraint must be
enforced.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261005-shikra-el2-v3-0-618f7343695c@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-10-05 11:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 11:14 [PATCH v3 0/2] arm64: dts: qcom: shikra: Add EL2 overlay for EVK variants Komal Bajaj
2026-10-05 11:14 ` [PATCH v3 1/2] dt-bindings: remoteproc: qcom,shikra-pas: Allow 3 IOMMUs for LPAICP Komal Bajaj
2026-10-05 11:24 ` sashiko-bot [this message]
2026-10-05 15:37 ` Mukesh Ojha
2026-10-05 11:14 ` [PATCH v3 2/2] arm64: dts: qcom: shikra: Add EL2 overlay for remoteproc SMMU mappings Komal Bajaj
2026-10-05 11:18 ` Dmitry Baryshkov
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=20261005112458.6FAE61F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=komal.bajaj@oss.qualcomm.com \
--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 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.