Skip to contentSkip to conversation

Add snps,dis_u3_susphy_quirk for some QC targets

PATCH Applied Prashanth K 5 participants 16 messages Mar 25, 2025 – Apr 21, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add snps,dis_u3_susphy_quirk for some QC targets

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

 arch/arm64/boot/dts/qcom/qcs615.dtsi  | 2 ++
 arch/arm64/boot/dts/qcom/qdu1000.dtsi | 1 +
 arch/arm64/boot/dts/qcom/sm8150.dtsi  | 2 ++
 arch/arm64/boot/dts/qcom/sm8350.dtsi  | 2 ++
 arch/arm64/boot/dts/qcom/sm8450.dtsi  | 1 +
 5 files changed, 8 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/5 arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash.

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8150.dtsi +2 -0
index 4dbda54b47a5..4477ec14ab1d 100644
@@ -3657,6 +3657,7 @@ usb_1_dwc3: usb@a600000 {
 				interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0x140 0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
@@ -3736,6 +3737,7 @@ usb_2_dwc3: usb@a800000 {
 				interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0x160 0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/5 arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk

In reply to Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash.

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

---
 arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8350.dtsi +2 -0
index 5f93cae01b06..a4fc3657ff87 100644
@@ -2651,6 +2651,7 @@ usb_1_dwc3: usb@a600000 {
 				interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0x0 0x0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
@@ -2729,6 +2730,7 @@ usb_2_dwc3: usb@a800000 {
 				interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0x20 0x0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/5 arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

In reply to Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash.

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

---
 arch/arm64/boot/dts/qcom/sm8450.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sm8450.dtsi +1 -0
index 0b36f4cd4497..58c98bffee17 100644
@@ -5461,6 +5461,7 @@ usb_1_dwc3: usb@a600000 {
 				interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
 				iommus = <&apps_smmu 0x0 0x0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/5 arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk

In reply to Prashanth K

From: Pratham Pratap <[email protected]>

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash.

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

---
 arch/arm64/boot/dts/qcom/qcs615.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/qcs615.dtsi +2 -0
index edfb796d8dd3..7c377f3402c1 100644
@@ -3600,6 +3600,7 @@ usb_1_dwc3: usb@a600000 {
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,has-lpm-erratum;
 				snps,hird-threshold = /bits/ 8 <0x10>;
@@ -3661,6 +3662,7 @@ usb_2_dwc3: usb@a800000 {
 				phy-names = "usb2-phy";
 
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,has-lpm-erratum;
 				snps,hird-threshold = /bits/ 8 <0x10>;
Signature · 1 line
2.25.1
#5 lore raw

PATCH 5/5 arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

In reply to Prashanth K

From: Pratham Pratap <[email protected]>

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash.

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

---
 arch/arm64/boot/dts/qcom/qdu1000.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/qdu1000.dtsi +1 -0
index f973aa8f7477..b3c673e24726 100644
@@ -1022,6 +1022,7 @@ usb_1_dwc3: usb@a600000 {
 
 				iommus = <&apps_smmu 0xc0 0x0>;
 				snps,dis_u2_susphy_quirk;
+				snps,dis_u3_susphy_quirk;
 				snps,dis_enblslpm_quirk;
 				snps,dis-u1-entry-quirk;
 				snps,dis-u2-entry-quirk;
Signature · 1 line
2.25.1
#6 lore raw
In reply to Prashanth K
Quoted 17 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Quoted 8 lines

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

#7 lore raw
Quoted 23 lines · Konrad Dybcio
Quoted 22 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Quoted 8 lines
Quoted 3 lines

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Regards,
Prashanth K

Reviewed-by
#8 lore raw
Quoted 30 lines · Prashanth K
Quoted 27 lines · Konrad Dybcio
Quoted 25 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Quoted 8 lines
Quoted 4 lines

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Okay, let's proceed with these and in the meantime please query internally whether it could be applicable to others too

Konrad

maintainer
#9 lore raw
Quoted 34 lines · Konrad Dybcio
Quoted 33 lines · Prashanth K
Quoted 30 lines · Konrad Dybcio
Quoted 17 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Quoted 8 lines

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Quoted 9 lines
Quoted 5 lines
Quoted 1 line

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Okay, let's proceed with these and in the meantime please query internally whether it could be applicable to others too

But if it applies to all qcom targets, wouldn't it make more sense to add the property in the qcom glue driver?

Regards,
Bjorn

Quoted 3 lines

Konrad

#10 lore raw
Quoted 41 lines · Bjorn Andersson
Quoted 40 lines · Konrad Dybcio
Quoted 38 lines · Prashanth K
Quoted 23 lines · Konrad Dybcio
Quoted 22 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Quoted 8 lines
Quoted 3 lines

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Quoted 6 lines
Quoted 3 lines

Okay, let's proceed with these and in the meantime please query internally whether it could be applicable to others too

But if it applies to all qcom targets, wouldn't it make more sense to add the property in the qcom glue driver?

Hi Bjorn, This issue was seen only on some targets 2 years back, so we only tested on those platforms. I think its better to add it to other QC targets only if we see that issue.

Quoted 7 lines

Regards,
Bjorn

Quoted 3 lines

Konrad

Thanks for the review Konrad

Regards,
Prashanth K

#11 lore raw
In reply to Bjorn Andersson
Quoted 41 lines · Bjorn Andersson
Quoted 40 lines · Konrad Dybcio
Quoted 38 lines · Prashanth K
Quoted 23 lines · Konrad Dybcio
Quoted 22 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

Quoted 8 lines
Quoted 3 lines

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Quoted 6 lines
Quoted 3 lines

Okay, let's proceed with these and in the meantime please query internally whether it could be applicable to others too

But if it applies to all qcom targets, wouldn't it make more sense to add the property in the qcom glue driver?

If we did that and the issue was ever fixed in future hw, we'd have to either re-add this patchset again or invent a snps,*en*_u3_susphy_quirk

Konrad

#12 lore raw
In reply to Prashanth K
Quoted 19 lines · Prashanth K
Quoted 16 lines · Konrad Dybcio
Quoted 15 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):
arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

It is hard to belive that this quirk is to be set for SM8150, SM8350, SM8450, but not SM8250.

Quoted 16 lines
Quoted 9 lines
Quoted 4 lines

Pratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Regards,
Prashanth K

Signature · 2 lines
With best wishes
Dmitry
#13 lore raw
Quoted 22 lines · Dmitry Baryshkov
Quoted 21 lines · Prashanth K
Quoted 18 lines · Konrad Dybcio
Quoted 17 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Prashanth K (3):

   arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
   arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
   arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk

It is hard to belive that this quirk is to be set for SM8150, SM8350, SM8450, but not SM8250.

At the moment we wanted to add this quirk for targets where issue has shown up either internal to QC or at customer's end. But the issue didn't come up on SM8250/ SM8550/ SM8650 so far either from customer end or ours. Would like to update for other targets on need basis.

Regards,
Krishna,

Quoted 17 lines
Quoted 16 lines
Quoted 9 lines
Quoted 4 lines

Pratham Pratap (2):

   arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
   arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk

Are there more targets affected, from the list of the ones currently supported upstream?

Konrad

My initial plan was to add it for all the QC platforms, but wasn't confident enough about it. Because we have seen the issue only on these targets and hence tested only on these.

Regards,
Prashanth K

#14 lore raw
Quoted 30 lines · Krishna Kurapati
Quoted 27 lines · Dmitry Baryshkov
Quoted 25 lines · Prashanth K
Quoted 22 lines · Konrad Dybcio
Quoted 21 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

This was initially observed on SM8450 and later reported on few other targets as well. As suggested by Qualcomm HW team, clearing the GUSB3PIPECTL.SUSPHY bit resolves the issue by preventing register write failures. Address this by setting the snps,dis_u3_susphy_quirk to keep the GUSB3PIPECTL.SUSPHY bit cleared. This change was tested on multiple targets (SM8350, SM8450 QCS615 etc.) for over an year and hasn't exhibited any side effects.

[1]: https://lore.kernel.org/all/[email protected]/

Prashanth K (3):

   arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk
   arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
   arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk
Quoted 8 lines
Quoted 3 lines

It is hard to belive that this quirk is to be set for SM8150, SM8350, SM8450, but not SM8250.

At the moment we wanted to add this quirk for targets where issue has shown up either internal to QC or at customer's end. But the issue didn't come up on SM8250/ SM8550/ SM8650 so far either from customer end or ours. Would like to update for other targets on need basis.

I'm not questioning SM8[56]50, but not seeing SM8250 here is really doubtful.

Signature · 2 lines
With best wishes
Dmitry
maintainer Applied
#15 lore raw
In reply to Prashanth K
Quoted 8 lines · Prashanth K

During device mode initialization on certain QC targets, before the runstop bit is set, sometimes it's observed that the GEVNTADR{LO/HI} register write fails. As a result, GEVTADDR registers are still 0x0. Upon setting runstop bit, DWC3 controller attempts to write the new events to address 0x0, causing an SMMU fault and system crash. More info about the crash at [1].

[...]

Applied, thanks!

[1/5] arm64: dts: qcom: sm8150: Add snps,dis_u3_susphy_quirk

      commit: 9bdbd5286ea597db6131c197ae9ee8614cce1890
[2/5] arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
      commit: a7dac91e56ae58e1479002e5b94fab73039f2e29
[3/5] arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk
      commit: 9588f10adb5b67bea7eeebed2490c20dfbe82e77
[4/5] arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
      commit: ad2011e02dab5ccc9f38848a3d909855a4ae7c8f
[5/5] arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk
      commit: 25eee6c64376fcdc375b97c7e1f105e132654563

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>