mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pankaj Patil <pankaj.patil@oss.qualcomm.com>
To: Stephan Gerhold <stephan.gerhold@linaro.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, rajendra.nayak@oss.qualcomm.com,
	sibi.sankar@oss.qualcomm.com,
	Jyothi Kumar Seerapu <jyothi.seerapu@oss.qualcomm.com>,
	Maulik Shah <maulik.shah@oss.qualcomm.com>,
	Taniya Das <taniya.das@oss.qualcomm.com>,
	Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
	Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>,
	Qiang Yu <qiang.yu@oss.qualcomm.com>,
	Manaf Meethalavalappu Pallikunhi
	<manaf.pallikunhi@oss.qualcomm.com>,
	Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>,
	Abel Vesa <abelvesa@kernel.org>
Subject: Re: [PATCH v3 3/4] arm64: dts: qcom: Introduce Glymur base dtsi
Date: Tue, 30 Dec 2025 13:32:25 +0530	[thread overview]
Message-ID: <6b048028-b3f9-4d8d-aa20-89236c66b800@oss.qualcomm.com> (raw)
In-Reply-To: <aUkj-CkSSOlG8X6Q@linaro.org>

On 12/22/2025 4:26 PM, Stephan Gerhold wrote:
> On Fri, Dec 19, 2025 at 08:16:56PM +0530, Pankaj Patil wrote:
>> Introduce the base device tree support for Glymur – Qualcomm's
>> next-generation compute SoC. The new glymur.dtsi describes the core SoC
>> components, including:
>>
>> - CPUs and CPU topology
>> - Interrupt controller and TLMM
>> - GCC,DISPCC and RPMHCC clock controllers
>> - Reserved memory and interconnects
>> - SMMU and firmware SCM
>> - Watchdog, RPMHPD, APPS RSC and SRAM
>> - PSCI and PMU nodes
>> - QUPv3 serial engines
>> - CPU power domains and idle states, plus SCMI/ SRAM pieces for CPU DVFS
>> - PDP0 mailbox, IPCC and AOSS
>> - Display clock controller
>> - SPMI PMIC arbiter with SPMI0/1/2 buses
>> - SMP2P nodes
>> - TSENS and thermal zones (8 instances, 92 sensors)
>>
>> Add dtsi files for PMH0101, PMK8850, PMCX0102, SMB2370, PMH0104,
>> PMH0110 along with temp-alarm and GPIO nodes needed on Glymur
>>
>> Add glmur-pmics.dtsi file for all the pmics enabled
>>
>> Enabled PCIe controllers and associated PHY to support boot to
>> shell with nvme storage,
>> List of PCIe instances enabled:
>>
>> - PCIe3b
>> - PCIe4
>> - PCIe5
>> - PCIe6
>>
>> [...]
>> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
>> new file mode 100644
>> index 000000000000..eb042541cfe1
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
>> @@ -0,0 +1,5700 @@
>> [...]
>> +	cpus {
>> +		#address-cells = <2>;
>> +		#size-cells = <0>;
>> +
>> +		cpu0: cpu@0 {
>> +			device_type = "cpu";
>> +			compatible = "qcom,oryon";
>> +			reg = <0x0 0x0>;
>> +			enable-method = "psci";
>> +			power-domains = <&cpu_pd0>, <&scmi_perf 0>;
>> +			power-domain-names = "psci", "perf";
>> +			cpu-idle-states = <&cpu_c4>;
> You probably want to move this to domain-idle-states:
> https://lore.kernel.org/linux-arm-msm/20251010-topic-x1e_dt_idle-v1-1-b1c8d558e635@oss.qualcomm.com/

Will fix in next revision

>
>> +			next-level-cache = <&l2_0>;
>> +
>> +			l2_0: l2-cache {
>> +				compatible = "cache";
>> +				cache-level = <2>;
>> +				cache-unified;
>> +			};
>> +		};
>> [...]
>> +		qupv3_2: geniqup@8c0000 {
>> +			compatible = "qcom,geni-se-qup";
>> +			reg = <0x0 0x008c0000 0x0 0x3000>;
>> +			clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>,
>> +				 <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>;
>> +			clock-names = "m-ahb",
>> +				      "s-ahb";
>> +			iommus = <&apps_smmu 0xd63 0x0>;
>> +			#address-cells = <2>;
>> +			#size-cells = <2>;
>> +			ranges;
>> +			status = "disabled";
>> +
>> +			i2c16: i2c@880000 {
>> +				compatible = "qcom,geni-i2c";
>> +				reg = <0x0 0x00880000 0x0 0x4000>;
>> +				interrupts = <GIC_SPI 373 IRQ_TYPE_LEVEL_HIGH>;
>> +				clocks = <&gcc GCC_QUPV3_WRAP2_S0_CLK>;
>> +				clock-names = "se";
>> +				interconnects = <&clk_virt MASTER_QUP_CORE_2 QCOM_ICC_TAG_ALWAYS
>> +						 &clk_virt SLAVE_QUP_CORE_2 QCOM_ICC_TAG_ALWAYS>,
>> +						<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS
>> +						 &config_noc SLAVE_QUP_2 QCOM_ICC_TAG_ALWAYS>,
> CPU->something paths should be QCOM_ICC_TAG_ACTIVE_ONLY (everywhere).

If we're removing and placing the vote during suspend/resume scenarios, then the tag mentioned in the device tree doesn't matter.The intention behind making it ACTIVE_ONLY for config path is that during APPS suspend,APPS->CONFIG wont be accessed as APPS itself is going to suspend.

>
>> +						<&aggre3_noc MASTER_QUP_2 QCOM_ICC_TAG_ALWAYS
>> +						 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>;
>> +				interconnect-names = "qup-core",
>> +						     "qup-config",
>> +						     "qup-memory";
>> +				dmas = <&gpi_dma2 0 0 QCOM_GPI_I2C>,
>> +				       <&gpi_dma2 1 0 QCOM_GPI_I2C>;
>> +				dma-names = "tx",
>> +					    "rx";
>> +				pinctrl-0 = <&qup_i2c16_data_clk>;
>> +				pinctrl-names = "default";
>> +				#address-cells = <1>;
>> +				#size-cells = <0>;
>> +				status = "disabled";
>> +			};
>> [...]
>> +		pcie4: pci@1bf0000 {
>> +			device_type = "pci";
>> +			compatible = "qcom,glymur-pcie", "qcom,pcie-x1e80100";
>> +			reg = <0x0 0x01bf0000 0x0 0x3000>,
>> +			      <0x0 0x78000000 0x0 0xf20>,
>> +			      <0x0 0x78000f40 0x0 0xa8>,
>> +			      <0x0 0x78001000 0x0 0x4000>,
>> +			      <0x0 0x78005000 0x0 0x100000>,
>> +			      <0x0 0x01bf3000 0x0 0x1000>;
>> +			reg-names = "parf",
>> +				    "dbi",
>> +				    "elbi",
>> +				    "atu",
>> +				    "config",
>> +				    "mhi";
>> +			#address-cells = <3>;
>> +			#size-cells = <2>;
>> +			ranges = <0x01000000 0x0 0x00000000 0x0 0x78105000 0x0 0x100000>,
>> +				<0x02000000 0x0 0x78205000 0x0 0x78205000 0x0 0x1dfb000>,
>> +				<0x03000000 0x7 0x80000000 0x7 0x80000000 0x0 0x20000000>;
>> +			bus-range = <0 0xff>;
>> +
>> +			dma-coherent;
>> +
>> +			linux,pci-domain = <4>;
>> +			num-lanes = <2>;
>> +
>> +			operating-points-v2 = <&pcie4_opp_table>;
>> +
>> +			msi-map = <0x0 &gic_its 0xc0000 0x10000>;
>> +
>> +			interrupts = <GIC_SPI 505 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 510 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 511 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 512 IRQ_TYPE_LEVEL_HIGH>,
>> +				     <GIC_SPI 944 IRQ_TYPE_LEVEL_HIGH>;
>> +			interrupt-names = "msi0",
>> +					  "msi1",
>> +					  "msi2",
>> +					  "msi3",
>> +					  "msi4",
>> +					  "msi5",
>> +					  "msi6",
>> +					  "msi7",
>> +					  "global";
>> +
>> +			#interrupt-cells = <1>;
>> +			interrupt-map-mask = <0 0 0 0x7>;
>> +			interrupt-map = <0 0 0 1 &intc 0 0 0 513 IRQ_TYPE_LEVEL_HIGH>,
>> +					<0 0 0 2 &intc 0 0 0 514 IRQ_TYPE_LEVEL_HIGH>,
>> +					<0 0 0 3 &intc 0 0 0 515 IRQ_TYPE_LEVEL_HIGH>,
>> +					<0 0 0 4 &intc 0 0 0 516 IRQ_TYPE_LEVEL_HIGH>;
>> +
>> +			clocks = <&gcc GCC_PCIE_4_AUX_CLK>,
>> +				 <&gcc GCC_PCIE_4_CFG_AHB_CLK>,
>> +				 <&gcc GCC_PCIE_4_MSTR_AXI_CLK>,
>> +				 <&gcc GCC_PCIE_4_SLV_AXI_CLK>,
>> +				 <&gcc GCC_PCIE_4_SLV_Q2A_AXI_CLK>,
>> +				 <&gcc GCC_AGGRE_NOC_PCIE_4_WEST_SF_AXI_CLK>;
>> +			clock-names = "aux",
>> +				      "cfg",
>> +				      "bus_master",
>> +				      "bus_slave",
>> +				      "slave_q2a",
>> +				      "noc_aggr";
>> +
>> +			assigned-clocks = <&gcc GCC_PCIE_4_AUX_CLK>;
>> +			assigned-clock-rates = <19200000>;
>> +
>> +			interconnects = <&pcie_west_anoc MASTER_PCIE_4 QCOM_ICC_TAG_ALWAYS
>> +					&mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>,
>> +					<&hsc_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS
>> +					&pcie_west_slv_noc SLAVE_PCIE_4 QCOM_ICC_TAG_ALWAYS>;
>> +			interconnect-names = "pcie-mem",
>> +					     "cpu-pcie";
>> +
>> +			resets = <&gcc GCC_PCIE_4_BCR>,
>> +				 <&gcc GCC_PCIE_4_LINK_DOWN_BCR>;
>> +			reset-names = "pci",
>> +				      "link_down";
>> +
>> +			power-domains = <&gcc GCC_PCIE_4_GDSC>;
>> +
>> +			eq-presets-8gts = /bits/ 16 <0x5555 0x5555>;
>> +			eq-presets-16gts = /bits/ 8 <0x55 0x55>;
> Shouldn't there be an IOMMU assigned here? (i.e. iommus = <...> or
> iommu-map = <...>). The reason we don't have these directly in
> hamoa.dtsi is that it runs in EL1 by default and the Gunyah hypervisor
> prevents direct access to the SMMUv3 that protects the PCIe endpoints.
>
> Your cover letter says Glymur is capable of booting at EL2, so this
> can't be the case here. Is there no SMMU for PCIe on Glymur?
>
> There are significant security and performance downsides without a IOMMU
> assigned here (especially with the upcoming USB4 enablement), so this is
> not something I would expect to be omitted without any TODO comment or
> similar mentioned anywhere.

Let me check on pcie smmu enablement.

>
>> [...]
>> +		dispcc: clock-controller@af00000 {
>> +			compatible = "qcom,glymur-dispcc";
>> +			reg = <0x0 0x0af00000 0x0 0x20000>;
>> +			clocks = <&rpmhcc RPMH_CXO_CLK>,
>> +				 <&sleep_clk>,
>> +				 <0>, /* dp0 */
>> +				 <0>,
>> +				 <0>, /* dp1 */
>> +				 <0>,
>> +				 <0>, /* dp2 */
>> +				 <0>,
>> +				 <0>, /* dp3 */
>> +				 <0>,
>> +				 <0>, /* dsi0 */
>> +				 <0>,
>> +				 <0>, /* dsi1 */
>> +				 <0>,
>> +				 <0>,
>> +				 <0>,
>> +				 <0>,
>> +				 <0>;
>> +			power-domains = <&rpmhpd RPMHPD_MMCX>;
>> +			required-opps = <&rpmhpd_opp_turbo>;
> Are you sure you want to force TURBO here?

Will decrease it in next revision.

>
>> +			#clock-cells = <1>;
>> +			#reset-cells = <1>;
>> +			#power-domain-cells = <1>;
>> +		};
>> +
>> [...]
>> +		watchdog@17600000 {
>> +			compatible = "qcom,kpss-wdt";
> This compatible is deprecated.

Will update in next revision

>
>> +			reg = <0x0 0x17600000 0x0 0x1000>;
>> +			clocks = <&sleep_clk>;
>> +			interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
>> +		};
>> +
>> [...]
> Thanks,
> Stephan


  reply	other threads:[~2025-12-30  8:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-19 14:46 [PATCH v3 0/4] arm64: dts: qcom: Introduce Glymur SoC dtsi and Glymur CRD dts Pankaj Patil
2025-12-19 14:46 ` [PATCH v3 1/4] dt-bindings: arm: qcom: Document Glymur SoC and board Pankaj Patil
2025-12-19 14:46 ` [PATCH v3 2/4] arm64: defconfig: Enable Glymur configs for boot to shell Pankaj Patil
2025-12-19 14:57   ` Krzysztof Kozlowski
2025-12-20 17:14     ` Dmitry Baryshkov
2025-12-22  8:54     ` Pankaj Patil
2025-12-20 17:17   ` Dmitry Baryshkov
2025-12-22 10:24     ` Pankaj Patil
2025-12-19 14:46 ` [PATCH v3 3/4] arm64: dts: qcom: Introduce Glymur base dtsi Pankaj Patil
2025-12-20 18:46   ` Dmitry Baryshkov
2025-12-21  2:49     ` Dmitry Baryshkov
2025-12-21 15:17   ` Abel Vesa
2025-12-22  3:36     ` Bjorn Andersson
2025-12-22  9:10       ` Abel Vesa
2025-12-22 10:11       ` Kamal Wadhwa
2025-12-22 10:56   ` Stephan Gerhold
2025-12-30  8:02     ` Pankaj Patil [this message]
2025-12-30 14:30   ` Konrad Dybcio
2025-12-19 14:46 ` [PATCH v3 4/4] arm64: dts: qcom: glymur: Enable Glymur CRD board support Pankaj Patil
2025-12-20 18:48   ` Dmitry Baryshkov
2025-12-22 11:17   ` Stephan Gerhold
2025-12-30 14:45   ` Konrad Dybcio
2026-02-23 19:56 ` (subset) [PATCH v3 0/4] arm64: dts: qcom: Introduce Glymur SoC dtsi and Glymur CRD dts Bjorn Andersson
2026-02-23 20:31   ` Bjorn Andersson
2026-02-23 20:34     ` Krzysztof Kozlowski

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=6b048028-b3f9-4d8d-aa20-89236c66b800@oss.qualcomm.com \
    --to=pankaj.patil@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jishnu.prakash@oss.qualcomm.com \
    --cc=jyothi.seerapu@oss.qualcomm.com \
    --cc=kamal.wadhwa@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manaf.pallikunhi@oss.qualcomm.com \
    --cc=maulik.shah@oss.qualcomm.com \
    --cc=qiang.yu@oss.qualcomm.com \
    --cc=quic_pyarlaga@quicinc.com \
    --cc=rajendra.nayak@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sibi.sankar@oss.qualcomm.com \
    --cc=stephan.gerhold@linaro.org \
    --cc=taniya.das@oss.qualcomm.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

all inboxes | Powered by JetHome®