mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	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>,
	Sibi Sankar <sibi.sankar@oss.qualcomm.com>,
	Pankaj Patil <pankaj.patil@oss.qualcomm.com>
Cc: Rajendra Nayak <rajendra.nayak@oss.qualcomm.com>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/5] arm64: dts: qcom: Add Kalambo SoC
Date: Fri, 24 Jul 2026 17:21:03 +0530	[thread overview]
Message-ID: <76f9afa3-8836-456e-a9f7-76bc65187ec2@oss.qualcomm.com> (raw)
In-Reply-To: <4afe6c0f-23e6-4081-84ac-67d43ced6aed@oss.qualcomm.com>



On 7/23/2026 5:59 PM, Konrad Dybcio wrote:
> On 7/22/26 12:55 PM, Gopikrishna Garmidi wrote:
>> Introduce support for the Qualcomm Kalambo SoC. It is derived from Mahua
>> with CPU cluster 0 removed, leaving it with just cluster 1 (cpu6-cpu11).
>>
>>   - The surviving cluster is re-added to the cpu-map as cluster0, since the
>>     kernel's cpu-map cluster scan stops at the first missing "clusterN"
>>     index.
>>
>>   - cpu6-cpu11 are reassigned to SCMI performance domain 0, as domain 1
>>     (the former cluster 0) is no longer present.
>>
>>   - Point the SCMI transport at the SRAM and mailbox addresses used by
>>     the Kalambo SCP firmware, which differ from those inherited from
>>     Glymur.
>>
>> Add labels to the Glymur cpu-map and its cluster nodes to allow their
>> removal and override on derived SoCs.
>>
>> Co-developed-by: Sibi Sankar <sibi.sankar@oss.qualcomm.com>
>> Signed-off-by: Sibi Sankar <sibi.sankar@oss.qualcomm.com>
>> Signed-off-by: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>
>> ---
> 
> [...]
> 
>> @@ -274,8 +274,8 @@ cpu17: cpu@20500 {
>>   			#cooling-cells = <2>;
>>   		};
>>   
>> -		cpu-map {
>> -			cluster0 {
>> +		cpu_map: cpu-map {
>> +			cpu_map_cluster0: cluster0 {
>>   				core0 {
>>   					cpu = <&cpu0>;
>>   				};
>> @@ -301,7 +301,7 @@ core5 {
>>   				};
>>   			};
>>   
>> -			cluster1 {
>> +			cpu_map_cluster1: cluster1 {
> 
> The deletes are recursive, so if you just delete the whole map,
> you don't need to delete the children (and can drop the labels)
> 
> You can then add a label to /cpus and reference it, redefining the
> map in kalambo.dtsi
> 
> [...]
> 

ACK, will drop child labels and do a full cpu-map delete + override in 
kalambo.dtsi.

>> +&imem {
>> +	reg = <0x0 0x81e08600 0x0 0x380>;
>> +	ranges = <0x0 0x0 0x81e08600 0x380>;
> 
> Is the size *actually* different between the SoCs?
>

Yes. Kalambo uses PDP1, its tx shmem (lpri1) sits at offset 0x200
vs 0x180 on Glymur (PDP0). That 0x80 shift pushes the tx region end
to 0x380, requiring the imem size override. Increasing Glymur's size
would cause a crash, so this stays as a Kalambo-only override.

>> +	cpu_scp_lpri1: scp-sram-section@200 {
>> +		compatible = "arm,scmi-shmem";
>> +		reg = <0x200 0x180>;
>> +	};
> 
> With this shifted, is cpu_scp_lpri0 still at the same base?
> 

Yes, lpri0 (rx) is shared and stays at offset 0x0. Only lpri1 (tx)
shifts.

>> +};
>> +
>> +&pdp0_mbox {
>> +	reg = <0 0x17610000 0 0x8000>, <0 0x1a980000 0 0x8000>;
> 
> Please keep one entry per line and use '0x0' instead of '0'

ACK, will reformat as:
	reg = <0x0 0x17610000 0x0 0x8000>,
	      <0x0 0x1a980000 0x0 0x8000>;


Thanks,
Gopikrishna


  reply	other threads:[~2026-07-24 11:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-22 10:55 [PATCH v2 0/5] arm64: dts: qcom: Add Kalambo SoC and CRD Gopikrishna Garmidi
2026-07-22 10:55 ` [PATCH v2 1/5] dt-bindings: arm: qcom: Document Kalambo SoC and board Gopikrishna Garmidi
2026-07-22 10:55 ` [PATCH v2 2/5] arm64: dts: qcom: Add Kalambo SoC Gopikrishna Garmidi
2026-07-23 12:29   ` Konrad Dybcio
2026-07-24 11:51     ` Gopikrishna Garmidi [this message]
2026-07-22 10:55 ` [PATCH v2 3/5] arm64: dts: qcom: Add Kalambo CRD Gopikrishna Garmidi
2026-07-22 13:05   ` Dmitry Baryshkov
2026-07-22 10:55 ` [PATCH v2 4/5] firmware: qcom: scm: Allow QSEECOM on " Gopikrishna Garmidi
2026-07-22 10:55 ` [PATCH v2 5/5] soc: qcom: ubwc: Add Kalambo UBWC config Gopikrishna Garmidi

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=76f9afa3-8836-456e-a9f7-76bc65187ec2@oss.qualcomm.com \
    --to=gopikrishna.garmidi@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@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=pankaj.patil@oss.qualcomm.com \
    --cc=rajendra.nayak@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sibi.sankar@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®