From: sashiko-bot@kernel.org
To: "Tejas Mutalikdesai" <tejasmutalikdesai@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 1/2] dt-bindings: arm: xen: Convert to DT schema
Date: Wed, 17 Jun 2026 20:51:06 +0000 [thread overview]
Message-ID: <20260617205106.59B2A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260617185518.43500-1-tejasmutalikdesai@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Critical] The `$nodename` pattern requires a unit address, which breaks Linux's hardcoded Xen node detection.
--
commit e4969fb4c5852849c9ecbfff9b63719a0d10dc05
Author: Tejas Mutalikdesai <tejasmutalikdesai@gmail.com>
dt-bindings: arm: xen: Convert to DT schema
Convert the Xen ARM device tree binding documentation from the legacy
plain-text format to the DT schema format.
> diff --git a/Documentation/devicetree/bindings/arm/xen.yaml b/Documentation/devicetree/bindings/arm/xen.yaml
> new file mode 100644
> index 0000000000000..a22e950566c23
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/xen.yaml
> @@ -0,0 +1,109 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
[ ... ]
> +description:
> + Xen ARM virtual platforms shall have a top-level "hypervisor" node with
> + the properties defined below.
> +
> +properties:
> + $nodename:
> + pattern: "^hypervisor@[0-9a-f]+$"
[Severity: Critical]
Does enforcing a unit address here break existing kernel expectations?
The Linux kernel seems to strictly expect the node to be named exactly
"hypervisor" without a unit address.
In arch/arm/xen/enlighten.c:fdt_find_hyper_node(), the code uses:
if (depth != 1 || strcmp(uname, "hypervisor") != 0)
And in drivers/firmware/efi/fdtparams.c:dt_params[], the path is hardcoded:
.path = "/hypervisor/uefi",
If a hypervisor or devicetree generator updates its output to comply with this
new schema and adds a unit address (e.g., hypervisor@b0000000), won't the
kernel silently fail to detect Xen and its UEFI runtime services?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260617185518.43500-1-tejasmutalikdesai@gmail.com?part=1
prev parent reply other threads:[~2026-06-17 20:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 18:55 [PATCH v4 1/2] dt-bindings: arm: xen: Convert to DT schema Tejas Mutalikdesai
2026-06-17 18:55 ` [PATCH v4 2/2] arm/xen: Update DT binding documentation reference Tejas Mutalikdesai
2026-06-17 20:51 ` 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=20260617205106.59B2A1F000E9@smtp.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=tejasmutalikdesai@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox