Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1049622ybz; Thu, 16 Apr 2020 01:43:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLq3KrXjUAUrehe0pCrIHZ8AR+BONEb2bPNkMc9DTUdtEuWmkovKRtFEh79pJENbydDobGx X-Received: by 2002:a17:906:18a2:: with SMTP id c2mr8821350ejf.167.1587026589447; Thu, 16 Apr 2020 01:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587026589; cv=none; d=google.com; s=arc-20160816; b=d2EmfwYwyu9wU3k3u8IbTthE5dcSLTkCGunfug83/gOxW55ITyv/7QzRiQsaKEOdaN n3omCZ/f+fWfqBeqb2V9XJyPcLokt+X/UULcBm3RP//Qw4P/w4OXB9pNhNeJk15tCHe5 loMmq6m+nGWc/xLA44kjSNPu7FXaVNEGsKIBv+2LKF/1LoSgHxBFalUyDo22jS57sIU8 LAtThcX6VcRcLmTwu1lT+wVF5VHmvZCr2i4ki2ioWYpeOG8Twltypb3cW028C03+QB30 pC+Hr6knYa8vCxEIBsPfUMXpYhab547yixTGrOkZTlDRzOkPAcJQR2aOfZwTAxsrhhal YdnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=5XivUy7FYVNBF2ALrQWWddiXZG0r/RtMEsTQOMXoZEw=; b=Sy1sS7vBmpIjSBMJvlixvFzxWnMrxMS9OtRBWx5vAE2onsiwgEsh4TU3dXihNxE/oy d65DasXt6B8EDfR0XZ2aDJuU7Aui3tzwJu6U532stDE8BgWvbcoS4ydaVupqWj+OAFCH f2yL4dYgn6a/MIjUw8THY9HZlgQifOCjHKbq39lP19f/kNhjfOLljuQ9YZMqfOFr5YF4 9iIWy6cdcq0UfzOgYDHFSkSzEyvJaerHb7xnWR+Ffn7inP6MJ1mG1gCJpPDjVBzmhmB1 IxBCR06qd7GXjxBeYgB/cZLIA6PBww6KwDRMONHt9uTZ+l5WXslyKLxGbXXZ3q2N0Jgw v6jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hrxyamFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si1588159edq.394.2020.04.16.01.42.46; Thu, 16 Apr 2020 01:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hrxyamFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502576AbgDPIix (ORCPT + 99 others); Thu, 16 Apr 2020 04:38:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502254AbgDPIgU (ORCPT ); Thu, 16 Apr 2020 04:36:20 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B68EC061A0C; Thu, 16 Apr 2020 01:22:36 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id j14so4903993lfg.9; Thu, 16 Apr 2020 01:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5XivUy7FYVNBF2ALrQWWddiXZG0r/RtMEsTQOMXoZEw=; b=hrxyamFeaN5opbMcHQIxgyojWXXgF0/AxSdT61mtPK/9nuopn2X3w+Eo7DmP8MgRrW cyaf9xt2UXlInW++gbOBn+B5WwIovU/cUwpTbDaABwoFf6xwgWIz3NH8KkrePTDplsKB ooSPWlZBuCE8bUqqRkYUK9MfI6BmkvmvP2sRVcs6zVmHnu7c6cQoGlTWZmFc5xx6D6JD XqNOkrRYtWq0NW4zllmDjBajqjgPIDlFtp/AzA1F5KJdrO17qnCbXArLOZjEMUkasGJo uPE801WBQchV6XXE8oaDAXSz06AUauSnJ4VLBZAz0TwXeyJpI6InwVpG5Hpu4/WA3ee0 EBmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=5XivUy7FYVNBF2ALrQWWddiXZG0r/RtMEsTQOMXoZEw=; b=G0UeX2h2pcFjrUThs+ZJXfdYbuKShaBL0C2vFtAZkinTWCsrEKmjDupnu9ectITvRR Dxj//Q8F3UqtRK8D8JdQNJvCKyCt+ZZW0R/l2TQX3Jb9M/7nagJszvxz7dWE2zAPbCt2 snqB8a+4GNk0IEOVw8xiSiu/elujRbwWnegFn3iOIRRYnslV+MM+WLaM4emE5opqore8 rLabsEQ1bZdMXC6YtXAdE6HKr0qTFUDpmvuBDN2ssvNDmwM5qFGGE3Niu0qKM0qbgxpk XyVfpr8irGqf4zKxfnEXHM1IzKoVhCVlqtxy21n/3bKA0CoXdcTDdq5f/4J4LJH4Aoic iJ2w== X-Gm-Message-State: AGi0PuaTUiucwBO6LYrQ4clbsH/NPr6PsLcceNS4IehlQSlkzVHTZU5l VTR9ZKQT90qJHWreH+tyxMKmt1GVrZY= X-Received: by 2002:ac2:4426:: with SMTP id w6mr5381093lfl.8.1587025354320; Thu, 16 Apr 2020 01:22:34 -0700 (PDT) Received: from saruman (91-155-214-58.elisa-laajakaista.fi. [91.155.214.58]) by smtp.gmail.com with ESMTPSA id y25sm14443965lfy.59.2020.04.16.01.22.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Apr 2020 01:22:33 -0700 (PDT) From: Felipe Balbi To: Tejas Joglekar , Rob Herring , Tejas Joglekar Cc: "linux-usb\@vger.kernel.org" , "devicetree\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" , Mark Rutland , John Youn Subject: Re: [RESENDING RFC PATCH 1/4] dt-bindings: usb: Add snps,consolidate-sgl & consolidate-sgl In-Reply-To: References: <8a9ca8e08d7c4957789a209c77589f1aa4bd2f06.1585297723.git.joglekar@synopsys.com> <20200405014548.GA25539@bogus> Date: Thu, 16 Apr 2020 11:22:29 +0300 Message-ID: <874ktjsuuy.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Tejas Joglekar writes: > Hi, > On 4/5/2020 7:15 AM, Rob Herring wrote: >> On Fri, Mar 27, 2020 at 03:11:56PM +0530, Tejas Joglekar wrote: >>> This commit adds the documentation for consolidate-sgl, and >>> snps,consolidate-sgl property. These when set enables the quirk for >>> XHCI driver for consolidation of sg list into a temporary buffer when s= mall >>> buffer sizes are scattered over the sg list not making up to MPS or tot= al >>> transfer size within TRB cache size with Synopsys xHC. >>> >>> Signed-off-by: Tejas Joglekar >>> --- >>> Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ >>> Documentation/devicetree/bindings/usb/usb-xhci.txt | 3 +++ >>> 2 files changed, 6 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documenta= tion/devicetree/bindings/usb/dwc3.txt >>> index 9946ff9ba735..292d1f7969e4 100644 >>> --- a/Documentation/devicetree/bindings/usb/dwc3.txt >>> +++ b/Documentation/devicetree/bindings/usb/dwc3.txt >>> @@ -104,6 +104,9 @@ Optional properties: >>> this and tx-thr-num-pkt-prd to a valid, non-zero value >>> 1-16 (DWC_usb31 programming guide section 1.2.3) to >>> enable periodic ESS TX threshold. >>> + - snps,consolidate-sgl: enable sg list consolidation - host mode only= . Set to use >>> + SG buffers of at least MPS size by consolidating smaller SG >>> + buffers list into a single buffer. >>=20 >> The preference is not to keep adding properties for every single quirk=20 >> or feature. These should be implied by specific compatibles. As Synopsys= =20 >> knows what quirks/errata/features are in each version of IP, the=20 >> compatible strings should reflect those versions. (And yes, I'm sure=20 >> there's customer ECO fixes that aren't reflected in the version, but=20 >> that's why we have SoC specific compatibles too.) This is the only way=20 >> we can fix quirks in the OS without doing DT updates. For comparison, do= =20 >> you want to have to update your PC BIOS so an OS can work-around issues? >> > Yes, I understand what you want to say here. But I think this compatible = string > does not work with the platform drivers with PCI based systems. So based = on the vendor=20 > id and device id then I need to set the quirk required.=20 > > @Felipe: What do you suggest for setting up quirk without the DT update f= or dwc3? We have been using Synopsys controller's revision register, but that's not visible to xhci driver and we don't have a separate compatible for each synopsys version on the xhci driver side. One option would be to add "snps,xhci-foo-bar" to xhci-plat and use that. =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl6YFcUACgkQzL64meEa mQastxAAyArwov8WGnSblC6znvn16hE4x9d7GVKj4PyYpMBcnccppp2VGviRXfRs BzH8B0drFGFQ5fhRGZDpm2uAssAJgdrUkw4npkVvVKFztohaAha8Q9yu02jtChXD 1AVmbd1nUH5IiIhlLPa6AuxeszA3hP1p3os1wSCIuH3NcBEx6K+I27X5zgs7uG5v OT5oednhw3mgQBxHkh9luPlLiToFbrb1eE21w7FzCKPzbMeAnJzFVodlcVe5OTF/ cvzdLk+YhP0JG+K4trjp1bu7/nlvy5qWXQ3FBaUv6/7DzAwDKKD77wN8z1i1nebl hhk60Kt6x1d566VvpJZNyjpYrdd5ub5HQbdp4933JBjMyNYwx2FBwjQxylV31M4s hB1BSDtVUy+h+cD9qwNWpE9I3iuRqjqNIl0IfJRxhEzaUHU89EYKpk3XbJr83rtp Ae/SopbpHr2GelmPhgUK0PBDeaeIIa+WWJQMqtfsVQO6z+43oBJHzYmsY8QZLj9H Yt8IuWRMc7kbpcNQl+Dx+JCQRLhggkeLIGaIPmexAzWSRY4Cod0Q4QD6xXmOlJiE S64Egfd9Q8d8LBY3iyFRRTMAQcCFVfaK+8Uf9kwitgHww/Hc/886/4WhBaVHTAoJ 8Pwku4qw1VePFeKWoUKqwCEWdwuFxq0eqKTWgdu5HurClw+OJEg= =faNe -----END PGP SIGNATURE----- --=-=-=--