Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753270AbbHEPnj (ORCPT ); Wed, 5 Aug 2015 11:43:39 -0400 Received: from mail-bn1bon0132.outbound.protection.outlook.com ([157.56.111.132]:1888 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753129AbbHEPng (ORCPT ); Wed, 5 Aug 2015 11:43:36 -0400 Authentication-Results: spf=temperror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; From: Madalin Bucur To: CC: , , , , , , , , , Madalin Bucur Subject: [v2 0/9] dpaa_eth: Add the Freescale DPAA Ethernet driver Date: Wed, 5 Aug 2015 18:41:20 +0300 Message-ID: <1438789289-16304-1-git-send-email-madalin.bucur@freescale.com> X-Mailer: git-send-email 1.8.2.3 Reply-To: X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD050;1:HBVDJYjOIAIIZpGmhdpa8LOAc5v+heoU7yjeX0eKny6sWzllHwyy8HZZ9f2P0S701CqQDoqNQ0GYA69oiAKcjHM0MClOvFu1q7IGS7t/F2uTz0AoFo7/mmeSpwHb93atGQ61SzhAhDKJU79NjjDdSqNd2m5zMAP4feBaDhKL273Syeiu0U+ZVcaWYS+agQjIJM9Toy9RQZKLY4O0JjYPaqykOyUnzDV0wQpRj6OzMPVnsU+FF2d52H79P/mZolvoreo12xr4VvBE20N5l+lafL+pAI6GHnvg3SI+oLmDOEv72e3mpl8v+l/amXT3/WTm4qzRF2MTZRuQK5rFrL4Fsw== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(199003)(189002)(5001830100001)(105606002)(97736004)(229853001)(107886002)(5001960100002)(4001540100001)(5001860100001)(77156002)(77096005)(48376002)(19580395003)(87936001)(86362001)(81156007)(110136002)(50226001)(36756003)(50466002)(6806004)(189998001)(15975445007)(2351001)(62966003)(50986999)(68736005)(43066003)(47776003)(33646002)(104016003)(5003940100001)(46102003)(64706001)(106466001)(53806999)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR03MB512;H:tx30smr01.am.freescale.net;FPR:;SPF:TempError;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB512;2:taiiBdik6zTuvXIOwHJjdIADOSJ5xQHwwWhmSMyACBI56+7WsknxkuyNTftLyJXWzEfHY0O34JuzXF5qRwrGYucwf4h6YbJUfPBjhzpSChfz60KP0oHp8IExHAwtiARmr43EpIA7xiYR9twmDtElW+pHxrSBNVKUGxabeNCYqvk=;3:BmRH36+veAnJPKQmNDY/fNCeCvCskD4v+CsBbcyLTGWJnDotzhYmKI63fwfEl0g2xO3n41mE0blM1Oj+O4QKbM4QASHJihm6re1Hdd/W+bZtsNU9m/giXSM5fq3YLDqa1RXUwK4vYk5etCjoPdDOVVFRriaFZKMHqZ2nRHmjuGRZO+Ap6tBxdDyPouotyjlP1qn4xpcPa1uxivOSkS9EQZUK1eDnebtKvfCMe+WMUpM=;25:ISfCd+QQ8lNNqzTaRIJxxNnadMF0YYSD9nBiiBzu1ySDstjhmLQyMVtou6W2Z4h3J1m3lVIJq2wGPYt9T/JdiuRd+Ja9nJfTWPIq3oebhBWc56y94Cp7IbDEFfBkuhCZG4vuuiX0m8Z99vvCqcVLHNR741sbS+EZI5EdJlgbrRO1OPn05e4RqULqlIF7YRCC52Ldru3ulkoO6Yxh+ruX5HW1poZRxHDUEQmgTlNe5KF7kg7ptq2jgJsDHDSEHfx0JhS/GM7nec/7x8A0jWPOpA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB512; X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB512;20:ifIfySABRZRrPwQP48/4uZ4dtBjG6zhGm0XlMQjRD3yXYNcnr4zdSLwzWC8+GNP2OKqyffG8Zcg/zL2W6eYX/T7Jd+A+QUpYxhHbyG+6hYjCySUR0LvI2FkLIpiB5eX5W5i56G+dqdBoQKwpkiBBmHQBQd2Cuj/Q6hBvpUSyQqQpvEMaO3IFhuKCrEhXWWOk4+5GuYxZmfFqcmeZ5K6ccQido/Ly0dfI9/XbUqeU/w7eI2Uf+pijPMIhvdJmIzjPH0ion84bbfF9z+uMTTn9Z/RJ6l/DhFsShe+dUkqenFM56+L1eJ71QzrcVNCCdMSfGRD6/CbfgsUvwYfQhRvIzQA1e/Y2fQH/2lY9IfjBtaU=;4:xQMQYi696lYxOk5evyDds8YauCWEyjHVizxnEu8IkN+gTMDMyvsbbKFXpr+Q7FGv3jNwN7Rr3HT0LkpTFiSHF/OaPZEhtrrtrmJ6tRHsOTWiPOXMu25PmjbXVpYk1hiyFaxTVH6lAurYFLqPVkjskRB9nH8EqGPn1TL/v2iEAlnNgaW5FHzgfu/8+hAGc8xRq0eeKA4YrvCpUnw+rLgm1WEJjvV4xevTKaw8rBw7EtbX/Z26QkVxnZosVRC14QKIXl6GfTmUNvu9wP05tKSGd46nDEoezF3FC21Msh6ftsY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DM2PR03MB512;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB512; X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR03MB512;23:cn43A1P62bjNPgpm/Qv3xaLyhyGc5HI5etIQaUISwJ?= =?us-ascii?Q?jLAjSr/vqsdDrmyQfszY5GU7vlu3MTTcT5kJQCTq5p7GjWivKoNcsCs7eC56?= =?us-ascii?Q?M7lTMzl9NIq07TGuCz81nPfwv6E3la/kNpw2ukCJBAYc5Xu4ULw9EUBZzzmc?= =?us-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Op13A5OfFuhypIP78N2?= =?us-ascii?Q?qQ1UCY0DQIlY+Mce8XEkVgcD4y?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR03MB512;5:K92Q4mOQFwBNwiTnxyY4FxOnVpa1Ss5UQ5GBBPtpBdn+SDjZYEzk0BMAmMyBtKQ3Wmawt9tkL4hg5MiB410ChfYhKGo8IUhCTK6ImcnpKaWaMAeeCqCbP7h7E0mDCuOsZ5MMxDK4m0krN6Pg2BfJog==;24:l22ixOJBhpTZQwGG4jPn+RTTLLxAlkJljHW887kCfbyqKtFHBlxOjDUNtLF2Z+lE0Di1nmbz8Xez7IbV6CX42WGmE89LU98BsPN7AcRkXLw=;20:fWfQ89m7oVzhD0vbMNQB9VC9gFGeUB7uVbIPeZgj4JCRWSVGHB4vo1ZUUTOesH/2QeOBY2xW7oE1DeFknWzdUQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2015 15:43:32.2491 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR03MB512 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4549 Lines: 96 This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood, David Miller - thanks! Together with the driver a managed version of alloc_percpu is provided that simplifies the release of percpu memory. The Freescale DPAA architecture consists in a series of hardware blocks that support the Ethernet connectivity. The Ethernet driver depends upon the following drivers that are currently in the Linux kernel or in review: - Peripheral Access Memory Unit (PAMU) drivers/iommu/fsl_* - Frame Manager (FMan) drivers/net/ethernet/freescale/fman - Queue Manager (QMan), Buffer Manager (BMan) drivers/soc/fsl/qbman The latest FMan driver patches were submitted by Igal Liberman: https://patchwork.ozlabs.org/project/netdev/list/?submitter=64715&state=*&q=[v4, The latest Q/BMan drivers were submitted by Roy Pledge: https://patchwork.ozlabs.org/project/linuxppc-dev/list/?submitter=66331&state=* Changes from v1: - bpool level Kconfig options removed - print format using pr_fmt, cleaned up prints - __hot/__cold removed - gratuitous unlikely() removed - code style aligned, consistent spacing for declarations - comment formatting The complete patch set based on the v4.2-rc5 kernel can be found in the public git http://git.freescale.com/git/cgit.cgi/ppc/upstream/linux.git under the tag ldup_public_git_20150805: http://git.freescale.com/git/cgit.cgi/ppc/upstream/linux.git/log/?h=ldup_public_git_20150805 There is one patch that needs to be applied to u-boot to align it to the latest device tree binding document specification used by the FMan driver. The patch is under the ldup_public_git_20150410 tag in the public git at: http://git.freescale.com/git/cgit.cgi/ppc/upstream/u-boot.git/log/?h=ldup_public_git_20150410 Madalin Bucur (9): devres: add devm_alloc_percpu() dpaa_eth: add support for DPAA Ethernet dpaa_eth: add support for S/G frames dpaa_eth: add driver's Tx queue selection mechanism dpaa_eth: add ethtool functionality dpaa_eth: add sysfs exports dpaa_eth: add debugfs counters dpaa_eth: add debugfs entries dpaa_eth: add trace points Documentation/driver-model/devres.txt | 4 + drivers/base/devres.c | 64 + drivers/net/ethernet/freescale/Kconfig | 2 + drivers/net/ethernet/freescale/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/Kconfig | 63 + drivers/net/ethernet/freescale/dpaa/Makefile | 17 + drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c | 272 ++++ drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.h | 43 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 860 +++++++++++++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 489 +++++++ .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 1358 ++++++++++++++++++++ .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 129 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth_sg.c | 704 ++++++++++ .../net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c | 167 +++ .../net/ethernet/freescale/dpaa/dpaa_eth_trace.h | 141 ++ drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 230 ++++ include/linux/device.h | 19 + 17 files changed, 4563 insertions(+) create mode 100644 drivers/net/ethernet/freescale/dpaa/Kconfig create mode 100644 drivers/net/ethernet/freescale/dpaa/Makefile create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.c create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_debugfs.h create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth.h create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.c create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.h create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sg.c create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_eth_trace.h create mode 100644 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/