Add snps,dis_u3_susphy_quirk for some QC targets
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
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
@@ -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
PATCH 2/5 arm64: dts: qcom: sm8350: Add snps,dis_u3_susphy_quirk
In reply to Prashanth KDuring 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
@@ -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
PATCH 3/5 arm64: dts: qcom: sm8450: Add snps,dis_u3_susphy_quirk
In reply to Prashanth KDuring 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
@@ -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
PATCH 4/5 arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
In reply to Prashanth KFrom: 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
@@ -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
PATCH 5/5 arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirk
In reply to Prashanth KFrom: 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
@@ -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
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 address0x0, 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 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_quirkPratham 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
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 address0x0, 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_quirkAre 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
Konrad Dybcio
Reviewed-byQuoted 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 address0x0, 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_quirkPratham 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
Bjorn Andersson
maintainerQuoted 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 address0x0, 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 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_quirkPratham Pratap (2):
arm64: dts: qcom: qcs615: Add snps,dis_u3_susphy_quirk
arm64: dts: qcom: qdu1000: Add snps,dis_u3_susphy_quirkAre 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
Reviewed-by Konrad Dybcio <[email protected]>Konrad
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 address0x0, 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_quirkQuoted 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_quirkAre 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,
BjornQuoted 3 lines
Reviewed-by Konrad Dybcio <[email protected]>Konrad
Thanks for the review Konrad
Regards,
Prashanth K
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 address0x0, 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_quirkQuoted 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_quirkAre 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
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 address0x0, 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_quirkAre 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
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 address0x0, 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 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_quirkIt 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_quirkAre 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
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 address0x0, 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
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 address0x0, 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: 25eee6c64376fcdc375b97c7e1f105e132654563Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>