Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbbLULuw (ORCPT ); Mon, 21 Dec 2015 06:50:52 -0500 Received: from mail-bl2on0101.outbound.protection.outlook.com ([65.55.169.101]:1857 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751406AbbLULut (ORCPT ); Mon, 21 Dec 2015 06:50:49 -0500 Authentication-Results: spf=permerror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none;freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; From: To: CC: , , , , , , , , , , , Igal Liberman Subject: [v10, 0/6] Freescale DPAA FMan Date: Mon, 21 Dec 2015 02:21:24 +0200 Message-ID: <1450657290-6644-1-git-send-email-igal.liberman@freescale.com> X-Mailer: git-send-email 1.7.9.5 Reply-To: X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD019;1:6F3dPhCHf5V7OUp2/hdwihUtgVoE2ncY5uiPz/lbDFJzEEeExebHGs2car8gNmVZLawr6kI5pdhek5i4M3fGwNPtN03HHxOrP/FTap8o9Sp5eYbjMkDtcfgii6s48Rr4rvwMmFkNyspWEVOgLanaXwurr9qTUkKfX0FnJtli74hgMbZ1/2KSua0AwKRsEbbdbdmhCYRAF9vl6gLVxBx3QbQKsExppIfr+sy2g/ZQkzkPmdhpCmLLT/IFOybQmx079iGBYmTgoFwk+SDREwBoE4KJWj7oEuc0MC0rfwOYeQEt2poxLTBPcFZMn2jAbQynwlnRWDHu3Ke/vRouXx6HgZcVz3C/ol5oA32Wi3u+T43Rriwi9x6qIqp+z9CDHSXIfQxZEfGi6tD1aJW7Zhn4WA== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(36756003)(87936001)(53806999)(85326001)(47776003)(1096002)(586003)(33646002)(77096005)(50226001)(2351001)(2876002)(1220700001)(5001960100002)(106466001)(189998001)(15975445007)(86362001)(229853001)(97736004)(107886002)(81156007)(110136002)(11100500001)(69596002)(4001430100002)(50986999)(86152002)(43066003)(19580405001)(5008740100001)(6806005)(104016004)(19580395003)(5003940100001)(48376002)(50466002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB501;H:az84smr01.freescale.net;FPR:;SPF:PermError;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB501;2:zXdoee/KTc1lhO/oqYu/30Aons6ojBdNyQObumNJEsnaNMvkSlTKc3gFhaTRH6pwXUchPXKZcGiNbXevEHPxIeRG4JUffh4xq+bG73XKlnk5y2yCjwpszKWRsWV+/7bsERtMWR1wOodeOie+eGNnMA==;3:FbLi6XMHzcUGh6WVB2ws1+ss6WwrNAvTCG/7rDf0s5nqiY9PzRUL7d0frTTDJL19IhVakXypnTG2RYldhvfxdaKWwmfx1RFjVxUr6jjVo6w36+Agm34ouRe6TAUUb84ltQHLUH2YASqJY13dNVJlJ2x75dLNIf2pKIaR0Wh+XbpfYekbpeHzXmSE4l8DSvNpOtVu17yukDDlbe2mlYo8v+KFh0E0LdhO6gQynjNNmrk=;25:JlZuOSkL3Xb67/Taxk8Pk5SfGUioDleqRGE1BzzMwY8xJ6cjweG+E/YSSfaOFFDBRUZMoOEA/0mMz+iG0W0ZPdcCc9qU2E0YM58WyMc6G2MszB7m+qcmcU+As+Z+NO9MyPVDqBe48lxY565Rd/off0yknjBYaLVo9Nc5elsAhxFCTHVJIsqF7hyyIQe8KUesXtZZ1UgrmeBGaS1dRbxil8NoNYuFZYyunTExI4sd2WOw+r0GnFyEFs8T7ZdxvMVu X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB501; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB501;20:Q32eNTx0VFsGp1eaBFyMGWMt23/AWVeFzMvZ1nbj+3o1/VmKmZjeSQhyNo+alBL5Po1JWdPaPQFmPGC4WrZAFD9cthjxBtcS0BntsydPJAMy+7PfI7O6CPgSHK1drP+xmup1ACrdvxtMhoSCkCUXylpqk8C9UzKKKcI/OGpu5vDdd15QdJ3ytk+a50JypxKpx4bznvhuizrEIYrAyfqkTzNehPVLwjSBMW7KQhKJSjt5OJynmbTH6BjOB3Hbtx+/KzJYM0ftGqqY1iolw2e5HSk/uc1GEi1XFZqLx7jaLvOn11hOGWpJg0kueUbopDfHZyiD9shdwZ6Rwwtlcra7QFhB+mBynA8H4kNiIvgVcmE=;4:P3gKjcAdIuUkHc5VmAhAbLV52D8mRqXQjO/tR+y4j5g9uGrEJFIg9l3hNwJBvXOzGe1UAu8bNQ4hBf7M2pfJB+bJ7uwLI6e+nWFA09QcCqt8LYWN2hoI3eTDB18rn3H5juIgnDwgHshlbBI00/eMjKSomOQBf6QX6S73wPYGrQ4RVqKekRy9bPl6umnKX1NT5jJ2LKSFZyrW1S0yht9Z3EK21bGmgHCqfDbq5QfjZiZj3b6Y3KBaobKEWUekYx1VdhfsCNq9Hhrfj8eDDdJpme46wMUdDT0z6e/2cMo/ppPvVEuW1FUuy1K+Z7VvipsCZVatxMt2E2sFuedR120aibrKytTIUtN5ZNQgXlPCK7BInczFhrT1R5g6HEAH7MogU+cCtYocyMx1L1i0A4IfZju4J7ZLIFv8GkslZbwLgqc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:BLUPR03MB501;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB501; X-Forefront-PRVS: 079756C6B9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB501;23:A6pHo98ZWYQn5baiTsh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lDzpc2lrzVux8LK9CevK8uNrMq2mw+gl+JdemyCCE3?= =?us-ascii?Q?XatPhtNqYZ4aMokcVjgZSbf8GbgxTWl6MDJoH42aRzz5ZODvwIzrGAQqpzn3?= =?us-ascii?Q?YlXjfk2VJVgv/Ao3nXbn9y6XEQvtGooow2ohrYQZ+hWUn0MB+YXp7uu+Fahn?= =?us-ascii?Q?RSoPow+yYvF+LuTzXUrw+n1I3PD2VqlpjQuZKKBoY8Axzmry4rz4j96TYHWV?= =?us-ascii?Q?ekQlsp3VA=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB501;5:QOMHRAmSllEy481A4m8nEZLc3mww6kHElY5mgxJQAnDuunnEXNPMMFbHyMVBH9r/l1U0CLXfjx4hDvgIYLAJddViYThhXZf6cqyoi/+A0/vpwvr69Pb5VvBYvoQQLFb+vyUcnIuuRYWIORx84AjoTA==;24:6h/zJ4Ovdc9oUemMKYqDIpjQxXwJmQyKYheh/WTWUpX72IUEwFFEFI+DeuFKPpWCw8PM8btK50f+wCVOfBmH0QO2MQaAeh3jUSKl6ONHn6c= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2015 11:50:42.8343 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB501 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6346 Lines: 157 From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the accelerators. One of the DPAA accelerators is the Frame Manager (FMan) which contains a series of hardware blocks: ports, Ethernet MACs, a multi user RAM (MURAM) and Storage Profile (SP). This patch set introduce the FMan drivers. Each driver configures and initializes the corresponding FMan hardware module (described above). The MAC driver offers support for three different types of MACs (eTSEC, TGEC, MEMAC). v9 --> v10: - Addressed feedback from David Miller Remove private CRC implementation - Addressed feedback from Kenneth Klette Jonassen: - Use Kernel PHY API to configure dTSEC TBI - Use Kernel PHY API to configure mEMAC PCS This patchset requires device tree update: https://patchwork.ozlabs.org/patch/559501/ - Addressed feedback from Andy Fleming v8 --> v9: No changes v7 --> v8: - Addressed feedback from David Miller - Support for ARM: - Device tree parsing - IO Accessors - Addressed compilation issue on non-PPC targets v6 --> v7: - Addressed compilation issue on non-PPC targets - Removed B4860 rev 1 support v5 --> v6: - Addressed feedback from Scott: - Moved kernel doc to source files - Removed a series of configurable settings - Miscellaneous code updates v4 --> v5: - Addressed feedback from David Miller: - Removed driver layering - Reduce namespace pollution - Reduce code complexity and size v3 --> v4: - Remove device_initcall call in driver registration (redundant) - Remove hot/cold labels - Minor update in FMan Clock read from device-tree - Update fixed-link support - Addressed feedback from Stephen Hemminger - Remove bogus blank line v2 --> v3: - Addressed feedback from Scott: - Remove typedefs - Remove unnecessary memory barriers - Remove unnecessary casting - Remove KConfig options - Remove early_params - Remove Hungarian notation - Remove __packed__ attribute and padding from structures - Remove unlikely attribute (where it's not needed) - Use proper error codes and remove unnecessary prints - Use proper values for sleep routines - Replace complex Macros with functions - Improve device tree processing code - Use symbolic defines - Add time-out in busy-wait loops - Removed exit code (loadable module support will be added later) - Fixed "fixed-link" issue raised by Joakim Tjernlund v1 --> v2: - Addressed feedback from Paul Bolle: - General feedback of FMan Driver layer - Remove Errata defines - Aligned comments to Kernel Doc - Remove Loadable Module support (not yet supported) - Removed not needed KConfig dependencies - Addressed feedback from Scott Wood - Use Kernel ioread/iowrite services - Squash FLIB source and header patches together This submission is based on the prior Freescale DPAA FMan V3,RFC submission. Several issues addresses in this submission: - Reduced MAC layering and complexity - Reduced code base - T1024/T2080 10G best effort support Igal Liberman (6): fsl/fman: Add FMan MURAM support fsl/fman: Add FMan support fsl/fman: Add FMan MAC support fsl/fman: Add FMan SP support fsl/fman: Add FMan Port Support fsl/fman: Add FMan MAC driver drivers/net/ethernet/freescale/Kconfig | 1 + drivers/net/ethernet/freescale/Makefile | 2 + drivers/net/ethernet/freescale/fman/Kconfig | 8 + drivers/net/ethernet/freescale/fman/Makefile | 7 + drivers/net/ethernet/freescale/fman/fman.c | 2872 ++++++++++++++++++++++ drivers/net/ethernet/freescale/fman/fman.h | 325 +++ drivers/net/ethernet/freescale/fman/fman_dtsec.c | 1453 +++++++++++ drivers/net/ethernet/freescale/fman/fman_dtsec.h | 59 + drivers/net/ethernet/freescale/fman/fman_mac.h | 278 +++ drivers/net/ethernet/freescale/fman/fman_memac.c | 1170 +++++++++ drivers/net/ethernet/freescale/fman/fman_memac.h | 60 + drivers/net/ethernet/freescale/fman/fman_muram.c | 159 ++ drivers/net/ethernet/freescale/fman/fman_muram.h | 51 + drivers/net/ethernet/freescale/fman/fman_port.c | 1779 ++++++++++++++ drivers/net/ethernet/freescale/fman/fman_port.h | 151 ++ drivers/net/ethernet/freescale/fman/fman_sp.c | 167 ++ drivers/net/ethernet/freescale/fman/fman_sp.h | 103 + drivers/net/ethernet/freescale/fman/fman_tgec.c | 786 ++++++ drivers/net/ethernet/freescale/fman/fman_tgec.h | 55 + drivers/net/ethernet/freescale/fman/mac.c | 978 ++++++++ drivers/net/ethernet/freescale/fman/mac.h | 97 + 21 files changed, 10561 insertions(+) create mode 100644 drivers/net/ethernet/freescale/fman/Kconfig create mode 100644 drivers/net/ethernet/freescale/fman/Makefile create mode 100644 drivers/net/ethernet/freescale/fman/fman.c create mode 100644 drivers/net/ethernet/freescale/fman/fman.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_dtsec.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_dtsec.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_mac.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_memac.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_memac.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_muram.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_muram.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_port.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_port.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_sp.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_sp.h create mode 100644 drivers/net/ethernet/freescale/fman/fman_tgec.c create mode 100644 drivers/net/ethernet/freescale/fman/fman_tgec.h create mode 100644 drivers/net/ethernet/freescale/fman/mac.c create mode 100644 drivers/net/ethernet/freescale/fman/mac.h -- 1.7.9.5 -- 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/