Skip to contentSkip to conversation

arm64: g12-common: parkmode_disable_ss_quirk on DWC3 controller

PATCH Superseded Neil Armstrong 5 participants 15 messages Oct 14, 2019 – Dec 20, 2019

Subsystems (4)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover arm64: g12-common: parkmode_disable_ss_quirk on DWC3 controller

In certain circumstances, the XHCI SuperSpeed instance in park mode can fail to recover, thus on Amlogic G12A/G12B/SM1 SoCs when there is high load on the single XHCI SuperSpeed instance, the controller can crash like:
xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command. xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command. hub 2-1.1:1.0: hub_ext_port_status failed (err = -22)
xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
usb 2-1.1-port1: cannot reset (err = -22)

Setting the PARKMODE_DISABLE_SS bit in the DWC3_USB3_GUCTL1 mitigates the issue. The bit is described as :
"When this bit is set to '1' all SS bus instances in park mode are disabled"

Neil Armstrong (3):
doc: dt: bindings: usb: dwc3: Update entries for disabling SS
instances in park mode
usb: dwc3: gadget: Add support for disabling SS instances in park mode
arm64: dts: g12-common: add parkmode_disable_ss_quirk on DWC3
controller

 Documentation/devicetree/bindings/usb/dwc3.txt    | 2 ++
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 +
 drivers/usb/dwc3/core.c                           | 5 +++++
 drivers/usb/dwc3/core.h                           | 4 ++++
 4 files changed, 12 insertions(+)
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/3 doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/usb/dwc3.txt +2 -0
index 66780a47ad85..c977a3ba2f35 100644
@@ -75,6 +75,8 @@ Optional properties:
 			from P0 to P1/P2/P3 without delay.
  - snps,dis-tx-ipgap-linecheck-quirk: when set, disable u2mac linestate check
 			during HS transmit.
+ - snps,parkmode-disable-ss-quirk: when set, all SuperSpeed bus instances in
+			park mode are disabled.
  - snps,dis_metastability_quirk: when set, disable metastability workaround.
 			CAUTION: use only if you are absolutely sure of it.
  - snps,is-utmi-l1-suspend: true when DWC3 asserts output signal
Signature · 1 line
2.22.0
maintainer Acked-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#3 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#4 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

Li Jun

Quoted 26 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#5 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Speculation;

Maybe the kernel maintainers prefer to optimistically permit future products to easily remove workarounds via quirk flags. Even if data from testing were shown, and it did not impact performance, code reduction and clarity are desirable.

Quoted 38 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

Li Jun

Quoted 26 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#6 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

by a quirk, those platforms without this quirk can't benefit this fix.

if later this bug is fixed by some reversion of dwc3 IP, we can easily remove the workaround by a IP version check:
if (dwc->revision < DWC3_REVISION_PARK_MODE_FIXED)

{
          disable park mode for ss;
}

Li Jun

Quoted 47 lines · Tim <[email protected]> 于2019年11月11日周一 下午10:05写道:

Speculation;

Maybe the kernel maintainers prefer to optimistically permit future products to easily remove workarounds via quirk flags. Even if data from testing were shown, and it did not impact performance, code reduction and clarity are desirable.

Quoted 38 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

Li Jun

Quoted 26 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#7 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

In reply to Jun Li

Hi Li,

Quoted 7 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

I don't have any opinion on this, I think the USB & DWC3 maintainers should decide how to handle this.

Did Synopsys specified a range of affected IP version ?

Neil

Quoted 30 lines

Li Jun

Quoted 26 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

#8 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

This bug exists on all current versions per information I got from Synopsys.
+ Thinh Nguyen <[email protected]>.

Li Jun

Quoted 50 lines · Neil Armstrong <[email protected]> 于2019年11月12日周二 下午5:00写道:

Hi Li,

Quoted 7 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

I don't have any opinion on this, I think the USB & DWC3 maintainers should decide how to handle this.

Did Synopsys specified a range of affected IP version ?

Neil

Quoted 30 lines

Li Jun

Quoted 26 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

    https://patchwork.kernel.org/patch/11164515/
Quoted 17 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
 Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
 1 file changed, 2 insertions(+)

Sigh, what's one more to the never ending list of quirks...

maintainer
#9 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Hi,

Quoted 4 lines · Jun Li

This bug exists on all current versions per information I got from Synopsys.
+ Thinh Nguyen <[email protected]>.

Li Jun

The GUCTL1.PARKMODE_DISABLE_SS is only available in dwc_usb3 controller running in host mode. This should not be set for other IPs.

This can be disabled by default based on IP, but I recommend to have a property to enable this feature for devices that need this.

Quoted 42 lines
Quoted 40 lines · Neil Armstrong <[email protected]> 于2019年11月12日周二 下午5:00写道:

Hi Li,

Quoted 7 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

I don't have any opinion on this, I think the USB & DWC3 maintainers should decide how to handle this.

Did Synopsys specified a range of affected IP version ?

Neil

Quoted 23 lines

Li Jun

