Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6642733rdb; Fri, 15 Dec 2023 04:43:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGs0tfC801o0Riec5GP3O2xzST+fgVSfbHTielfZlbhpo5OKYRHGR3CgZeuaAUCU0MNhumh X-Received: by 2002:a05:6a21:789c:b0:18f:97c:928d with SMTP id bf28-20020a056a21789c00b0018f097c928dmr7337023pzc.114.1702644180466; Fri, 15 Dec 2023 04:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702644180; cv=none; d=google.com; s=arc-20160816; b=gRXTymVosRGoJ0DJ2laiJ3u9+yE7uC3rrwbvNkQHgt8Nx7qf8VlBnmnjH3O1lbTo8A 87n2CagtrMQmXlPpxHTqZCdFtzeAB6QB0YZ8aMdm0hIqHnPZeZjQ83kJ7TakSMw6GE6n EOIV7psDNkyb69oOCroOmP2dAhsoF+Cw+YKwupYkx3Y2LNxXa3nOCq2PxY8uiV0okvjN 9ILsTO2cRpV8fwx00u0KOU0bTJh377IajfYlwh2LSyliqNVrXcK+uxEXsOWBY2cArtJP nsUicW9s0jSm3pO6Zgu2NSdEuBf2bEH9HBxDBRm73DBi0YUt3V3S9fqJBVBGT1jyvoYV IDGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zkjm4LYq4Oj0EXGpmyh6DnS3EtrR4VeEhgmVPjeGeLE=; fh=jgz26gV9nYKFe9VojGR67wJXjABgQyrVRp1d38bQRRA=; b=Rg3zhYlDNUzH7toUq65ZrtUOHvyAO7bQz/wih28Id+i218tdpv/46koeVi+os8MWwJ +zexXyYN1Ad4HDnrgd1IrrOwGZX/gbqwe9HWpHvk4bjIXG7iEmv73K6putGvMMnQN7PR MFmikOxSrjBMPUWILAXyw9sKlezbxYFs5s83Gz9WB2yY75IbZftBNdPinqecggtqqafP zefpYxWZIeXjoP/0qbkHBWtXx6AjF6eANckk12cPD9fDTZDz2C36VQEIInxlzB9cUezJ 6hu/3e42Sr0uNcfYxNcShJFIovkmx5Yn6NIt+e4SMGLbZ5MsGoAC7zb1GHU00Qm+Etf2 C0Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAX8XRts; spf=pass (google.com: domain of linux-kernel+bounces-941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q24-20020a170902bd9800b001d04e2f99b1si12966050pls.513.2023.12.15.04.42.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 04:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAX8XRts; spf=pass (google.com: domain of linux-kernel+bounces-941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B8C6B21455 for ; Fri, 15 Dec 2023 12:42:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F09032C6AB; Fri, 15 Dec 2023 12:42:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MAX8XRts" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FF412574B; Fri, 15 Dec 2023 12:42:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28356C433C7; Fri, 15 Dec 2023 12:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702644164; bh=6irgSRIOBfDx7Y9R4iebo0z59NK156l2slhjQb5uxoM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MAX8XRtsMR7KN/CX4loqTS3cNHS+A2K9md2xahwOcn1k5HGpybvApb4ssdQgs0G1U 6rjzXMWainYRiHm2pt9OtNRh2ZCJaTNy1XLuYHGzHfNhDgOuIYs9lVl7vzBMHG/y4t hyTjyonBwa39LfE9FtSyBVDS+jDbgknSBWheQTNE= Date: Fri, 15 Dec 2023 13:42:41 +0100 From: Greg Kroah-Hartman To: Prashanth K Cc: Thinh Nguyen , Mathias Nyman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 1/2] usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK Message-ID: <2023121518-uncharted-riddance-7c58@gregkh> References: <20231212112521.3774610-1-quic_prashk@quicinc.com> <20231212112521.3774610-2-quic_prashk@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212112521.3774610-2-quic_prashk@quicinc.com> On Tue, Dec 12, 2023 at 04:55:20PM +0530, Prashanth K wrote: > Upstream commit bac1ec551434 ("usb: xhci: Set quirk for > XHCI_SG_TRB_CACHE_SIZE_QUIRK") introduced a new quirk in XHCI > which fixes XHC timeout, which was seen on synopsys XHCs while > using SG buffers. But the support for this quirk isn't present > in the DWC3 layer. > > We will encounter this XHCI timeout/hung issue if we run iperf > loopback tests using RTL8156 ethernet adaptor on DWC3 targets > with scatter-gather enabled. This gets resolved after enabling > the XHCI_SG_TRB_CACHE_SIZE_QUIRK. This patch enables it using > the xhci device property since its needed for DWC3 controller. > > In Synopsys DWC3 databook, > Table 9-3: xHCI Debug Capability Limitations > Chained TRBs greater than TRB cache size: The debug capability > driver must not create a multi-TRB TD that describes smaller > than a 1K packet that spreads across 8 or more TRBs on either > the IN TR or the OUT TR. > > Cc: > Signed-off-by: Prashanth K What commit id does this fix? > --- > drivers/usb/dwc3/host.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c > index 61f57fe5bb78..31a496233d87 100644 > --- a/drivers/usb/dwc3/host.c > +++ b/drivers/usb/dwc3/host.c > @@ -89,6 +89,8 @@ int dwc3_host_init(struct dwc3 *dwc) > > memset(props, 0, sizeof(struct property_entry) * ARRAY_SIZE(props)); > > + props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); And this is ok if the entry is not present? thanks, greg k-h