Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755158AbdDLQ0d (ORCPT ); Wed, 12 Apr 2017 12:26:33 -0400 Received: from mail-by2nam01on0076.outbound.protection.outlook.com ([104.47.34.76]:15520 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754791AbdDLQZv (ORCPT ); Wed, 12 Apr 2017 12:25:51 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , , , , Subject: [PATCH v2 0/9] staging: Introduce the DPAA2 Ethernet driver Date: Wed, 12 Apr 2017 11:25:29 -0500 Message-ID: <20170412162538.25302-1-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131364879397017593;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39450400003)(39840400002)(39400400002)(39850400002)(39380400002)(39860400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(2351001)(106466001)(105606002)(5003940100001)(50986999)(1076002)(104016004)(7416002)(305945005)(5660300001)(54906002)(8656002)(33646002)(53936002)(36756003)(77096006)(4326008)(39060400002)(48376002)(50466002)(110136004)(38730400002)(8936002)(8676002)(50226002)(81166006)(189998001)(6916009)(6666003)(356003)(2906002)(47776003)(86362001)(85426001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1284;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD053;1:Fin1M89XQsfCPrAgCo1oW7VS9OHT4xPwyqdgoEPyDimgNs1f1IZmA+nIPHbhqJgB2H2++rbHe/jFbHgGXH5gcNdqMQ7lW2OY9Be65r64LgKsqSaS7PDf6AKKeUS3XlAoBupEyTNjR6Dx78bUbaTaCCqWosSquLqAJNqHX7Yu6Cpo9uUeFeFjDQ+5ijqUFkcZLoAafH7HMo5y9x27E0AeGcQlmO3rn7/PjGxzS4yxIkytFWhrEI5Ld0mvNRs/h5VcfX0Eya7InBEJI6C99GG9kbO5RT6R02+ZQ9XXEUITjJQ+7ugw54FKOnbyJxGsdEhOPgy6FM3KPoSCPBWmsUos2mxbd7cyFaXIs7zPFfZqQArPrgdI+KotZdxJWFE4uYHdvxyyBr9fYlnKlCc7Y1YwDm9h7sYsUSUk9KzM7ZRjhnwTOqyASIcdKe1gx1WOqt+DOi03LK/u5Sj4jFjUN3pL/Fh/Kh7uzFGXynsKPw8T3d+LfMV3XXEtvFnOOg/ui6bK5U5JLHrTHB9bKQWIF3j0OvNYCKskKfOcIrTnSWcOqlQ39yRz5eK6XklKbjgnyDMtWmCIq6Tu7bGRamSMaPl9T83azGxLcKtlx0D5Rs51EQLLi/x9dyEfYH5sTx5P4uvU3UMF9AivZ1uqqS+mgLdJpdmgYS7ZjFgEmvEJaiuHBe6UaH12oF7wYsbHWzuB7Wirx9XoYuEzhNEJa3R35itQK+Bm9oiTp9aVi05TiaFx7jY= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a6c54707-0ec6-42cf-769a-08d481c08ee0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030255120)(201703131430075)(201703131517081);SRVR:BN3PR0301MB1284; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;3:fbQoo+GK8wcx5KirJ25aFtn16K/YvIQqKJk96oRDuM9DXB9K2s8v3POwik9iwzgeO3hsJc1JTNCU4vRf99b4EreLK4Nv3cvoUmhxwJVcqh5BGwe3maIuoJThzJqub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Q73JgrwP6k62AXL0InSof4YeILI39fR9NA2TuezxtW+dT1w+Jw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(8121501046)(5005006)(13015025)(13017025)(13018025)(13024025)(13023025)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(20161123565025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123556025);SRVR:BN3PR0301MB1284;BCL:0;PCL:0;RULEID:(400006);SRVR:BN3PR0301MB1284; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;4:Svum7+l8qKCIVCkv4wmKgLkfipOT6/npy5U0RxeJ5GsMlsEYnic6dkNVQOfTCtboWn1YFC+SKK/ujttzp0qFtn7qArCiG9whLj/v8wqvKysQOS30qxQ9K34lpsiAVOOPpvroG74bzKJP0NhTlJoe6btz7f1YkWxoU36jYd7hZhZTaU9ZFXynAYJgEenL45ky5sTdYkCTmMZA7uQgmMy2V06XBxGiox5BZSl91gHaTMrqYSZBWkaYHFjGJOfwypIrun9TrufJKj8y7kW7nO4l2mYSJJngzszIelk9S27XUXXIZb13OEZzDeYt+KKex7uiwJXlX/S3M8dx7VrSahwAQ+M5j/HnbbLCOAFERDzfH+6VU+tM+gf5X6ATyBYI6zFOYtj+Q/5DTejyp2XRg5mEXhLARuoCe1FGVHgsJEojfwNj6rvhM7obdtvBfHfGdGXh2X+shxXFEOc2enzCRi09k23kY/Z3/ZiVzlnOh3I4Y/4NMyIjnJfVsybuhBZ/zLgld06euynMSPL/n63FWYs9csSNu8E/7aCgkeDfehdeBt0eB8YnkZ4LB5HLKHDOS4BiWsySetsPUKb5KNb4/BiA0zzDPMt8hCloCmRsj5dXrcc0xo4BHRtpX2vMlqzKH44m1wvHgPHofzPBNEpSq4MSAQ2SEKVzY61HpqF2e7tqWpQv//MJbk/ghDaW/RVbPCrz7lRC9zscZfWns/CuyFzBxhn1YnaTDmgF8suTzSV04k8O2Jx85u1e2l6NRSukmQha6xTXvBgISLE9mvucP5wYIPPQ9wqOep3GKzn3p+0QfjrLyYmg+jWOib448tExglC743GmgMDhYcSXssFcOETDTg== X-Forefront-PRVS: 027578BB13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1284;23:BXS9IDa978e308jqwCff8olMeT/DF3RXTuHSqcN?= =?us-ascii?Q?Jp3hFAlavB7TVHpobhvBZPW0ERSMazen0yNf+Sttbp5F1xS2tfbIo963ZHZU?= =?us-ascii?Q?CNgfvcShao84wyy9WG9NbMl/VJYlSiBHvFaX+EAE8ozzJIknRRztv4ETKIKM?= =?us-ascii?Q?qoo3rklXV88XYQsWtRWEgiMGxVwUOIu3fzAAmyf3kmzHaZkjz2VkHLJlTDlr?= =?us-ascii?Q?4f0GA1G14Edyt4tzktHmcFZmroOlj2Dc/HVXeXP8ozU4ocrev3QFvYYGc9ND?= =?us-ascii?Q?DEPUfukzi2SEbPSM0I9Ln/5qvrNzIRh/Po9z4GBp74cKNThJDujJxKFj7yZW?= =?us-ascii?Q?YlS7OjlvQECP+mRE4msOkX9xDW5yIqhRrpME9OQm9a3fap8cWqvVRN35e36M?= =?us-ascii?Q?6r3RLFD9aiSy29KskK6QWbcImHLjeSev7VNUICCqfzDZHqZbxx5+6JBnLxiq?= =?us-ascii?Q?4nbPct45TY6TkvkJNMJkNzFT+muTpxAf3lCsZ6nFMAXmmJJzsIHx8jxZFit6?= =?us-ascii?Q?9Z009zy6BC+P+HCNu9sy68VLFBMDx3upoxTQVzLyZMv9Swxf74tAsN9Mvayl?= =?us-ascii?Q?xuxPAr45rNLZGBiD6X14pULR6vFjGTxWn8e2rL/y4h57Oiv/Z1JSyefaVcTH?= =?us-ascii?Q?U+5KHTG5mYPYM274fBoXA37b+ILD9OxRZikxH2f1uOBdYQ2lEEHx+AKPizB/?= =?us-ascii?Q?+X9+1HrhZdJq6TOjQ572biCchSUB3nadvmqR76a/na+1+t1n/yZh0tKy6hm4?= =?us-ascii?Q?2Y3CWUO9R8DHu3QS+PrZfMULgi74bDR8AdjY2w0IKotFXm3kmb0s+ImJgf9H?= =?us-ascii?Q?TUvgMB/uyj9LHRrAqd0FPCwxfWU3VdhwZgpABXC0STdClzumcivHp6OtoJ/Z?= =?us-ascii?Q?ebQBKjHi+VLyO9tgQX/ff23FAjZHONb7NTUHX1GUGxAEXelLay/fQTItMdB0?= =?us-ascii?Q?3FNdsL7lHKU/09+qDZ6azJbrXEdsAW6G8Qge1FMOZFZkEwxaMwtgf4j0zGTK?= =?us-ascii?Q?dV8NFulMFcLbFfodUT8ocyaxQUpj835so8Xp5f6EmmHOp+Swy73nI3IytOUl?= =?us-ascii?Q?esgBXYRjd+yWsZ35YeZ6+CwPK9QD7jdlkMctD6lDXzUCrAetSfczDH+0Obkq?= =?us-ascii?Q?ey7Ps5It39G4iuVb7wERYIc+tsWjRJNhKuUMY+lLtyD4TGtojyi2fPNv241t?= =?us-ascii?Q?knCMdtoXg4sbv2zyRt/Rd14OWTBFMdMR/UBiXASydiQrfqAKOq8Ffdqi0aQ?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;6:P958diFdXLN2aRdq7knAfinTQW+8St3QeKm4KOlB65fzLGHKxiGoJLBGjv1jN2RQfBthHIeDpGT3pFMwXH9wS9Q4tOicR+yVNgq748aXLznpvtOiPuaIKnK/Y2RlOL2owEZFzvCV77vB8b3CDWH2KrsnpU5GQHkyEI6S0MgH6heO92/xtFHffKtnV8p3cbwOKrBQZiri14ofVZN9cHCfDw/boR2WB0268/LVDPYwtoCWzghxcsi3Tm0SXg2KoIjmCjvNoVDRzCld870ExoaZVDBP5QnvijbI2AeR6jBwEoGh2KW/aB5y0f9TPqs1qVMFoMvNwthHwWrny8MfVsv+NJhbv5Ht3hGdPqhlel+90bDhfyKddAtc0Dii4fPPqb7yagVpvX9o2dnoPnXPpYnh6tnVs5r4EYy8EXe5uUX3o/GUiQ8bXd8P/6HO9EseZD0PvVUDVUOsjQY3betznfMQtA==;5:skrY4F2bC+ZrJGiKycoJKuRD0pN30iplh34baNH7+nL2ytQMqQMpAFvpluvrU27psfTKqCkSLE59yVsJ+kuvp0+COUthQX0O0q1AtIEvpSiJt3aAyTxPu6ESp92+PUSD14nSOc1abzAOZGNnyWNV15dD3wgjdEAb8RaOqX5+vPQKYwYA5coz7nySfR6KrtOc;24:4hHI/A/jq4u1p8qIqNWA96KRP/ZzgTQoSAisK5vrnJn8FipK95CGcVMveWlQx90dPz6Xj5XaqN126DO8SJnMyu31Cu26aBXCQDlMj9a3xLE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;7:lvsfdwTNvtL5gXBgEOQOH+7euNQ62uEscUW6kMERLGgDzhNBxtTUR74soHJzC2FNtnPFfvQY2Sxz9VpmJ0Ty/qaUPS46bWvaK5DS00TOgVA0MSkemYjHymrPO4jry6WirjnrNBugELsWZuo44uoQm0MUhEp4I1T3roJOS2EsHhrRTdpwShBmg7/KQssoWFsrXqcyrX3nbRXImfLKpW0CfvjWwre0G2Oqv/P7zaaPf8PjhmEqgcYKNHcEs+FDuii6UMHyFpfA0i1j9RxYHdFq9LrBXA4JNQbYSdjZgvYlNZ8omOVXDne4auXh/fKCdQ56CElv/P6cTJpO72M2mU4VKw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 16:25:39.5145 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1284 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3526 Lines: 68 This patchset introduces the Ethernet driver for Freescale/NXP SoCs with DPAA2 (DataPath Acceleration Architecture v2). The driver manages network objects discovered on the fsl-mc bus. A description of the driver can be found in the associated README file. The patchset consists of: * A set of libraries containing APIs for configuring and controlling Management Complex (MC) networking objects * The DPAA2 Ethernet basic driver * A couple of patches adding ethtool and debug support v2 changes: - update path of include header files since fsl-mc bus driver is still in staging - minor updates in patch #4 due to networking API changes Ioana Radulescu (9): bus: fsl-mc: add DPCON object APIs staging: fsl-dpaa2/eth: Add Ethernet driver overview document staging: fsl-dpaa2/eth: Add APIs for DPNI objects staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver staging: fsl-dpaa2/eth: Add ethtool support staging: fsl-dpaa2/eth: Add driver specific stats staging: fsl-dpaa2/eth: Add trace points staging: fsl-dpaa2/eth: Add TODO file staging: fsl-dpaa2/eth: Add maintainer for Ethernet driver MAINTAINERS | 6 + drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/fsl-dpaa2/Kconfig | 17 + drivers/staging/fsl-dpaa2/Makefile | 5 + drivers/staging/fsl-dpaa2/ethernet/Makefile | 10 + drivers/staging/fsl-dpaa2/ethernet/README | 186 ++ drivers/staging/fsl-dpaa2/ethernet/TODO | 14 + .../staging/fsl-dpaa2/ethernet/dpaa2-eth-trace.h | 185 ++ drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2520 ++++++++++++++++++++ drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 348 +++ drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c | 279 +++ drivers/staging/fsl-dpaa2/ethernet/dpkg.h | 176 ++ drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h | 541 +++++ drivers/staging/fsl-dpaa2/ethernet/dpni.c | 1595 +++++++++++++ drivers/staging/fsl-dpaa2/ethernet/dpni.h | 832 +++++++ drivers/staging/fsl-dpaa2/ethernet/net.h | 480 ++++ drivers/staging/fsl-mc/bus/Makefile | 3 +- drivers/staging/fsl-mc/bus/dpcon-cmd.h | 69 +- drivers/staging/fsl-mc/bus/dpcon.c | 317 +++ drivers/staging/fsl-mc/include/dpcon.h | 115 + 21 files changed, 7677 insertions(+), 24 deletions(-) create mode 100644 drivers/staging/fsl-dpaa2/Kconfig create mode 100644 drivers/staging/fsl-dpaa2/Makefile create mode 100644 drivers/staging/fsl-dpaa2/ethernet/Makefile create mode 100644 drivers/staging/fsl-dpaa2/ethernet/README create mode 100644 drivers/staging/fsl-dpaa2/ethernet/TODO create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth-trace.h create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpkg.h create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpni-cmd.h create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpni.c create mode 100644 drivers/staging/fsl-dpaa2/ethernet/dpni.h create mode 100644 drivers/staging/fsl-dpaa2/ethernet/net.h create mode 100644 drivers/staging/fsl-mc/bus/dpcon.c create mode 100644 drivers/staging/fsl-mc/include/dpcon.h -- 2.11.0