Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp260743rdb; Mon, 15 Jan 2024 21:58:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwComArc/aJXy8nJMqx9qEMG7UKgYmNbnMtG1oHzHw9CH2o4NP+lP2H7DiqPFQmtj1umge X-Received: by 2002:a05:622a:1485:b0:429:c9d4:9416 with SMTP id t5-20020a05622a148500b00429c9d49416mr8923770qtx.67.1705384724574; Mon, 15 Jan 2024 21:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705384724; cv=none; d=google.com; s=arc-20160816; b=j4eKtoLv2xRMAvSRaEuMRIrCje9QUVmsfA8hb3sCcMonU5b8woagrAB0nVupi2w49n XOpxr2z2hhryZ88EPOw3DATg+ROg32eHlmKgsKNBxxNjNMVdRYEbVpdMfP8XAXn56moQ 7WlbBr3px2so1bA6yAFRYRqbMD7I/uoUmZkN1m+EpafpGS79zcclhKDg9+vVnck/I4w7 ZGq7hFEaiQdwxqNqACdTxjSnQrVGEsCdLdKAycGRfSJ3iXzSZJiIQgn8ugiEJwtN63Mf 41Qv4FDyZ+y9HjRHdVg9npadp+hN+8RLvuqHi1I5TFLocGWOjpODgCxOFnsofZAAdycI 0LYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=HvhkSfs4OWQhwFT+pyBuEHGhB1zniyzSVAICUYt6Mok=; fh=8xIjPU561Eux9kNZ+0H46qoEIG8cvO4EutlQV5keE9Q=; b=JcoIzNU+vnG8yoWDAczIAdfix0xCOPH6fyTksE0VRDwUu9UReR/VrxEuUDu4y4/gEq Zm+uIilmF1UsAOiUJSTw25/Gd1+Y2NGAByICSd3qQLL1cSueUjZEg0pxQYHoZpVNlo5H 7m0iu0CIDdsVavRerDQrFKU4uRQ5jjQGrEGuLwDFZ4tgoDUYSOOkWuC1M6vHIyG4ov9H wMGEj+8n5l1MKmRewdY3Bw+XInN4ESPW2Kgfn8Sh/pBZdT3OErRf0e2yeorTiOxbkW9K xet5aySjInlC/nwAf6KqBbYj0YMWeWij9bXk566ualcifwObXkOJM6PcFFcfr7OgdcTV 940w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PG8Q6D3y; spf=pass (google.com: domain of linux-kernel+bounces-27021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v22-20020ac85796000000b0042a06dbf1e1si307111qta.31.2024.01.15.21.58.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 21:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PG8Q6D3y; spf=pass (google.com: domain of linux-kernel+bounces-27021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 30FAD1C22977 for ; Tue, 16 Jan 2024 05:58:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A9E9101D4; Tue, 16 Jan 2024 05:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="PG8Q6D3y" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 4CD9610A05; Tue, 16 Jan 2024 05:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40G5nMma009648; Tue, 16 Jan 2024 05:58:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=HvhkSfs 4OWQhwFT+pyBuEHGhB1zniyzSVAICUYt6Mok=; b=PG8Q6D3yqAIGO0XRfqCbA9t MU4uo6Y0B9fGXFDW6o/h7YzyOCNCSCvs7D+EPH5dICHzW98P9VzpOP59amaOZZtx ITTwBbCg7Geur3vjFdkbSNPcOZMua7sHg/9Q4DhjtpCyf8WpJdUU0c98tb0+jZDJ cmCNkJc5dIVERtGCXqxQcshs43VRXk8Npf6AMpRdPuPKsDZOVhW2KmmWJqehn5oR TJbYTZ/1Gmn7p6SGDeADvfGuo9dHeLz7l/KvDGQ4YlbNfcLH/okSlTlktnNHizNM xDnBNKeha9/TZRfNv39W3rfwX2V0KvZCFbI3WIERdDLAPuzEQHk9wgPGX85xDww= = Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vn28shyay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 05:58:30 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40G5wTK0027507 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 05:58:29 GMT Received: from hu-prashk-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 15 Jan 2024 21:58:26 -0800 From: Prashanth K To: Greg Kroah-Hartman , Thinh Nguyen , Mathias Nyman CC: Hans de Goede , , , Prashanth K Subject: [PATCH v3 0/2] Set XHCI_SG_TRB_CACHE_SIZE_QUIRK for DWC3 devices Date: Tue, 16 Jan 2024 11:28:14 +0530 Message-ID: <20240116055816.1169821-1-quic_prashk@quicinc.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: lq_s_F1wyhOuXSBQu4LYSBiSIV4N6lNV X-Proofpoint-ORIG-GUID: lq_s_F1wyhOuXSBQu4LYSBiSIV4N6lNV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 suspectscore=0 phishscore=0 mlxlogscore=514 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401160044 XHCI_SG_TRB_CACHE_SIZE_QUIRK was introduced in XHCI to resolve XHC timeout while using SG buffers, which was seen Synopsys XHCs. The support for this isn't present in DWC3 layer, this series enables XHCI_SG_TRB_CACHE_SIZE_QUIRK since this is 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. More information about this XHCI quirk is mentioned on the following thread. https://lore.kernel.org/all/20201208092912.1773650-3-mathias.nyman@linux.intel.com/ Changes in v3: Updated the props[] array size from 4 to 5 in dwc3/host.c Changes in v2: Changed implementation using device property instead of priv_data Split the single patch into 2 patch series, v1 is mentioned below https://lore.kernel.org/all/20231121135936.1669167-1-quic_prashk@quicinc.com/ Prashanth K (2): usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK drivers/usb/dwc3/host.c | 4 +++- drivers/usb/host/xhci-plat.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.25.1