From patchwork Mon Aug 22 08:48:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9293239 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 1058960574 for ; Mon, 22 Aug 2016 08:49:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0027528888 for ; Mon, 22 Aug 2016 08:49:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E94902888F; Mon, 22 Aug 2016 08:49:35 +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 0F17B28888 for ; Mon, 22 Aug 2016 08:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066AbcHVIte (ORCPT ); Mon, 22 Aug 2016 04:49:34 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:61751 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753243AbcHVIta (ORCPT ); Mon, 22 Aug 2016 04:49:30 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 22 Aug 2016 17:49:29 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 7A8C44C982; Mon, 22 Aug 2016 17:49:29 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 61BF7480A4; Mon, 22 Aug 2016 17:49:29 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 5CE5148014; Mon, 22 Aug 2016 17:49:29 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id TAA23616; Mon, 22 Aug 2016 17:49:29 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="218328575" Received: from mail-sg2apc01lp0245.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.245]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 22 Aug 2016 17:49:28 +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=1/fn6OVPxqhPZlOg/O+C161twXUmw/8dKl5r3hxeo8g=; b=kbgX0/AItkWar3sBwdOrC4mNrWeRoWMsGnxcJZ5EpXGq0jwniG8Rc2cSlS7RWzyDpSOuYbujSc0Loz15lfv/IO4J5ta27HHl3SrFgDmT+2CIltSsLaCEI/K91UV0PbxJK3u0xIj9YaFwgRDxU9Rb4JNfB+m/+D1fvycX8z4Pyt0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by HKXPR06MB0550.apcprd06.prod.outlook.com (10.161.177.140) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Mon, 22 Aug 2016 08:49:25 +0000 From: Yoshihiro Shimoda To: CC: , , , Yoshihiro Shimoda Subject: [PATCH 4/4] usb: renesas_usbhs: set quirk_avoids_skb_reserve if USB-DMAC is used Date: Mon, 22 Aug 2016 17:48:28 +0900 Message-ID: <1471855708-10897-5-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471855708-10897-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1471855708-10897-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0026.jpnprd01.prod.outlook.com (10.164.162.8) To HKXPR06MB0550.apcprd06.prod.outlook.com (10.161.177.140) X-MS-Office365-Filtering-Correlation-Id: 290208ce-bec2-44d1-39aa-08d3ca69389c X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0550; 2:8qMQeP5tEmbsWu6WE0pbnjVfXUdUgWU6J4hNsNF2gtKoCKJI64kgn6PcwjTgdfXE+faQbp6Q46iqjPTgl2gDdzT7nnbszHXCE04iE6rS/ZpPnzkEaTqvSMnclEnGEf/rJmQBYUVd3nrTqBgWRnw0aZuceeThD8iTi4XKAdkcQb/O6F2eWbSZVtsGluVwMGlt; 3:4qNmsOgNtgyL8a31jdacdCLT0wxKKq7NCqcZd0m1lUogD32dAjyvRaGXDJYLkgh3XzHLjtczrHYXmTzLqSrT/H0mdE97KLxOrt8WvJwf7OlGnKPcRdz+HTULJ/h5Sqn1; 25:2POpj2c4/hcXse/2b5yciyyj0J05eqd0ZuB5gGFFg419iEfMhkoPZzlem+AFTCP5fY00DA0MtxxoG6Lr2SpqctLTDj3kA/VBEGnJAWEoS10jX9JWE5f2eCkluhfBU7kYyfYIrBWp5WGOtEYFbJv5Upbfc4Pw8SmGB4yvoJefYaJQw4FlFl4Tl4eU6OnAjyqDOpTNgtL4uEWCcD2Pm4TLdvzCu8tuc3D8WbFD7e8omQvzRfGIV+HwJKH1Z09LzqxOMv+DyotAnXArk3nziHiv+OmrcoQOAVuO7tGQ8WOhsTNBlPTGO9BTnAZRuQ7b880JP4Jcv7Nax6bt3TiselMYBIpPD5UGwGL6kXIkGMQ2p2PpH+v4lG62h22j3LuTfJUhxZf+ZNbAihwBXyhYwYwKWYHBBHc+RSDde0dykDyW7YA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB0550; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0550; 31:N5fmEhExFolzbHxUzhYGcJPEPi8NoRplAsBjr9c6E3OzxcjC+ur3Jmrx7TBLgbr6gm1+oGMPvrJKnqggRITz1DwwjF5nBXS5DQuayXV+7hIvY+hFkdqJllwYDzDkXtKprCYErI6CED2tJDFzDvQgKEZWQ1Bet3BgMNrjBdLFBVpCraaq7W1xcYNbF1D/do/VocSb2BkDWc1H1IZupVkw321nSzBw4VZo5oYwERqeNRE=; 20:tSJMXC51NYj357bMEBQZELkbSLklAbpcm2YExOsr4NM18XrJK6tZj7xH4U0AZzhjfUgXpk0lkdMfoamBXciaUDk4YECFPYUDmjzJBVAiEmNW654Xcw9wu8zETkF2z9JUSsHM98v/r4526B3wKUG52upWzFbplyQxz4q013RiWpQXl1JxwUGjJxj2DsR0rP9PySYpMjBUp45hOxFYrvUoH135ClFogXO4V8TVbl+b2Sn93WIyNsHouosfFSPmWUEcUoBy+5Sb8aq67s077wqrnPm1pRJSmC+NXJ7Bk1SOblTKyVT58xH1azwENFYfRB6GOj6SVXnWCds2oqIZ2ACyGr+u0bBnv+W1V5P96j96dQjf3uR71XaeluRNi2HS8RJYWmJV9YDDY7fxB/SVVslXqwwkw/cpgWQZqE5o9OiWHzpo00jQ5Jxtx3B/BWsN7vzcG5F618CcXjD13xKO83Zihqppb+UcxNGvsbcPTSaFva1vZWo7MPiZYqhMcmzKAGPG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:HKXPR06MB0550; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB0550; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0550; 4:9sjY8huDhot34eMwf256ZO3sBdqkYf2PLIMIG++o7Y9FNi9ewIyrNekUnLXajdy5MxRSpghKnKNFNbulw5OQE3ZrdbBoY6L/bgIs22wZ/j+d6VKNepfKYVjTGriHjBUlZIq5q4wgGv9OS9AIpMl2fkq2WUCf5cM/r+dTfKK5r3nZ8ruFr367s9i3ujPuJXByqO902gpCEuph0YnQcoaNEVBHLrMdn3INOpTA/HgVdN1RNBpTGPgHp6Qpss8h4TM/EbbEnNuF3gIP4ubXUHxYrLbuBwgW29f/57RkN2S2lpUpD5Yc1opO7yDA9ueVCdLr855bUCTu8Thq861Me81ro+9TgLofFFjn0EHCnxNffo+VrSqIk6sZlG5bf+SFCTrU8CwIAniCPTnTqkymt0bP1Q== X-Forefront-PRVS: 00429279BA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(3846002)(2906002)(92566002)(78352004)(4326007)(7736002)(305945005)(33646002)(229853001)(2351001)(77096005)(7846002)(2950100001)(106356001)(97736004)(189998001)(5003940100001)(5660300001)(105586002)(50226002)(110136002)(107886002)(81156014)(81166006)(8676002)(42186005)(76176999)(4001430100002)(19580405001)(48376002)(19580395003)(50466002)(68736007)(586003)(6116002)(50986999)(101416001)(47776003)(66066001)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB0550; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:0; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB0550; 23:4GR97469DXeT8HaSBnQgD47Fpn67G1sSOPf65IhvI?= =?us-ascii?Q?MVlWO5DfHRqlcXzpBHcSfJxqcmPMYxsyS/cNPNZjRce7S00o/g+CrSMkBkPF?= =?us-ascii?Q?uApHnlJXC/0Wmuqs8j9ZTnAV8wiZJWgCZBf9ZT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esOmxHBK7J5FL63wkEcTB83OInbcC4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0550; 20:Mw/jK7BGAFQGZgw5d/egc+vf3LjJlHDutCZa+SgKyqAn+LMVMYLHI8RFhgITdl3QwBYeBtUUENVXH5PupUfTqPO9kji+K06IFrEHE5IME7QK3m+vKkVb1UG2ykL2wzXgN36T+jjykKa8cpVDm88Knl9Jr63jlQ24d+ygN7BfMEo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2016 08:49:25.4237 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB0550 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/usb/renesas_usbhs/mod_gadget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 92bc83b..b4e9e6f 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -1106,6 +1106,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);