Quoted 20 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

     https://urldefense.proofpoint.com/v2/url?u=https-3A__patchwork.kernel.org_patch_11164515_&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=u9FYoxKtyhjrGFcyixFYqTjw1ZX0VsG2d8FCmzkTY-w&m=BCfRHM9e86039Su0-QvK_yUjNnYrnl_BcvxTtViypT8&s=aV5u7uxNX6oTLB3_-qNuzrNvyiqx_rPC6P9TMqG-LNE&e=
Quoted 12 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
  Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
  1 file changed, 2 insertions(+)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Sigh, what's one more to the never ending list of quirks...

BR,
Thinh

#10 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Hi,

Quoted 6 lines · Thinh Nguyen

Hi,

Quoted 3 lines · Jun Li

This bug exists on all current versions per information I got from Synopsys.
+ Thinh Nguyen <[email protected]>.

Quoted 7 lines
Quoted 1 line

Li Jun

The GUCTL1.PARKMODE_DISABLE_SS is only available in dwc_usb3 controller running in host mode. This should not be set for other IPs.

This can be disabled by default based on IP, but I recommend to have a property to enable this feature for devices that need this.

Thanks, so this patchset is the right way to solve this.

Felipe, would it be possible to have it merged for next release ? Should I resend it ?

Thanks,
Neil

Quoted 51 lines
Quoted 44 lines
Quoted 40 lines · Neil Armstrong <[email protected]> 于2019年11月12日周二 下午5:00写道:

Hi Li,

Quoted 7 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

I don't have any opinion on this, I think the USB & DWC3 maintainers should decide how to handle this.

Did Synopsys specified a range of affected IP version ?

Neil

Quoted 23 lines

Li Jun

Quoted 20 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

     https://urldefense.proofpoint.com/v2/url?u=https-3A__patchwork.kernel.org_patch_11164515_&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=u9FYoxKtyhjrGFcyixFYqTjw1ZX0VsG2d8FCmzkTY-w&m=BCfRHM9e86039Su0-QvK_yUjNnYrnl_BcvxTtViypT8&s=aV5u7uxNX6oTLB3_-qNuzrNvyiqx_rPC6P9TMqG-LNE&e=
Quoted 12 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
  Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
  1 file changed, 2 insertions(+)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Sigh, what's one more to the never ending list of quirks...

BR,
Thinh

#11 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

Just writing to say;
this patch is still performing well on 5.5.0-rc1, and
there is no speed improvement by adding DWC3_GUCTL_NAK_PER_ENH_HS BIT(17)
I get up to 3890 ms second lag with "ping -s 5120 $IP" when
copying between USB HDDs either way, but at least this patch stops the crashing.

Quoted 78 lines · Neil Armstrong

Hi,

Quoted 6 lines · Thinh Nguyen

Hi,

Quoted 3 lines · Jun Li

This bug exists on all current versions per information I got from Synopsys.
+ Thinh Nguyen <[email protected]>.

Quoted 7 lines
Quoted 1 line

Li Jun

The GUCTL1.PARKMODE_DISABLE_SS is only available in dwc_usb3 controller running in host mode. This should not be set for other IPs.

This can be disabled by default based on IP, but I recommend to have a property to enable this feature for devices that need this.

Thanks, so this patchset is the right way to solve this.

Felipe, would it be possible to have it merged for next release ? Should I resend it ?

Thanks,
Neil

Quoted 51 lines
Quoted 44 lines
Quoted 40 lines · Neil Armstrong <[email protected]> 于2019年11月12日周二 下午5:00写道:

Hi Li,

Quoted 7 lines · Jun Li

Hi Neil

As I got the information from Synopsys, this bug exists on current IP versions, and per my tests with external USB3 hub + 2 Super speed udisks on data read by dd, I can reproduce this issue with different kernel versions, also I didn't see obvious performance drop by dd tests after disable park mode for super speed, so should we just disable it by default so no need a quirk?

I don't have any opinion on this, I think the USB & DWC3 maintainers should decide how to handle this.

Did Synopsys specified a range of affected IP version ?

Neil

Quoted 23 lines

Li Jun

Quoted 20 lines · Tim <[email protected]> 于2019年11月11日周一 上午8:42写道:

Thanks for working on this Neil,
Is there something that needs doing for this patch to make it into 5.3 or 5.4? As previously mentioned the patch set fixes the issue on affected hardware;

     https://urldefense.proofpoint.com/v2/url?u=https-3A__patchwork.kernel.org_patch_11164515_&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=u9FYoxKtyhjrGFcyixFYqTjw1ZX0VsG2d8FCmzkTY-w&m=BCfRHM9e86039Su0-QvK_yUjNnYrnl_BcvxTtViypT8&s=aV5u7uxNX6oTLB3_-qNuzrNvyiqx_rPC6P9TMqG-LNE&e=
Quoted 12 lines · Rob Herring
Quoted 11 lines · Neil Armstrong

This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCi instances in park mode.

---
  Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++
  1 file changed, 2 insertions(+)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Sigh, what's one more to the never ending list of quirks...

BR,
Thinh

#12 lore raw

Re: [PATCH 1/3] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

