From: sashiko-bot@kernel.org
To: "Sasha Levin" <sashal@kernel.org>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/6] dt-bindings: gpu: nvidia,gk20a: Require the fuse clock
Date: Fri, 16 Oct 2026 16:13:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-174613@kernel.org> (raw)
In-Reply-To: <20261016160700.3831336-2-sashal@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: missing minItems: 4 for nvidia,gm20b makes fuse clock optional
--
commit ce5f108aa60b7d673901db80f95bfdff4aaaa9a2
Author: Sasha Levin <sashal@kernel.org>
dt-bindings: gpu: nvidia,gk20a: Require the fuse clock
This commit modifies the nvidia,gk20a binding to make the fuse clock
required for all GPUs in this family. It specifies the exact order
of the clocks depending on the GPU compatible string.
> diff --git a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.yaml b/Documentation/devicetree/bindings/gpu/nvidia,gk20a.yaml
> index 4d856a8b674c5..af0ada6e02557 100644
> --- a/Documentation/devicetree/bindings/gpu/nvidia,gk20a.yaml
> +++ b/Documentation/devicetree/bindings/gpu/nvidia,gk20a.yaml
> @@ -86,6 +80,39 @@ required:
> - reset-names
>
> allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: nvidia,gm20b
> + then:
> + properties:
> + clocks:
> + items:
> + - description: GPU clock
> + - description: Power clock
> + - description: Reference clock
> + - description: Fuse clock
> +
> + clock-names:
> + items:
> + - const: gpu
> + - const: pwr
> + - const: ref
> + - const: fuse
[Severity: Medium]
The commit message states the intent is to make the fuse clock required for
all of them, but will this schema actually enforce it for nvidia,gm20b?
Because the global schema defines `minItems: 3` and `maxItems: 4` for `clocks`
and `clock-names`, the array validation in this `allOf` conditional for
`nvidia,gm20b` inherits `minItems: 3`.
A device tree with only 3 clocks (gpu, pwr, ref) will successfully validate
against the first 3 items in the list, making the `fuse` clock implicitly
optional.
Should `minItems: 4` be explicitly added to both `clocks` and `clock-names`
in this `then` block to ensure the fuse clock is properly enforced?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261016160700.3831336-1-sashal@kernel.org?part=1
next prev parent reply other threads:[~2026-10-16 16:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 16:06 [PATCH v2 0/6] Keep the fuse clock enabled while the Tegra GPU is powered Sasha Levin
2026-10-16 16:06 ` Sasha Levin
2026-10-16 16:06 ` [PATCH v2 1/6] dt-bindings: gpu: nvidia,gk20a: Require the fuse clock Sasha Levin
2026-10-16 16:06 ` [PATCH v2 1/6] dt-bindings: gpu: nvidia, gk20a: " Sasha Levin
2026-10-16 16:06 ` [PATCH v2 1/6] dt-bindings: gpu: nvidia,gk20a: " Sasha Levin
2026-10-16 16:13 ` sashiko-bot [this message]
2026-10-16 16:06 ` [PATCH v2 2/6] ARM: tegra: Add the fuse clock to the Tegra124 GPU Sasha Levin
2026-10-16 16:06 ` Sasha Levin
2026-10-16 16:06 ` [PATCH v2 3/6] arm64: tegra: Add the fuse clock to the Tegra132 GPU Sasha Levin
2026-10-16 16:06 ` Sasha Levin
2026-10-16 16:06 ` [PATCH v2 4/6] arm64: tegra: Add the fuse clock to the Tegra186 GPU Sasha Levin
2026-10-16 16:06 ` Sasha Levin
2026-10-16 16:06 ` [PATCH v2 5/6] arm64: tegra: Add the fuse clock to the Tegra210 GPU Sasha Levin
2026-10-16 16:06 ` Sasha Levin
2026-10-16 16:06 ` [PATCH v2 6/6] drm/nouveau/tegra: Keep the fuse clock enabled while the GPU is powered Sasha Levin
2026-10-16 16:06 ` Sasha Levin
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-174613@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robh@kernel.org \
--cc=sashal@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.