From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796156763; b=nN06mQg6lXEqMPpFEmBlt3jdRxbMnJajC/GgR/7olViZ3r77/zMgaosQAB0ETcCLE5Yl 7cdRBk7UPQBJn2owuKIOOFvGCDAhYKMUippGa2aUgyQZSL88JmP27QoRmQnnzlQEJGlUe tvOw7e5PWlwo1Ri7/dmnoRdG1PLTAGhtw3zMnoKBTq0+zouSrhn9YHyJktDHrgabFy9NG eN7+Qpu+eTSAnRbkPnups7De2ZGtYS2XgWDIJu1hUIZpZ8vURoK2w4DXRmg9TVoJGg4FL jPsHAMJMieh895WwmenGk4xrHHzrvYJuEwBAskFLSOzoiovC8EM0AWfAvwl4RAqBHZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796156763; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=2MTAU9MeW5vhtb1PVh/S2VJeboc2PEz++zJCCeY0zec=; b=VUs1KVwAr6LTHO+3zbzbWnT79iGGFw+fubwIavMrvoKeeLi/uSHe1usXmx+dvvF3n1PA ecRvagG7vfg7duuXehnAkt+3ZkmozycDmeDAA2w3LPb98RDUara2r6Qr/mc4kFjzSMAQ8 macsgtFoKu4Op4TCGj5US7AlyZSEFSQ1wAbEnaS6fkoKgG4/ULtfuH1TlpdY/cPUhYhns VsLiFusnT13Bp9QA7SE2nJwSUOhzYYFvjbFB4DrAdbeG18eLLrTah4Jd6vfqfkmzMeejT XhxiJoCOIwBSpifWHc4YLXVVGDMeHxnEKO1oBFYdUdzVKqGLjYP+RRuNtFueXDw5lDA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QyJjJXai; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 943ED606A31A; Tue, 1 Dec 2026 20:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QyJjJXai Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FD601F00893; Tue, 1 Dec 2026 20:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796156763; bh=2MTAU9MeW5vhtb1PVh/S2VJeboc2PEz++zJCCeY0zec=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QyJjJXaixlPkbGk1LK0eXWT2o1P0rRde+GaYfdEzjdUwVorbMxatVj0BPlGILhfRp AP+ScIMSxSdfo/yvA8pJsudQMMFe8zW/gbG5zMtT2chtu7Kcx2wQuvKm/UACH62q0J K9+CpdbBR6JFzYnFgJ821RlSG6y/Ot+q8q6x2BEFW4ZTA/laz0BgybxfvFejrP6pv/ DTFgD5JegBwkb1xPGAqtOzrM5z6DvG2OEEzhE1f84na0pguS+IhSkyyQutzGkhnuKA YETmIBw+Qzdj6DNTWfM/YSzPeauuflwMCdP3lYK7/aHlJDD0h58kIFV5GQFZMRZlln 7XC7BhLlbMrUA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v9 7/8] arm64: dts: qcom: Add initial support for MSM8952 Reply-To: sashiko-reviews@lists.linux.dev To: "Muzaffer Kadir" Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-msm8952-initial-support-v9-7-06eea7c97f69@mainlining.org> References: <20261201-msm8952-initial-support-v9-0-06eea7c97f69@mainlining.org> <20261201-msm8952-initial-support-v9-7-06eea7c97f69@mainlining.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 20:26:02 +0000 X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D "qcom,msm8952-rpm-proc", > + "qcom,rpm-proc"; [ ... ] > + smd-edge { > + interrupts =3D ; > + qcom,ipc =3D <&apcs1 8 0>; > + qcom,smd-edge =3D <15>; [Severity: Low] Should this smd-edge node use mboxes =3D <&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 =3D <2>; > + #size-cells =3D <2>; [ ... ] > + rmtfs_mem: rmtfs { > + compatible =3D "qcom,rmtfs-mem"; > + > + size =3D <0x0 0x200000>; > + alloc-ranges =3D <0x0 0xa0000000 0x0 0x2000000>; > + no-map; > + > + qcom,client-id =3D <1>; > + }; [Severity: Medium] Should rmtfs_mem specify qcom,vmid =3D ;? 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 =3D "qcom,usb-hs-28nm-femtophy"; > + reg =3D <0x0006c000 0x200>; > + #phy-cells =3D <0>; > + clocks =3D <&xo_board>, > + <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, > + <&gcc GCC_USB2A_PHY_SLEEP_CLK>; > + clock-names =3D "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 =3D "qcom,adreno-405.0", > + "qcom,adreno"; [ ... ] > + power-domains =3D <&gcc OXILI_GX_GDSC>; > + operating-points-v2 =3D <&opp_table>; > + iommus =3D <&gpu_iommu 0>, > + <&gpu_iommu 1>; > + #cooling-cells =3D <2>; [ ... ] > + gpu_iommu: iommu@1f08000 { > + compatible =3D "qcom,msm8952-iommu", > + "qcom,msm-iommu-v2"; [ ... ] > + /* gfx3d user */ > + iommu-ctx@0 { > + compatible =3D "qcom,msm-iommu-v2-ns"; > + reg =3D <0x0 0x1000>; > + interrupts =3D ; > + qcom,ctx-asid =3D <0>; > + }; > + > + /* gfx3d secure */ > + iommu-ctx@1000 { > + compatible =3D "qcom,msm-iommu-v2-sec"; > + reg =3D <0x1000 0x1000>; > + interrupts =3D ; > + qcom,ctx-asid =3D <2>; > + }; > + > + /* gfx3d priv */ > + iommu-ctx@3000 { > + compatible =3D "qcom,msm-iommu-v2-sec"; > + reg =3D <0x3000 0x1000>; > + interrupts =3D ; > + qcom,ctx-asid =3D <1>; > + }; > + }; [Severity: Medium] Should the gpu node attach only to <&gpu_iommu 0>? Context bank ASID 1 (iommu-ctx@3000) has compatible =3D "qcom,msm-iommu-v2-sec", which marks ctx->secured_ctx =3D 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 =3D <&tsens 5>; > + > + cooling-maps { > + map0 { > + trip =3D <&cpu4_alert0>; > + cooling-device =3D <&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 =3D <75000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + > + cpu4_alert1: trip-point1 { > + temperature =3D <85000>; > + hysteresis =3D <2000>; > + type =3D "hot"; > + }; > + > + cpu4_crit: cpu-crit { > + temperature =3D <110000>; > + hysteresis =3D <2000>; > + type =3D "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 =3D <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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-msm8952-in= itial-support-v9-0-06eea7c97f69@mainlining.org?part=3D7