From: sashiko-bot@kernel.org
To: "Komal Bajaj" <komal.bajaj@oss.qualcomm.com>
Cc: Frank.Li@kernel.org, vkoul@kernel.org, robh@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org,
dmaengine@vger.kernel.org
Subject: Re: [PATCH RESEND v7 10/10] arm64: dts: qcom: shikra: Add gpio-reserved-ranges to tlmm
Date: Mon, 03 Aug 2026 11:43:40 +0000 [thread overview]
Message-ID: <20260803114341.5E5631F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260803-shikra-dt-m1-v7-10-7fec8e777076@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
New issues:
- [Low] An unintended extra leading space is present before the `gpio-reserved-ranges` property definition in `shikra-iqs-som.dtsi`, breaking standard DT indentation.
Pre-existing issues:
- [High] Missing `gpiochip_line_is_valid()` check in `msm_config_group_set()` allows secure world fault via pinconf settings.
--
--- Patch [10]: [PATCH RESEND v7 10/10] arm64: dts: qcom: shikra: Add gpio-reserved-ranges to tlmm ---
commit ed56ddbc066b2d1385abdc3ef44f21fea529dddb
Author: Komal Bajaj <komal.bajaj@oss.qualcomm.com>
arm64: dts: qcom: shikra: Add gpio-reserved-ranges to tlmm
This commit adds the gpio-reserved-ranges property to the TLMM node for both
Shikra SoM variants (CQM and IQS). These reserved GPIOs are inaccessible from
the non-secure world and dedicated to fixed functions.
> diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
> index 2fff5fe9f6d2f..8ac42ff625a0e 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
> @@ -196,6 +196,12 @@ pm4125_l22: l22 {
> };
>
> &tlmm {
> + gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */
> + <14 4>, /* eSE SPI */
> + <30 2>, /* NFC SPI */
> + <138 1>, /* NFC Secure IO */
> + <155 11>; /* eMMC Boot */
> +
[Severity: High]
This is a pre-existing issue, and was not introduced by the patch under
review, but does defining these reserved ranges expose a missing validation
check in the pinctrl driver?
If a device tree node requests a pinconf setting (such as bias or drive
strength) on a pin reserved via gpio-reserved-ranges, the generic pinctrl
core (pinconf_apply_setting) bypasses pin_request and directly invokes the
driver's callback:
drivers/pinctrl/qcom/pinctrl-msm.c:msm_config_group_set()
Since msm_config_group_set() lacks a gpiochip_line_is_valid() check, it
directly reads and writes the protected TLMM registers for the secure pin,
triggering a secure world hardware fault.
Could this be triggered by a buggy OEM devicetree or a devicetree overlay
loaded from userspace?
[ ... ]
> diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
> index 657a14ca96067..4ff97945274dd 100644
> --- a/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
> @@ -218,6 +218,12 @@ pm8150_l18: l18 {
> };
>
> &tlmm {
> + gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */
[Severity: Low]
This isn't a bug, but there is an unintended extra leading space before the
gpio-reserved-ranges property.
> + <14 4>, /* eSE SPI */
> + <30 2>, /* NFC SPI */
> + <138 1>, /* NFC Secure IO */
> + <155 11>; /* eMMC Boot */
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260803-shikra-dt-m1-v7-0-7fec8e777076@oss.qualcomm.com?part=10
next prev parent reply other threads:[~2026-08-03 11:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 11:26 [PATCH RESEND v7 00/10] arm64: dts: qcom: Extend Shikra device tree with peripheral and subsystem support Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 01/10] arm64: dts: qcom: Add QUPv3 configuration for Shikra Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 02/10] arm64: dts: qcom: shikra: Add DDR BWMON support Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 03/10] arm64: dts: qcom: shikra: Add cpufreq-hw, EPSS L3 interconnect and OPP tables Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 04/10] arm64: dts: qcom: shikra: Add SMP2P nodes Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 05/10] arm64: dts: qcom: shikra: Add CDSP, LPAICP, MPSS remoteproc PAS nodes Komal Bajaj
2026-08-03 11:46 ` sashiko-bot
2026-08-03 11:26 ` [PATCH RESEND v7 06/10] arm64: dts: qcom: shikra: Enable CDSP, LPAICP and MPSS on EVK boards Komal Bajaj
2026-08-03 11:33 ` sashiko-bot
2026-08-03 11:26 ` [PATCH RESEND v7 07/10] arm64: dts: qcom: shikra: Enable TSENS and thermal zones Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 08/10] arm64: dts: qcom: shikra: add WiFi node support Komal Bajaj
2026-08-03 11:26 ` [PATCH RESEND v7 09/10] arm64: dts: qcom: shikra: Enable WiFi/BT on SoMs Komal Bajaj
2026-08-03 11:49 ` sashiko-bot
2026-08-03 11:26 ` [PATCH RESEND v7 10/10] arm64: dts: qcom: shikra: Add gpio-reserved-ranges to tlmm Komal Bajaj
2026-08-03 11:43 ` sashiko-bot [this message]
2026-08-04 22:31 ` [PATCH RESEND v7 00/10] arm64: dts: qcom: Extend Shikra device tree with peripheral and subsystem support Bjorn Andersson
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=20260803114341.5E5631F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=komal.bajaj@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@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 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.