From: sashiko-bot@kernel.org
To: "Muzaffer Kadir" <muzafferkadir@mainlining.org>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
dri-devel@lists.freedesktop.org, robh@kernel.org,
conor+dt@kernel.org
Subject: Re: [PATCH v9 7/8] arm64: dts: qcom: Add initial support for MSM8952
Date: Tue, 01 Dec 2026 20:26:02 +0000 [thread overview]
Message-ID: <sashiko-outbox-244196@kernel.org> (raw)
In-Reply-To: <20261201-msm8952-initial-support-v9-7-06eea7c97f69@mainlining.org>
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] arm64: dts: qcom: msm8952: gpu attaches to secured iommu
context bank
- [Medium] arm64: dts: qcom: msm8952: missing polling-delay-passive on
CPU thermal zones
- [Medium] arm64: dts: qcom: msm8952: missing qcom,vmid on dynamically
allocated rmtfs_mem
- [Medium] arm64: dts: qcom: msm8952: usb_hs_phy uses xo_board instead
of rpmcc XO clock
- [Low] arm64: dts: qcom: msm8952: deprecated qcom,ipc property on rpm
smd-edge node
--
commit 2252d54fcba658784fab3250634cd8c4d40a3ab4
Author: Muzaffer Kadir <muzafferkadir@mainlining.org>
arm64: dts: qcom: Add initial support for MSM8952
This commit adds the initial SoC devicetree include file for the Qualcomm
MSM8952 platform.
> diff --git a/arch/arm64/boot/dts/qcom/msm8952.dtsi b/arch/arm64/boot/dts/qcom/msm8952.dtsi
> new file mode 100644
> index 0000000000000..3739d1c25c035
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/msm8952.dtsi
> @@ -0,0 +1,2912 @@
[ ... ]
> + rpm: remoteproc {
> + compatible = "qcom,msm8952-rpm-proc",
> + "qcom,rpm-proc";
[ ... ]
> + smd-edge {
> + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
> + qcom,ipc = <&apcs1 8 0>;
> + qcom,smd-edge = <15>;
[Severity: Low]
Should this smd-edge node use mboxes = <&apcs1 0>; instead of qcom,ipc?
The qcom,smd-edge binding deprecates qcom,ipc in favor of mboxes, and the
other IPC consumers in this file already reference apcs1 as a mailbox
provider.
[ ... ]
> + reserved-memory {
> + ranges;
> + #address-cells = <2>;
> + #size-cells = <2>;
[ ... ]
> + rmtfs_mem: rmtfs {
> + compatible = "qcom,rmtfs-mem";
> +
> + size = <0x0 0x200000>;
> + alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>;
> + no-map;
> +
> + qcom,client-id = <1>;
> + };
[Severity: Medium]
Should rmtfs_mem specify qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>;?
Because this region is dynamically allocated at boot via size and
alloc-ranges rather than placed at a fixed bootloader-carved address, the
bootloader cannot pre-assign XPU permissions for it. In
qcom_rmtfs_mem_probe(), qcom_scm_assign_mem() is only called when qcom,vmid
is present, so omitting it leaves the buffer owned exclusively by HLOS and
inaccessible to the modem.
[ ... ]
> + usb_hs_phy: phy@6c000 {
> + compatible = "qcom,usb-hs-28nm-femtophy";
> + reg = <0x0006c000 0x200>;
> + #phy-cells = <0>;
> + clocks = <&xo_board>,
> + <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>,
> + <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
> + clock-names = "ref",
> + "ahb",
> + "sleep";
[Severity: Medium]
Should the ref clock of usb_hs_phy be <&rpmcc RPM_SMD_XO_CLK_SRC> instead
of <&xo_board>?
The qcom,usb-hs-28nm binding specifies the rpmcc reference clock for ref,
and neither GCC_USB_HS_PHY_CFG_AHB_CLK nor GCC_USB2A_PHY_SLEEP_CLK parents
onto the board XO in gcc-msm8952.c. Using the unvoted fixed-clock xo_board
means qcom_snps_hsphy_init() never holds an RPM vote on the XO clock when
the PHY is active.
[ ... ]
> + gpu: gpu@1c00000 {
> + compatible = "qcom,adreno-405.0",
> + "qcom,adreno";
[ ... ]
> + power-domains = <&gcc OXILI_GX_GDSC>;
> + operating-points-v2 = <&opp_table>;
> + iommus = <&gpu_iommu 0>,
> + <&gpu_iommu 1>;
> + #cooling-cells = <2>;
[ ... ]
> + gpu_iommu: iommu@1f08000 {
> + compatible = "qcom,msm8952-iommu",
> + "qcom,msm-iommu-v2";
[ ... ]
> + /* gfx3d user */
> + iommu-ctx@0 {
> + compatible = "qcom,msm-iommu-v2-ns";
> + reg = <0x0 0x1000>;
> + interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
> + qcom,ctx-asid = <0>;
> + };
> +
> + /* gfx3d secure */
> + iommu-ctx@1000 {
> + compatible = "qcom,msm-iommu-v2-sec";
> + reg = <0x1000 0x1000>;
> + interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>;
> + qcom,ctx-asid = <2>;
> + };
> +
> + /* gfx3d priv */
> + iommu-ctx@3000 {
> + compatible = "qcom,msm-iommu-v2-sec";
> + reg = <0x3000 0x1000>;
> + interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
> + qcom,ctx-asid = <1>;
> + };
> + };
[Severity: Medium]
Should the gpu node attach only to <&gpu_iommu 0>?
Context bank ASID 1 (iommu-ctx@3000) has compatible =
"qcom,msm-iommu-v2-sec", which marks ctx->secured_ctx = true in
qcom_iommu_ctx_probe(). When the GPU attaches to both ASID 0 and ASID 1,
qcom_iommu_init_domain() skips programming page tables and SCTLR on the
secured context bank, but qcom_iommu_tlb_inv_context(),
qcom_iommu_tlb_inv_range_nosync(), and qcom_iommu_tlb_sync() still iterate
over all fwspec->ids and write directly to the TrustZone-protected context
bank registers at 0x3000, causing an XPU fault or TLB sync timeout once the
GPU is enabled.
[ ... ]
> + thermal-zones {
[ ... ]
> + cpu4-thermal {
> + thermal-sensors = <&tsens 5>;
> +
> + cooling-maps {
> + map0 {
> + trip = <&cpu4_alert0>;
> + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
> +
> + trips {
> + cpu4_alert0: trip-point0 {
> + temperature = <75000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + cpu4_alert1: trip-point1 {
> + temperature = <85000>;
> + hysteresis = <2000>;
> + type = "hot";
> + };
> +
> + cpu4_crit: cpu-crit {
> + temperature = <110000>;
> + hysteresis = <2000>;
> + type = "critical";
> + };
> + };
> + };
[Severity: Medium]
Should cpu4-thermal, cpu5-thermal, cpu6-thermal, cpu7-thermal, and
cpu0-3-thermal specify polling-delay-passive (for example,
polling-delay-passive = <250>;)?
Each of these zones defines a single passive trip at 75 C mapped to the
cluster CPUs with THERMAL_NO_LIMIT across all cluster OPPs. Without
polling-delay-passive, tz->passive_delay_jiffies defaults to 0 and
monitor_thermal_zone() never schedules passive polling after the 75 C trip
is crossed and TSENS moves its interrupt window to [73 C, 85 C]. The
step_wise governor then advances cooling by only a single OPP step on the
initial trip interrupt and never throttles further while the temperature
remains between 73 C and 85 C.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-msm8952-initial-support-v9-0-06eea7c97f69@mainlining.org?part=7
next prev parent reply other threads:[~2026-12-01 20:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:43 [PATCH v9 0/8] Add Initial Support For MSM8952, Add General Mobile Shamrock Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 1/8] dt-bindings: iommu: qcom,iommu: Add MSM8952 IOMMU to SMMUv2 compatibles Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 2/8] dt-bindings: sram: qcom,imem: Document MSM8952 compatible Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 3/8] dt-bindings: mailbox: qcom: Add MSM8952 APCS compatible Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 4/8] dt-bindings: clock: qcom,a53pll: Add MSM8952 compatible Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 5/8] dt-bindings: display: msm: dsi-controller-main: " Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 6/8] dt-bindings: remoteproc: qcom: adsp: Add MSM8952 ADSP compatible Muzaffer Kadir via B4 Relay
2026-12-01 19:43 ` [PATCH v9 7/8] arm64: dts: qcom: Add initial support for MSM8952 Muzaffer Kadir via B4 Relay
2026-12-01 20:26 ` sashiko-bot [this message]
2026-12-01 19:43 ` [PATCH v9 8/8] arm64: dts: qcom: generalmobile-shamrock: new device Muzaffer Kadir via B4 Relay
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-244196@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-clk@vger.kernel.org \
--cc=muzafferkadir@mainlining.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox