Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755628AbdIHMXv (ORCPT ); Fri, 8 Sep 2017 08:23:51 -0400 Received: from mail-bn3nam01on0047.outbound.protection.outlook.com ([104.47.33.47]:63986 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754914AbdIHMXb (ORCPT ); Fri, 8 Sep 2017 08:23:31 -0400 From: Ravi Shankar Jonnalagadda To: , , , , , , , , , , , , , , , Subject: [PATCH v2 0/5] dmaengine: ZynqMP PS PCIe DMA driver Date: Fri, 8 Sep 2017 17:53:02 +0530 Message-ID: <1504873388-29195-1-git-send-email-vjonnal@xilinx.com> X-Mailer: git-send-email 2.1.1 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23314.003 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(189002)(199003)(47776003)(36756003)(90966002)(45336002)(46386002)(50986999)(2906002)(7416002)(2201001)(50466002)(48376002)(305945005)(6666003)(6636002)(52956003)(5660300001)(103686004)(81166006)(8936002)(356003)(36386004)(50226002)(8676002)(478600001)(81156014)(189998001)(106466001)(42186005)(6266002)(5003940100001)(33646002)(63266004)(107986001)(921003)(83996005)(1121003)(5001870100001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0201MB1923;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT064;1:NwNznrhJY1byVRoReA3o+v3GE+b6gsfuD8t6Z/0IsWKlkOICHcjPp32Vk6f2oi8OluIc4Zgp4a0GknEdSp9I+E3hG6FKLLuZD7MdIIme83Vk7Qphzm2YNJwC8dSL28w+ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 660e29e2-ec03-4613-0a2b-08d4f6b4686a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BLUPR0201MB1923; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1923;3:PhJPAtpyH6pcWziirI8RR4IQp4Uyq1ZMEk9w1JwqGp58t6QSNPCLRnpxAdP3MWCExHLTn8X2HB684uKChP+ImcXCg/lsXGmiosgSQSI5Z61zPWLmVVbaodsIMsi6gN4yaswG+DrM+hNaM3pPZpltW6xDFVLnN2OCbPcriE62OWc6NfyGSa71cg0anQLPp0JCiIF5FSeuxu38BDcQUQ/kMyIhn1WHBpqyP0JWKc/lyRyX3mqZy5GfyawC1cpNfa5/DzR0wp0NveL6LlaAkdA/1hW45Zgh4zsq4PyZHHC3pIz3oJ1WkZhruxydZ4KzJhN9V4EsGf6fjS8LttZZREktkcb6lsMPVLQaAi4tEFraA9s=;25:D3ZZQLkSxkBZdbLD7aGh+l4zJYTxjScOhSt/E3M1WwxaCmFv+xmOT5TIKgImnNqY6ff9DUvgnyPi+0Y74sa2gubKAvRyYQP+DSEbSbY/3E5Sqstn7/t4/qfPcFeRd+KqHshO6J3vACROOoSIOIVNrm+ZPcGlfv+zAizL3C854Wd9X2ylnAgHOLTibB9av4lww1DXqS7pn7UmxXEiyOW+1amPzuiZ0AW0oydVBSI56YEkx3swS1WRyr/4PBG3Io1DGg+LrylC11eNnP9I1lgQU/rWwHFvG5RZ9adJN+Foll/IHnKDtyWO8LnsPBHWe3WjAbipAECN0TUiGja4IIgziQ== X-MS-TrafficTypeDiagnostic: BLUPR0201MB1923: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1923;31:o1yYJ76OvC/U96tFV8IhPacBc0R+mBkoWdIkSoXvdzsr/pi5Ydxtc+YFZSxZo1awrbLiBKvze4OFRqhoAZx/RRqHv0O8Qer9+Cq09f+EAM7eHVHfcfwbSq6V54FhjdlC6kXaIJ74Ts6c6M0u07ZezFfNpTgB0zcPDD0jryuwAriJBkizbUd37qJrRiq4CzmaKJ153np56oEeRFCP9wZimlhJ1KTEFTrbhRPBxMnTq5o=;20:rccrHdXueSI1KlKfzxXY1TKwFMKb5tHFQ3KXLDeDRKvqojzS5xXBihgRmIOc06hmC4UY+blWEY/QtNxX47lYXq3SUyOk2ddld2b5jhIF+hOn/Go32R3aSy1emtSm0nkwn6gR0i3eyR1l9XGQoMWBexlGIgb+Zc8T9JNMkHPPoDPc/48T/De76ZzJULhYFOMQn5laufqwbIYMgCN9CBI43TVJZRPJ29JQMTT2RiZBtEDIVXrolxn/PuRLI41OrLuGb2wFS85cbzE281JzALSvey7gjlYFwB1o19Sv1Y9rxU60pl+vkcFfdtrkYHTNdq6UYZqrP3lBKU7vmyz0TIrfnqgObYiVYBh5Rd/nKs7JnwxSxxjGsUMkSaCnTOvPrw2j+FLJQ3SNH6UT6Txm9hc9DpCiEuUua6nEUMw8hnHwNIZGjoCAUZ8U2wdDIyTYKTc+kmUW5prBnXoKsXtQ06eHy0oYYb3mlc5ns7GJtMX+Kz4o+QNjRF86kBEmWbzg4BdC X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BLUPR0201MB1923;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BLUPR0201MB1923; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1923;4:0xd+v1EHDWctcK1bDKI0+jjGgJ2CwO46q2YSNNwpQDEvApZpBeqXyag0+oE26JSQ6dPZZnHKSMZneaWa0Dzd6OwytTNP+Qs25Ytd8AURjnxWkb38MNzkpfN+pWyGuXPQ6DpTFyR1kWvNetO86ftxAjlvijxJapvw+ffTRUJqHDT/DNrMGyvSQN4QdW5SPtQyPm1JsDppYSzsaksIL7j6wUoF8PIQkHIENNtOd2qbBmNysW7vy/5ug92hkYmLV35w X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0201MB1923;23:XUk2xAZScL78lcVBfdhs1o9ZwTq/lGBGGrisgyu?= =?us-ascii?Q?O67NJ8QjsIA9Nv615KepTifzt58BC8n0hj7NKCe6ScMUOjB+b3feDpWZhhDN?= =?us-ascii?Q?AU9NvkmKHFjYOpsjgT3vqG1hfeuNr+iP9NDrwBJA9xPYal05pqPsK+C9MJWB?= =?us-ascii?Q?D2Yb50zw8WOcrcNzd+1cRcu1IppuKFCs1Rs2D6oPnhWXJk3sW4FpF181ulky?= =?us-ascii?Q?YhfXMA3XtMTJGapAydYsvpMiPUotukE5oR2j0gN5MZqXITGooS+gJrvQ95py?= =?us-ascii?Q?vMSFh03u4Fra3TOtAxUYkWD/+hgC2EwDOvkgoJRU+ryDkxmk0o4GET4YbJbK?= =?us-ascii?Q?ppHv9Do38qMAUwwHoh/QESIeDvtzNf6WtdRdnlS/ouIcsrOmOyqRzDpBYRnN?= =?us-ascii?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BH3vr7Mxph2d6JD0WgAPUTPKbn/JfW6B1uvVCN3qNHpLtHWHlrlUW43gNLp+0VklQW85A8W2lmc2P6YBR07FPw119M210K7dpZwm8+uBXMOvNjytwUxw8NRx+i1fvDRgHBoUf10loAYa/A5nnVJSfIzB/mZdNwMrnopQ==;5:9XTwmyz9/huoF9RhfXrtFkySwOwlKmDoDYsxcs5YCJMcwCSYViIA2cQnph9MmbGiuQEnbttYC3fe8emV8ShTamKei0vipaGt36awCttfxbeT2TIRgIz2GVAKQms4IPtRhgS5fUg7Uc8+3mxqW5gR7w==;24:gzZPXyXyL27cNq4Hxo5ICY0ilEKNknR/7s0GTiKvtmHX7hJPF6fGKq448scHscDEU+d590LVtF1o0mDgz1ka9nO4caCH7ELRH/BoJPjUJu4=;7:q+3kSBJ8YsP2NwXu85+TO/snG402SU1KjZlmHpbz5HPjGhVf5NvrA4XzMSfgq7CVyzK2DUbDiU4CHES7krpf+8QxFfvzhgGObuDD55j9PvSEVpmOJFrDpzm1pBrEhln404fLa9/rTg0BEgC/uS3oemfZoOJMpPRcik6KSkWbpYZqBkxbHX83VE6lq7CeQ0lJfWRQEbM9IlalDH7WWOKwzjmeXSEy+Bi4zXBZn1sZKic= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 12:23:23.1938 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1923 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1757 Lines: 40 ZynqMP devices have PCIe Bridge along with DMA in PS. These devices can be configured as either PCIe Endpoints or as PCIe Root Complex. This patch series shall provide a driver to initiate transactions using this DMA. Single platform driver shall handle both EndPoint and Root DMA transfers. Patch 1 enables Root DMA register translation and interrupts Patch 2 corrects styling errors seen with checkpatch Patch 3 adds PCIe driver for end points Patch 4 adds Platform driver which handles DMA transactions for both PCI end points and Root DMA Patch 5 describes device tree bindings for Root DMA Ravi Shankar Jonnalagadda (5): PCI:xilinx-nwl: Enable Root DMA PCI:xilinx-nwl: Correcting Styling checks dmaengine: zynqmp_ps_pcie: Adding PS PCIe DMA driver dmaengine: zynqmp_ps_pcie: Adding PS PCIe platform DMA driver devicetree: zynqmp_ps_pcie: Devicetree binding for Root DMA .../devicetree/bindings/dma/xilinx/ps-pcie-dma.txt | 67 + drivers/dma/Kconfig | 12 + drivers/dma/xilinx/Makefile | 2 + drivers/dma/xilinx/ps_pcie.h | 44 + drivers/dma/xilinx/ps_pcie_main.c | 200 ++ drivers/dma/xilinx/ps_pcie_platform.c | 3055 ++++++++++++++++++++ drivers/pci/host/pcie-xilinx-nwl.c | 23 +- include/linux/dma/ps_pcie_dma.h | 69 + 8 files changed, 3468 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/xilinx/ps-pcie-dma.txt create mode 100644 drivers/dma/xilinx/ps_pcie.h create mode 100644 drivers/dma/xilinx/ps_pcie_main.c create mode 100644 drivers/dma/xilinx/ps_pcie_platform.c create mode 100644 include/linux/dma/ps_pcie_dma.h -- 2.7.4