Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2239571ybb; Fri, 27 Mar 2020 01:36:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsVuK65mvnhLOh/EXUNAjznm3oB60u+BH9scJngUKBP57jJFgYsYqCWqvHLRc3SBx1AvAYx X-Received: by 2002:a4a:da1a:: with SMTP id e26mr4131178oou.19.1585298192193; Fri, 27 Mar 2020 01:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585298192; cv=none; d=google.com; s=arc-20160816; b=bDhGthI2Whv/4UoFq/Qe66oz2epxlioXIANNGtS1Le3dMmP8KJ6LPcwfVlas+e9KFL dOEgFBd98Z+scHscKtuwO4GOKmR1fvz1EIvfZ8vWJxHJXiIS1LSlhG+CCt5jOjquCX6b yQlOcQZWCGKV2e95t0jlbx9u3s097BIGpMjgP5wb5Negu2sOf73Z3Ue45MTBLG6hGrvz cT64asG6XpSSWMxJZ+I3csbI3kmA39j8F5hf6UTmsPybgF23rJQd/vFMGsp74AFLWH8N GpAvUvwxjetm9qU57MQOx6oivEm9BwFBy0pBkTG8WYQF/g+dwu3ItK9iI1LJKonvrs51 lgTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:from:references:in-reply-to :message-id:date:dkim-signature; bh=ZamonZsFzEvgO1fyhNZOM749cN+1z7+0Swgkax7DfSA=; b=a/lGuT7PE1GHuUA3YnKI9uew8kLEDpt0y4bK2SMONELF5nlLYz7Cxrb/LquKFbst3Q iF6UnMv/wUp4OnRQTHzE6mciKfiCosWmVLBwQEv/6igsgYndkoCUclin6gQ7Q/i5ssKm I7U64A03fKh3t09Yr3YfzhNDgkxZymLqJJ4l2Cs4oaNyGKvkMB+AbjXJby0HruH3ZlVA cT/7fIub2Ksqd8exorZ0ZeBEUb98s3hER3oxJrCJoxs74f5qAxDY/iwEILh6ns8C2eYN mgz5N8h8p49Raghib72jaNH8L82i4K0CmDeYGEXdUwBxUZGMd4Q7gmb9v+pmT4m3Rs0B OEsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TZHuwz3H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si2163043otr.13.2020.03.27.01.36.19; Fri, 27 Mar 2020 01:36:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TZHuwz3H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726959AbgC0IfC (ORCPT + 99 others); Fri, 27 Mar 2020 04:35:02 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:32782 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgC0IfA (ORCPT ); Fri, 27 Mar 2020 04:35:00 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id D8BBD408AF; Fri, 27 Mar 2020 08:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1585298100; bh=5lvr85wmUB+ig2sjTf8GoiI7NOjmJtqmkcAiDXQQ+iE=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=TZHuwz3H5eNA7EYxS892ep1aVCLanQL2wHYtC7TQ1GACbF04PWZcVKFGvVcwkiHP1 CYLRWXaWk05eYI1h1R7VJvIzByK6EqIn9bFvU5GboH+n76NT5uw/zga/pX/YBLqaaR CDPlysiYElKGoT7ELcRtwexNbR8LB48sFJ9f1mMz2HSyfwtLhXyQj7E8cmDy6Kwyh+ JWRh/qgvTfFtA2h1lc+7ueGfIOyDyo/qNcR48XZf/xN58RVCM+0jpyZNUr+V5wFa// OX/xFkj7QplQsUJZUHqqGWNPUpFuI53NEUp9tDSw/nBlm9poo2Md+EJOFsYbw5E8Ck rSx6MV7u9iPVQ== Received: from tejas-VirtualBox (joglekar-e7480.internal.synopsys.com [10.146.16.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPSA id 3D1BAA005B; Fri, 27 Mar 2020 08:34:56 +0000 (UTC) Received: by tejas-VirtualBox (sSMTP sendmail emulation); Fri, 27 Mar 2020 14:04:53 +0530 Date: Fri, 27 Mar 2020 14:04:53 +0530 Message-Id: <8a9ca8e08d7c4957789a209c77589f1aa4bd2f06.1585297723.git.joglekar@synopsys.com> In-Reply-To: References: From: Tejas Joglekar Subject: [RFC PATCH 1/4] dt-bindings: usb: Add snps,consolidate-sgl & consolidate-sgl To: Tejas Joglekar , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Cc: John Youn Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 small buffer sizes are scattered over the sg list not making up to MPS or total 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/Documentation/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. - tx-fifo-resize: determines if the FIFO *has* to be reallocated. - snps,incr-burst-type-adjustment: Value for INCR burst type of GSBUSCFG0 diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt index 3f378951d624..a90d853557ee 100644 --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt @@ -43,6 +43,9 @@ Optional properties: - quirk-broken-port-ped: set if the controller has broken port disable mechanism - imod-interval-ns: default interrupt moderation interval is 5000ns - phys : see usb-hcd.yaml in the current directory + - consolidate-sgl: indicate if you need to consolidate sg list into a + temporary buffer when small SG buffer sizes does not make upto MPS + size or total transfer size across the TRB cache size. additionally the properties from usb-hcd.yaml (in the current directory) are supported. -- 2.11.0