Message ID | 1467880362-4844-5-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E022F607D9 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Thu, 7 Jul 2016 08:34:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3585287AB for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Thu, 7 Jul 2016 08:34:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7BC4287B3; Thu, 7 Jul 2016 08:34:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61789287AB for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Thu, 7 Jul 2016 08:33:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756818AbcGGIdu (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Thu, 7 Jul 2016 04:33:50 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:46323 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756761AbcGGIdo (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Thu, 7 Jul 2016 04:33:44 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 07 Jul 2016 17:33:43 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 3161D4AB3E; Thu, 7 Jul 2016 17:33:41 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 224EC480A4; Thu, 7 Jul 2016 17:33:41 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 1B8DE480A3; Thu, 7 Jul 2016 17:33:41 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id TBG26979; Thu, 7 Jul 2016 17:33:41 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="215083371" Received: from mail-pu1apc01lp0019.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.19]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 07 Jul 2016 17:33:40 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WeEM8LBxCPWcMF3plCcx1Zq71v2TdtHd/GwEHkIQrLc=; b=j6D/CRsuKnYuHXHSMqlVkuC7V4qQjemrQx3VGtk9Iy1qC94aUvRmIcH93+yt+ZKTAPRNY9uv9BsSWLPHUENL14WQ5oxCYnCKz//l5namXgn3HPp8Px90g5piypnFGxGfoDNIVkAGwN55tgJpBD39omAQ3nDu5LX3eyXKpJg4rmU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost (211.11.155.144) by HK2PR06MB0546.apcprd06.prod.outlook.com (10.161.183.151) with Microsoft SMTP Server (TLS) id 15.1.534.14; Thu, 7 Jul 2016 08:33:38 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: <balbi@kernel.org> CC: <gregkh@linuxfoundation.org>, <linux-usb@vger.kernel.org>, <linux-renesas-soc@vger.kernel.org>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH/RFC 4/4] usb: renesas_usbhs: set quirk_avoids_skb_reserve if USB-DMAC is used Date: Thu, 7 Jul 2016 17:32:42 +0900 Message-ID: <1467880362-4844-5-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1467880362-4844-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1467880362-4844-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0004.jpnprd01.prod.outlook.com (10.161.225.142) To HK2PR06MB0546.apcprd06.prod.outlook.com (10.161.183.151) X-MS-Office365-Filtering-Correlation-Id: 5e071be8-a866-4625-e35b-08d3a64164de X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0546; 2:vguKKWDXgsoRK5UpwqYw7tCFvkpY/XfzSnGFpuN2XRd/sUYuZgv/dFCe2X/XD6sSn38wHiAFHwYQwgog9XFxJQuwthLSO2cvZ3niiCWsTcEnhayvD0/c0Wk6wn7mPGJUIEjn5fYIvPnT0LK8TkaXXDJNZDK2RmGZn/3bQEc/vSHYzRb32mzOYb4+iJOSF905; 3:jGanEK3/7caACCyq3w91KOg/V8sjZFYXcPqXKVpGjKqX39kQkmoDm1ccna/WZIREPu2JG82w6XnM/OyzZjY9oBe0ry9q2AkLPyvxLSE4kkziuxkdq2xjwOGChieh5Bzd; 25:MOJS4lE0QTDaJmFyNNTeXkUW7ye4ENOnReYaqgAnnliHXIVbmQiZKPlwtGHuN2M43ZxzlSvK4mrOcMcgwKp2Nsrn7/Vmsu3k5WDde3tS7ZPXVXrZCeTKD7biR6kAmpyUzNDXZ3KkPuCg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NqtQTWs2QITrm1tObKguzpM7USVoaZJ; 4:Xj3uJBExC/DU/Z6BX8VeqGtiAu/W2L9i/RmaAIshxyeFqLHnA3wbiHzWpNsFT/BAc82aojUCFtoEXSezpgKA4ya43ZC0sOljnaaBDScKm/4w6Ral6NDUBDtXqrgxOZBAzCl7TbJjT5w+gDFnqS1Dy8OH683H4vomyjPpa4sgVJDtuOKAODsMYmAtclYx/dNUEk7Ajj97H3xeX6NuOAotNcTgtslpywhdYfV7OjbKQDc7LHZg2moBm4NDZIUBKhL5ws4wlpuZ9Ux+xrCB94ExVkzxlGuANThJtISkjHVpkRJCB7q1ZzUAoigjiepe8vaViMRuT/4iwcgbOpOKxnZu4EXIjE557oPKPUp3pdt0vUZBMNHeo9st18L12DPIGfP1J/zjNRCYvuFqL2A/My0/GA== X-Microsoft-Antispam-PRVS: <HK2PR06MB054625D2D1405C72AC21D334B83B0@HK2PR06MB0546.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:HK2PR06MB0546; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0546; X-Forefront-PRVS: 0996D1900D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(50986999)(76176999)(4001430100002)(586003)(19580405001)(101416001)(3846002)(6116002)(2351001)(229853001)(105586002)(19580395003)(92566002)(106356001)(2950100001)(48376002)(42186005)(77096005)(5003940100001)(76506005)(68736007)(97736004)(47776003)(8676002)(7736002)(33646002)(81156014)(2906002)(7846002)(50466002)(66066001)(81166006)(305945005)(107886002)(36756003)(110136002)(50226002)(189998001)(4326007)(78352004); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0546; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-Microsoft-Exchange-Diagnost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+xWfDuheKaZ+V3BM+DepqFlmTj05VeZIdtji4Cxy1lwoIWeNOIpnOyCLmzM8g2JoSjGAJTtlr9H7trzd+DOq6tLtBPzHGuZ8lpxaaperfevtyn9fBko7iZyw1x0mZvxXpxdZogKUBCYRD0XM+mnY28riD3V34pkdHbiP1lAL6px8bPrhmRqPkZSP+FPIVfGMmXuwdt6lMP0xY1z2hIArB+K4pu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0546; 20:IwcSENbFXl+7fypkO3KjUQ1ehm3SV8ssy4N397A2YWpjpfn2WOuiwSMKq5By6Yz6H8M2AGbU6qNBUczjhfvKwqhRzQcciiDz23ZFur1nkR6xzbSiPeX4Ctih98qxYOuZ934UMYsAgmv29sEmZucMnySH1VqZZ77Hst4CzO+J3cA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2016 08:33:38.1573 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0546 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 50f3363..b615c66 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -1103,6 +1103,8 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) gpriv->gadget.name = "renesas_usbhs_udc"; gpriv->gadget.ops = &usbhsg_gadget_ops; gpriv->gadget.max_speed = USB_SPEED_HIGH; + gpriv->gadget.quirk_avoids_skb_reserve = usbhs_get_dparam(priv, + has_usb_dmac); INIT_LIST_HEAD(&gpriv->gadget.ep_list);
This patch sets the quirk_avoids_skb_reserve flag to improve performance of a network gadget driver (e.g. f_ncm.c) if USB-DMAC is used. For example (on r8a7795 board + f_ncm.c + iperf udp mode / receiving): - without this patch: 90.3 Mbits/sec - with this patch: 273 Mbits/sec Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- drivers/usb/renesas_usbhs/mod_gadget.c | 2 ++ 1 file changed, 2 insertions(+)