mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed
@ 2026-11-16 11:03 Jie Gan
  2026-11-25  9:53 ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Jie Gan @ 2026-11-16 11:03 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti
  Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel,
	linux-riscv, Jie Gan

The cti_riscv device is suspected to have a clock vote issue on the
KVM enabled path, which causes the device to crash during bootup. Mark
the node with status = "fail" for now to avoid the crash.

Fixes: eed738c6dd0c ("arm64: dts: qcom: shikra: Add coresight nodes")
Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/shikra.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 0a95ad5a5582..5f5a786fbd2c 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -3996,6 +3996,7 @@ cti@982b000 {
 			clocks = <&rpmcc RPM_SMD_QDSS_CLK>;
 			clock-names = "apb_pclk";
 			label = "cti_riscv";
+			status = "fail";
 		};
 
 		tpdm@9860000 {

---
base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
change-id: 20261116-disable_riscv_cti_for_shikra-574ac8895dea

Best regards,
-- 
Jie Gan <jie.gan@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed
  2026-11-16 11:03 [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed Jie Gan
@ 2026-11-25  9:53 ` Konrad Dybcio
  2026-11-25 10:11   ` Jie Gan
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-25  9:53 UTC (permalink / raw)
  To: Jie Gan, Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-riscv

On 11/16/26 12:03 PM, Jie Gan wrote:
> The cti_riscv device is suspected to have a clock vote issue on the
> KVM enabled path, which causes the device to crash during bootup. Mark
> the node with status = "fail" for now to avoid the crash.
> 
> Fixes: eed738c6dd0c ("arm64: dts: qcom: shikra: Add coresight nodes")
> Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
> ---

That would mean Gunyah is enabling some clock that the TZ itself isn't,
which would be solveable through a clock driver patch. Do we have more
details here?

Konrad

>  arch/arm64/boot/dts/qcom/shikra.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
> index 0a95ad5a5582..5f5a786fbd2c 100644
> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
> @@ -3996,6 +3996,7 @@ cti@982b000 {
>  			clocks = <&rpmcc RPM_SMD_QDSS_CLK>;
>  			clock-names = "apb_pclk";
>  			label = "cti_riscv";
> +			status = "fail";
>  		};
>  
>  		tpdm@9860000 {
> 
> ---
> base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
> change-id: 20261116-disable_riscv_cti_for_shikra-574ac8895dea
> 
> Best regards,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed
  2026-11-25  9:53 ` Konrad Dybcio
@ 2026-11-25 10:11   ` Jie Gan
  2026-11-25 10:30     ` Konrad Dybcio
  0 siblings, 1 reply; 4+ messages in thread
From: Jie Gan @ 2026-11-25 10:11 UTC (permalink / raw)
  To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-riscv



On 11/25/2026 5:53 PM, Konrad Dybcio wrote:
> On 11/16/26 12:03 PM, Jie Gan wrote:
>> The cti_riscv device is suspected to have a clock vote issue on the
>> KVM enabled path, which causes the device to crash during bootup. Mark
>> the node with status = "fail" for now to avoid the crash.
>>
>> Fixes: eed738c6dd0c ("arm64: dts: qcom: shikra: Add coresight nodes")
>> Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
>> ---
> 
> That would mean Gunyah is enabling some clock that the TZ itself isn't,
> which would be solveable through a clock driver patch. Do we have more
> details here?
>

We are currently debugging this issue. What we have found so far is that 
the RISC-V core is not powered on when the AMBA bus attempts to read the 
PID from the device registers, which causes the system to crash.

Normally, the RISC-V core is powered on by remoteproc much later in the 
boot sequence. However, we have not observed this issue with either the 
UEFI or ABL boot stack.

One possibility is that the RISC-V core is powered on during UEFI or ABL 
and remains powered on when control is handed over to the kernel.

Thanks,
Jie

> Konrad
> 
>>   arch/arm64/boot/dts/qcom/shikra.dtsi | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
>> index 0a95ad5a5582..5f5a786fbd2c 100644
>> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
>> @@ -3996,6 +3996,7 @@ cti@982b000 {
>>   			clocks = <&rpmcc RPM_SMD_QDSS_CLK>;
>>   			clock-names = "apb_pclk";
>>   			label = "cti_riscv";
>> +			status = "fail";
>>   		};
>>   
>>   		tpdm@9860000 {
>>
>> ---
>> base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
>> change-id: 20261116-disable_riscv_cti_for_shikra-574ac8895dea
>>
>> Best regards,


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed
  2026-11-25 10:11   ` Jie Gan
@ 2026-11-25 10:30     ` Konrad Dybcio
  0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-25 10:30 UTC (permalink / raw)
  To: Jie Gan, Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-riscv

On 11/25/26 11:11 AM, Jie Gan wrote:
> 
> 
> On 11/25/2026 5:53 PM, Konrad Dybcio wrote:
>> On 11/16/26 12:03 PM, Jie Gan wrote:
>>> The cti_riscv device is suspected to have a clock vote issue on the
>>> KVM enabled path, which causes the device to crash during bootup. Mark
>>> the node with status = "fail" for now to avoid the crash.
>>>
>>> Fixes: eed738c6dd0c ("arm64: dts: qcom: shikra: Add coresight nodes")
>>> Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
>>> ---
>>
>> That would mean Gunyah is enabling some clock that the TZ itself isn't,
>> which would be solveable through a clock driver patch. Do we have more
>> details here?
>>
> 
> We are currently debugging this issue. What we have found so far is that the RISC-V core is not powered on when the AMBA bus attempts to read the PID from the device registers, which causes the system to crash.
> 
> Normally, the RISC-V core is powered on by remoteproc much later in the boot sequence. However, we have not observed this issue with either the UEFI or ABL boot stack.
> 
> One possibility is that the RISC-V core is powered on during UEFI or ABL and remains powered on when control is handed over to the kernel.

As a workaround for now:

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-25 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 11:03 [PATCH] arm64: dts: qcom: shikra: Mark cti_riscv device as failed Jie Gan
2026-11-25  9:53 ` Konrad Dybcio
2026-11-25 10:11   ` Jie Gan
2026-11-25 10:30     ` Konrad Dybcio

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®