This patch is still good on 5.4 and 5.5, and the following network lag was solved by separating the USB and NIC smp_affinity_list.

Quoted 7 lines · Tim

Just writing to say;
this patch is still performing well on 5.5.0-rc1, and
there is no speed improvement by adding DWC3_GUCTL_NAK_PER_ENH_HS BIT(17)
I get up to 3890 ms second lag with "ping -s 5120 $IP" when
copying between USB HDDs either way, but at least this patch stops the crashing.

#13 lore raw

PATCH 2/3 usb: dwc3: gadget: Add support for disabling SS instances in park mode

In reply to Neil Armstrong

In certain circumstances, the XHCI SuperSpeed instance in park mode can fail to recover, thus on Amlogic G12A/G12B/SM1 SoCs when there is high load on the single XHCI SuperSpeed instance, the controller can crash like:
xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command. xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command. hub 2-1.1:1.0: hub_ext_port_status failed (err = -22)
xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
usb 2-1.1-port1: cannot reset (err = -22)

Setting the PARKMODE_DISABLE_SS bit in the DWC3_USB3_GUCTL1 mitigates the issue. The bit is described as :
"When this bit is set to '1' all SS bus instances in park mode are disabled"

---
 drivers/usb/dwc3/core.c | 5 +++++
 drivers/usb/dwc3/core.h | 4 ++++
 2 files changed, 9 insertions(+)
drivers/usb/dwc3/core.c +5 -0
index 999ce5e84d3c..a36cf33330fb 100644
@@ -993,6 +993,9 @@ static int dwc3_core_init(struct dwc3 *dwc)
 		if (dwc->dis_tx_ipgap_linecheck_quirk)
 			reg |= DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS;
 
+		if (dwc->parkmode_disable_ss_quirk)
+			reg |= DWC3_GUCTL1_PARKMODE_DISABLE_SS;
+
 		dwc3_writel(dwc->regs, DWC3_GUCTL1, reg);
 	}
 
@@ -1303,6 +1306,8 @@ static void dwc3_get_properties(struct dwc3 *dwc)
 				"snps,dis-del-phy-power-chg-quirk");
 	dwc->dis_tx_ipgap_linecheck_quirk = device_property_read_bool(dev,
 				"snps,dis-tx-ipgap-linecheck-quirk");
+	dwc->parkmode_disable_ss_quirk = device_property_read_bool(dev,
+				"snps,parkmode-disable-ss-quirk");
 
 	dwc->tx_de_emphasis_quirk = device_property_read_bool(dev,
 				"snps,tx_de_emphasis_quirk");
drivers/usb/dwc3/core.h +4 -0
index 1c8b349379af..5fb557f24d38 100644
@@ -249,6 +249,7 @@
 #define DWC3_GUCTL_HSTINAUTORETRY	BIT(14)
 
 /* Global User Control 1 Register */
+#define DWC3_GUCTL1_PARKMODE_DISABLE_SS	BIT(17)
 #define DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS	BIT(28)
 #define DWC3_GUCTL1_DEV_L1_EXIT_BY_HW	BIT(24)
 
@@ -1022,6 +1023,8 @@ struct dwc3_scratchpad_array {
  *			change quirk.
  * @dis_tx_ipgap_linecheck_quirk: set if we disable u2mac linestate
  *			check during HS transmit.
+ * @parkmode_disable_ss_quirk: set if we need to disable all SuperSpeed
+ *			instances in park mode.
  * @tx_de_emphasis_quirk: set if we enable Tx de-emphasis quirk
  * @tx_de_emphasis: Tx de-emphasis value
  * 	0	- -6dB de-emphasis
@@ -1213,6 +1216,7 @@ struct dwc3 {
 	unsigned		dis_u2_freeclk_exists_quirk:1;
 	unsigned		dis_del_phy_power_chg_quirk:1;
 	unsigned		dis_tx_ipgap_linecheck_quirk:1;
+	unsigned		parkmode_disable_ss_quirk:1;
 
 	unsigned		tx_de_emphasis_quirk:1;
 	unsigned		tx_de_emphasis:2;
Signature · 1 line
2.22.0
#14 lore raw

PATCH 3/3 arm64: dts: g12-common: add parkmode_disable_ss_quirk on DWC3 controller

In reply to Neil Armstrong

When high load on the DWC3 SuperSpee port, the controller crashed as:

[  221.141621] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  221.157631] xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
[  221.157635] xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead
[  221.159901] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  221.159961] hub 2-1.1:1.0: hub_ext_port_status failed (err = -22)
[  221.160076] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[  221.165946] usb 2-1.1-port1: cannot reset (err = -22)

Setting the parkmode_disable_ss_quirk quirk fixes the issue.

---
 arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +1 -0
index 3f39e020f74e..4b002e799e5c 100644
@@ -2381,6 +2381,7 @@
 				dr_mode = "host";
 				snps,dis_u2_susphy_quirk;
 				snps,quirk-frame-length-adjustment;
+				snps,parkmode-disable-ss-quirk;
 			};
 		};
 
Signature · 1 line
2.22.0