From: barnabas.czeman@mainlining.org
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: "Bjorn Andersson" <andersson@kernel.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Stephan Gerhold" <stephan@gerhold.net>,
"Otto Pflüger" <otto.pflueger@abscue.de>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Lee Jones" <lee@kernel.org>,
"Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>,
"Joerg Roedel" <joro@8bytes.org>, "Will Deacon" <will@kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Rob Clark" <robdclark@gmail.com>, "Sean Paul" <sean@poorly.run>,
"Abhinav Kumar" <quic_abhinavk@quicinc.com>,
"Marijn Suijten" <marijn.suijten@somainline.org>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Dmitry Baryshkov" <lumag@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-gpio@vger.kernel.org, iommu@lists.linux.dev,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org,
phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht, linux@mainlining.org,
"Dang Huynh" <danct12@riseup.net>
Subject: Re: [PATCH v4 4/6] arm64: dts: qcom: Add initial support for MSM8937
Date: Thu, 17 Apr 2025 08:20:36 +0200 [thread overview]
Message-ID: <93ea35691deaa1ff38d229225e26cf41@mainlining.org> (raw)
In-Reply-To: <f85195a1-f55e-41ea-967d-b758014cba06@oss.qualcomm.com>
On 2025-04-14 22:55, Konrad Dybcio wrote:
> On 3/15/25 3:57 PM, Barnabás Czémán wrote:
>> From: Dang Huynh <danct12@riseup.net>
>>
>> Add initial support for MSM8937 SoC.
>>
>> Signed-off-by: Dang Huynh <danct12@riseup.net>
>> Co-developed-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>
> [...]
>
>> + power-domains = <&cpu_pd0>;
>> + power-domain-names = "psci";
>
> So CPU4-7 get "nicer" idle, but 0-3 don't?
>
> [...]
>
>> + cpu-map {
>> + /* The MSM8937 has 2 cluster A53 setup. */
>
> This comment seems superfluous
>
> [...]
>
>> + timer {
>
> 'p' < 't', please sort top-level nodes alphabetically
>
> [...]
>
>> + wcss-wlan2-pins {
>> + pins = "gpio76";
>> + function = "wcss_wlan2";
>> + drive-strength = <6>;
>
> please unify this order (drive-strength before bias)
>
>> + bias-pull-up;
>> +
>> + };
>
> Extra newline
>
> [...]
>
>> + gpu: gpu@1c00000 {
>> + compatible = "qcom,adreno-505.0", "qcom,adreno";
>> + reg = <0x1c00000 0x40000>;
>> + reg-names = "kgsl_3d0_reg_memory";
>> + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
>> + interrupt-names = "kgsl_3d0_irq";
>> + #cooling-cells = <2>;
>> + clocks = <&gcc GCC_OXILI_GFX3D_CLK>,
>> + <&gcc GCC_OXILI_AHB_CLK>,
>> + <&gcc GCC_BIMC_GFX_CLK>,
>> + <&gcc GCC_BIMC_GPU_CLK>,
>> + <&gcc GCC_OXILI_TIMER_CLK>,
>> + <&gcc GCC_OXILI_AON_CLK>;
>
> Please align the <s
>
>> + clock-names = "core",
>> + "iface",
>> + "mem_iface",
>> + "alt_mem_iface",
>> + "rbbmtimer",
>> + "alwayson";
>> + operating-points-v2 = <&gpu_opp_table>;
>> + power-domains = <&gcc OXILI_GX_GDSC>;
>> +
>> + iommus = <&adreno_smmu 0>;
>> +
>> + status = "disabled";
>> +
>> + gpu_opp_table: opp-table {
>> + compatible = "operating-points-v2";
>> +
>> + opp-19200000 {
>> + opp-hz = /bits/ 64 <19200000>;
>> + opp-supported-hw = <0xFF>;
>
> 0xff is overly broad, please document the existing known speed bins
There are no speedbins for 8937 gpu. 8940 have but 8940 is not scope of
this series.
>
> [...]
>
>> + adreno_smmu: iommu@1c40000 {
>> + compatible = "qcom,msm8996-smmu-v2",
>> + "qcom,adreno-smmu",
>> + "qcom,smmu-v2";
>> + reg = <0x1c40000 0x10000>;
>
> Does it work as-is, without iommu changes?
>
> [...]
>
>> + thermal_zones: thermal-zones {
>> + aoss-thermal {
>> + polling-delay-passive = <250>;
>
> There are no passive trip points> +
>> + thermal-sensors = <&tsens 0>;
>> +
>> + trips {
>> + aoss_alert0: trip-point0 {
>> + temperature = <85000>;
>> + hysteresis = <2000>;
>> + type = "hot";
>> + };
>
> Please convert these to 'critical' instead
>
> [...]
>
>> + cpuss1-thermal {
>> + polling-delay-passive = <250>;
>
> You can drop polling-delay-passive under CPU tzones, as threshold
> crossing is interrupt-driven
>
>> +
>> + thermal-sensors = <&tsens 4>;
>> +
>> + cooling-maps {
>> + map0 {
>> + trip = <&cpuss1_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 {
>> + cpuss1_alert0: trip-point0 {
>> + temperature = <75000>;
>> + hysteresis = <2000>;
>> + type = "passive";
>> + };
>> +
>> + cpuss1_alert1: trip-point1 {
>> + temperature = <85000>;
>> + hysteresis = <2000>;
>> + type = "hot";
>> + };
>
> On newer platforms we rely on LMH to shut down the device if it
> were to reach the junction temperature, but let's leave them here
> as probably no one remembers for sure how reliable that is on these
> older platforms and you're most likely not willing to test that
>
> Konrad
next prev parent reply other threads:[~2025-04-17 6:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-15 14:57 [PATCH v4 0/6] Initial support of MSM8937 and Xiaomi Redmi 3S Barnabás Czémán
2025-03-15 14:57 ` [PATCH v4 1/6] dt-bindings: clock: qcom: Add MSM8937 Global Clock Controller Barnabás Czémán
2025-03-17 9:17 ` Krzysztof Kozlowski
2025-03-17 9:57 ` Barnabás Czémán
2025-03-17 15:10 ` Krzysztof Kozlowski
2025-03-15 14:57 ` [PATCH v4 2/6] clk: qcom: gcc: Add support for Global Clock controller found on MSM8937 Barnabás Czémán
2025-04-14 20:35 ` Konrad Dybcio
2025-03-15 14:57 ` [PATCH v4 3/6] dt-bindings: drm/msm/gpu: Document AON clock for A505/A506/A510 Barnabás Czémán
2025-03-17 9:21 ` Krzysztof Kozlowski
2025-03-17 9:48 ` Barnabás Czémán
2025-03-17 15:18 ` Krzysztof Kozlowski
2025-03-15 14:57 ` [PATCH v4 4/6] arm64: dts: qcom: Add initial support for MSM8937 Barnabás Czémán
2025-04-14 20:55 ` Konrad Dybcio
2025-04-16 20:33 ` barnabas.czeman
2025-04-16 20:39 ` Konrad Dybcio
2025-04-17 6:20 ` barnabas.czeman [this message]
2025-04-17 11:11 ` Konrad Dybcio
2025-03-15 14:57 ` [PATCH v4 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi 3S Barnabás Czémán
2025-03-15 14:57 ` [PATCH v4 6/6] arm64: dts: " Barnabás Czémán
2025-04-14 20:45 ` Konrad Dybcio
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=93ea35691deaa1ff38d229225e26cf41@mainlining.org \
--to=barnabas.czeman@mainlining.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=danct12@riseup.net \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@mainlining.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=otto.pflueger@abscue.de \
--cc=phone-devel@vger.kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sboyd@kernel.org \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=srinivas.kandagatla@linaro.org \
--cc=stephan@gerhold.net \
--cc=tzimmermann@suse.de \
--cc=will@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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.