Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751878AbdITJmP (ORCPT ); Wed, 20 Sep 2017 05:42:15 -0400 Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70]:10579 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751585AbdITJmK (ORCPT ); Wed, 20 Sep 2017 05:42:10 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; From: To: , Rob Herring , Mark Rutland , Russell King , Felipe Balbi CC: Greg Kroah-Hartman , Mathias Nyman , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM PORT" , open list , "open list:DESIGNWARE USB3 DRD IP DRIVER" Subject: [PATCH v1] usb: host: Implement workaround for Erratum A-007463 Date: Wed, 20 Sep 2017 17:24:41 +0800 Message-ID: <20170920092441.21292-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131503741286363605;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7966004)(336005)(39380400002)(376002)(346002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(68736007)(47776003)(551934003)(105606002)(50986999)(36756003)(4326008)(77096006)(1076002)(2876002)(50226002)(189998001)(33646002)(53936002)(6666003)(2870700001)(2906002)(86152003)(81166006)(7416002)(81156014)(8676002)(8936002)(356003)(5820100001)(23676002)(305945005)(50466002)(8656003)(110136005)(5660300001)(54906003)(97736004)(316002)(498600001)(85426001)(104016004)(106466001)(86362001)(575784001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2689;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD026;1:5ITSnHfHfN6crVJKQL1DBBz8utrI33kzS2qWDJXEojQcuYBhXRIsGwQqFyqZJoGEXpqtqEGetqdY70pUuff/qr3tf2p5ol+L0Vl2+x/isj+2SYFVeqIoMANHdYiXVPox X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a6663fc-6342-4f2b-31d5-08d5000bdc79 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2689;3:7ASQFTLpvXCNXs0SLNZ17kfBgEQg4COvDCGGU0ao5+6Ua7fJ2FPy87/r477grdA2NPGIMF6iQ4Q+2eC5z1MmN7ATpikpxDxn1WrXvh7GGO5IPWCnRwF39a4w5NnJi1Ca2Js9+ZUNynCnevRp5M9eiWUXEl7xu5mV5ADoMWr2/82t5UZlgJa/GTsLaESX2rR5mubYFpcNXF0/oJsNtj8n5/232yDjv1CFDC+iBYY1TDimu1yTQ3pFCdNMgR4+WtausHoO5GnvnU5wOUfRPQvXLVghAGsP+OHkYZdC8UN/36qGNeqB32W9Bk8BsVZn8egk6HripA0TaWQLRuo3vh0UzLIuSVOTGW+kOM7iLdqN0Ys=;25:ah8GOAcx1DyzPXKGqwmR1NWiGzi3fTTsHPVMd1EKdKy3aBQDIIRnV2rpVC5tLkAp7Q64cEfJam7wPi5X0kFHUoc2ypDfHNQ7CFH6jhraL7oQCJ5bsjP37cWyG/9QsCvetPqJ8U5lpw6qIMo26bn5FIXEm/XaSGQ3U2+krGB2VGi9MWp5NBaZVzdeXWqhrKuBqEstZYd7x3csDR3whUhWzSMtxXpI48xi5GWlwvidxPjfjQkYxEW/ljZgIS1beDPK8JqEb1Wega4JhgAdn81NNPI9WFaApZqs3HK1eI58OCD8YEe+8hhIRYFQhWWo9nrRxsYVee8WEO403NJ1XZqutw== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2689;31:Yq/jyJkZhOCqUjP1MkMqdLKHHpiersdJti2XiIVJca3fFGyIi8bYPzuSG+ZrXlA3+JNIZMhoJ9j4YkVDYaGoZInn/J1PZ5NR18GItPMrghm/k5JVyNSsqwgmEi/DaAzai4h469Bf8sCacQK80Kl4shV0E+kcOJ+mdf5SwfUQoQ6ODWgZyyZK7z14r1InANPoRPpzWdDt8+QdlBKEF238ayvg309kECjb/DA/6aCba8w=;4:SiBUVwOLaf4O7hnxd5W52a0iDwgP6YTHJnUDEodz8ANe/52WbRs0KzuLbAMfQP89bYzm7kxOkpMP/zXl/56Dz1U3QEw0XNbneVor6tTDNcZhatMytm9ZmB9eIqt8hzETqsx6OQRK0XXizPjUk9/UGTLLGfIZWgt0tmCgkg9KsfsP0PUQUzvtA2YWU38EvTa+dNR2LflXRNsFyX+SzKwUgOvIKS0ZZly7b/94Zg+PpT5YAOayEQuRoMlJdAIBaSMqUqB2jMjiFImVArpT6Asmd1/e08QcgQcTV7eG1W7sqqSM9Hl4bLE3DmnqxTI916+DT/XydN0XKLHh+Yv+6qEcQg== X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123559100)(20161123556025)(20161123561025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR03MB2689;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR03MB2689; X-Forefront-PRVS: 04362AC73B X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAzTUIyNjg5OzIzOmk2cHRINyt4QnEwbVlWYUYyc2tnRUxYajBC?= =?utf-8?B?OE45UnZ5K1FWaTlMejdEY3NSTTNPZmsrV2NpK3pNNms2QjN6WGxrYm9PRGsr?= =?utf-8?B?T2VFaEhuWktzN0tWRndkQi9YTXp3VSt2M0VySVg4YkZVUXdzMHF3SzN0RmlB?= =?utf-8?B?Vmw5RTJ3NHNMQldTNEp5REpVUnRvVFp6M29xUktyT0ZyMUV0N2Vza05hQUww?= =?utf-8?B?RzQybUttQ3c5MUpZdkx3czVBWWp6b1hrdEQ2bjQ2LzlGYXh3OWsxVzhTWXZT?= =?utf-8?B?MnZsS0pSUjdVQkRIdWxpOWhEUStFaGlTalJVS0pYM0RBSVAwWU1heG9rSTB1?= =?utf-8?B?ci9CWTNzeEFJRHJSQlV1UWx5cWZDQ1lpWk5RVDNwSmFrNUplTFV1dFVlWnZp?= =?utf-8?B?N2dhTVlsZW9sRHBmUy95b0NrTEZLMkF1UW5zbFJrQ3NsY3FIWUlNV01ocCtU?= =?utf-8?B?OHhPVnVMc1RWV2RhVFJxaFRxSTJXbFJCNWFaYm5hRnlPcncrM0JzeWNaNWlH?= =?utf-8?B?YXlqdlY1eFErVHM4ZWhNdDF3eG1NV2lEUjNUdW9kQitnOGVpcERZVzNPUU14?= =?utf-8?B?Z0pFYmd6V2pNZGR2THhQbk82NE94UmZzRmtoN3MwVVZsOW9kelorb1g0cm1o?= =?utf-8?B?cVBNQU9iVlozTGNUK29TaWsyY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: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2017 09:42:08.4023 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2689 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9037 Lines: 220 From: "yinbo.zhu" When a transaction error (defined in Section 4.10.2.3, "USB Transaction Error" of the xHCI Specification) occurs on the USB, the host controller reports this through a transfer event with the completion code "USB Transaction Error". When this happens, the endpoint is placed in the Halted state. In response, software must issue a Reset Endpoint command to transition the endpoint to the Stopped state. In order to restart the transfer, the driver can perform either of the following: • Ring the doorbell again, which restarts the transfer from where it stopped, or • Issue a Set TR (Transfer Ring) Dequeue Pointer command for the endpoint to start the transfer from a different Transfer Ring pointer Consider the following scenario: 1. The xHCI driver prepares a control transfer read to one of the device's control endpoints; 2. During the IN data stage, a transaction error occurs on the USB, causing a transfer event with the completion code "USB Transaction Error"; 3. The driver issues a Reset Endpoint command; 4. The driver rings the doorbell of the control endpoint to resume the transfer. In this scenario, the controller may reverse the direction of the data stage from IN to OUT. Instead of sending an ACK to the endpoint to poll for read data, it sends a Data Packet (DP) to the endpoint. It fetches the data from the data stage Transfer Request Block (TRB) that is being resumed, even though the data buffer is setup to receive data and not transmit it. NOTE This issue occurs only if the transaction error happens during an IN data stage. There is no issue if the transaction error happens during an OUT data stage. Impact: When this issue occurs, the device likely responds in one of the following ways: • The device responds with a STALL because the data stage has unexpectedly changed directions. The controller then generates a Stall Error transfer event, to which software must issue a Reset Endpoint command followed by a Set TR Dequeue Pointer command pointing to a new Setup TRB to clear the STALL condition. • The device does not respond to the inverted data stage and the transaction times out. The controller generates another USB Transaction Error transfer event, to which software likely performs a USB Reset to the device because it is unresponsive. It is not expected that any of these recovery steps will cause instability in the system because this recovery is part of a standard xHCI driver and could happen regardless of the defect. Another possible system-level impact is that the controller attempts to read from the memory location pointed at by the Data Stage TRB or a Normal TRB chained to it. associated with this TRB is intended to be written by the controller, but the controller reads from it instead. Normally, this does not cause a problem. However, if the system has some type of memory protection where this unexpected read is treated as a bus error, it may cause the system to become unstable or to crash. Workaround: If a USB Transaction Error occurs during the IN data phase of a control transfer, the driver must use the Set TR Dequeue Pointer command to either restart the data phase or restart the entire control transfer from the Setup phase. Configs Affected: LS1021-20-22A-R1.0, LS1021-20-22A-R2.007463 Signed-off-by: yinbo.zhu --- arch/arm/boot/dts/ls1021a.dtsi | 1 + drivers/usb/dwc3/core.c | 2 ++ drivers/usb/dwc3/core.h | 2 ++ drivers/usb/dwc3/host.c | 2 ++ drivers/usb/host/xhci-plat.c | 3 +++ drivers/usb/host/xhci-ring.c | 28 +++++++++++++++++++++++----- drivers/usb/host/xhci.h | 3 ++- 7 files changed, 35 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 7bb9df2c1460..9f76b2b82dce 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -683,6 +683,7 @@ dr_mode = "host"; snps,quirk-frame-length-adjustment = <0x20>; snps,dis_rxdet_inp3_quirk; + snps,quirk_reverse_in_out; }; pcie@3400000 { diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 03474d3575ab..e6a3be9280b1 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1031,6 +1031,8 @@ static void dwc3_get_properties(struct dwc3 *dwc) &hird_threshold); dwc->usb3_lpm_capable = device_property_read_bool(dev, "snps,usb3_lpm_capable"); + dwc->quirk_reverse_in_out = device_property_read_bool(dev, + "snps,quirk_reverse_in_out"); dwc->disable_scramble_quirk = device_property_read_bool(dev, "snps,disable_scramble_quirk"); diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index ea910acb4bb0..d4b5d8e87672 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1016,6 +1016,8 @@ struct dwc3 { unsigned tx_de_emphasis_quirk:1; unsigned tx_de_emphasis:2; + unsigned quirk_reverse_in_out:1; + u16 imod_interval; }; diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index 76f0b0df37c1..1d412390b3c9 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -101,6 +101,8 @@ int dwc3_host_init(struct dwc3 *dwc) if (dwc->usb3_lpm_capable) props[prop_idx++].name = "usb3-lpm-capable"; + if (dwc->quirk_reverse_in_out) + props[prop_idx++].name = "quirk-reverse-in-out"; /** * WORKAROUND: dwc3 revisions <=3.00a have a limitation * where Port Disable command doesn't work. diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index c04144b25a67..a55dcb1a476b 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -273,6 +273,9 @@ static int xhci_plat_probe(struct platform_device *pdev) if (device_property_read_bool(&pdev->dev, "quirk-broken-port-ped")) xhci->quirks |= XHCI_BROKEN_PORT_PED; + if (device_property_read_bool(&pdev->dev, "quirk-reverse-in-out")) + xhci->quirks |= XHCI_REVERSE_IN_OUT; + hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); if (IS_ERR(hcd->usb_phy)) { ret = PTR_ERR(hcd->usb_phy); diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index cc368ad2b51e..02505ace0a2e 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1933,11 +1933,13 @@ static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, union xhci_trb *ep_trb, struct xhci_transfer_event *event, struct xhci_virt_ep *ep, int *status) { + struct xhci_dequeue_state deq_state; struct xhci_virt_device *xdev; struct xhci_ep_ctx *ep_ctx; struct xhci_ring *ep_ring; unsigned int slot_id; u32 trb_comp_code; + u32 remaining; int ep_index; slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); @@ -1959,14 +1961,30 @@ static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, if (trb_comp_code == COMP_STALL_ERROR || xhci_requires_manual_halt_cleanup(xhci, ep_ctx, trb_comp_code)) { - /* Issue a reset endpoint command to clear the host side - * halt, followed by a set dequeue command to move the - * dequeue pointer past the TD. - * The class driver clears the device side halt later. + /* + * A-007463: After transaction error, controller switches + * control transfer data stage from IN to OUT direction. */ - xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, + remaining = EVENT_TRB_LEN(le32_to_cpu(event->transfer_len)); + if (remaining && xhci_requires_manual_halt_cleanup(xhci, ep_ctx, + trb_comp_code) && + (xhci->quirks & XHCI_REVERSE_IN_OUT)) { + memset(&deq_state, 0, sizeof(deq_state)); + xhci_find_new_dequeue_state(xhci, slot_id, + ep_index, td->urb->stream_id, td, &deq_state); + xhci_queue_new_dequeue_state(xhci, slot_id, ep_index, + &deq_state); + xhci_ring_cmd_db(xhci); + } else { + /* Issue a reset endpoint command to clear the host side + * halt, followed by a set dequeue command to move the + * dequeue pointer past the TD. + * The class driver clears the device side halt later. + */ + xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, ep_ring->stream_id, td, ep_trb, EP_HARD_RESET); + } } else { /* Update ring dequeue pointer */ while (ep_ring->dequeue != td->last_trb) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index e3e935291ed6..0109965616d6 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1780,7 +1780,7 @@ struct xhci_hcd { #define XHCI_STATE_DYING (1 << 0) #define XHCI_STATE_HALTED (1 << 1) #define XHCI_STATE_REMOVING (1 << 2) - unsigned int quirks; + u64 quirks; #define XHCI_LINK_TRB_QUIRK (1 << 0) #define XHCI_RESET_EP_QUIRK (1 << 1) #define XHCI_NEC_HOST (1 << 2) @@ -1821,6 +1821,7 @@ struct xhci_hcd { #define XHCI_LIMIT_ENDPOINT_INTERVAL_7 (1 << 26) #define XHCI_U2_DISABLE_WAKE (1 << 27) #define XHCI_ASMEDIA_MODIFY_FLOWCONTROL (1 << 28) +#define XHCI_REVERSE_IN_OUT (1 << 29) unsigned int num_active_eps; unsigned int limit_active_eps; -- 2.14.1