Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2098950imm; Sat, 29 Sep 2018 10:20:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV631K7mYC715rAJrVlo3PAr3Dyp/OW6n/2kPQ1AaC5YKEgv0Z1/vxZwv+AdlbAUBfbqVnXRB X-Received: by 2002:a17:902:d201:: with SMTP id t1-v6mr4030758ply.63.1538241647012; Sat, 29 Sep 2018 10:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538241646; cv=none; d=google.com; s=arc-20160816; b=BZoGPiewS7E0zQX+GhGCub8r3j6AxU3o0YwWJTpFwpbHeDseWMKYrIEUAy6IGu9kF1 bcOsUH1eRa/tWiL/wCXHQGM66aJxfdjpdb9hlpFUuKWFOylAYsFT3RML88ZxGmlIFHvY F+um0BV8MlllqWBMOoyngJ8PoH0NdrhuuHru2gOQ2i+KyBWVP63z1SBhbedEzz0wzYz+ lSa2ipRIlYYJxWUB9GJTMXRS9+2x94mesthdfRhQYXGkAXOtKKAJPvfuUPkGEmMcKfL8 BOOulkBnQ39VvjMWK5IGAgeFKAaPHMUVoWks81gGRlLv2ctrJ1+Mv9D7vSn8ALW++Cg7 C8uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=VzG8K3nxEtwM5xOo5aV2Dga2Pfeoax1nos7vIjey7hk=; b=LM8SufcIYkQN/S1jZEJzAKSiReVKCJW8tvDzHhONY+PJYvcTELI29Leq4h/CevWhZi A6yNiXqd7e9m/pHNa0FcwvukFtTI9kNWe8WSz5s/dXIym0/xSn0rZrQuuTkwDFokYOGJ ChlxJMPZlLjLPyWRrA9bZqeoVbkH4NAJ3fI9I7AU+KVyFlGKyNmW4XNB5BQWB6CDPCCG WHAQq/P+SBlNWS86cd6hnkKwnRqYlnc5BNVdu7TIBsDBVSGHGWt0TmsBPYERTkHtS0aJ xHHfXaiVQMuN3Lj+KXA79HhNC3xATgoMGd1rwzxPsAuAW7oknBlRj4r9cQED7zxwwY5d E9Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=dqkPbD9G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18-v6si7752806pgk.355.2018.09.29.10.20.32; Sat, 29 Sep 2018 10:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=dqkPbD9G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbeI2Xr7 (ORCPT + 99 others); Sat, 29 Sep 2018 19:47:59 -0400 Received: from mail-sn1nam02on0082.outbound.protection.outlook.com ([104.47.36.82]:23251 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728446AbeI2Xrm (ORCPT ); Sat, 29 Sep 2018 19:47:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VzG8K3nxEtwM5xOo5aV2Dga2Pfeoax1nos7vIjey7hk=; b=dqkPbD9GDg9n2hHL1j5QdT3u+00h4KTrn6Cfd4e1oKdlenxecxiG9B8CrZ0N00sEMYoRu1au5ftBoLW893EDxInfsHuC0G/SK5iFWtM07OhgyYCUF0mqfwwec/lj7Ib2KL06+AmC96Otv4AqxQ7VFdshdRK3CFodCV180RoT8ts= Received: from MWHPR0201CA0020.namprd02.prod.outlook.com (2603:10b6:301:74::33) by BL0PR02MB4468.namprd02.prod.outlook.com (2603:10b6:208:4a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Sat, 29 Sep 2018 17:18:25 +0000 Received: from SN1NAM02FT008.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::202) by MWHPR0201CA0020.outlook.office365.com (2603:10b6:301:74::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1185.20 via Frontend Transport; Sat, 29 Sep 2018 17:18:24 +0000 Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT008.mail.protection.outlook.com (10.152.72.119) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1185.13 via Frontend Transport; Sat, 29 Sep 2018 17:18:24 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isq-0005ZF-0E; Sat, 29 Sep 2018 10:18:24 -0700 Received: from [127.0.0.1] (helo=xsj-smtp-dlp2.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isk-0001eG-Q8; Sat, 29 Sep 2018 10:18:18 -0700 Received: from xsj-pvapsmtp01 (mailman.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w8THIHHD003734; Sat, 29 Sep 2018 10:18:17 -0700 Received: from [172.23.37.150] (helo=ubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1g6Isj-0001dz-Dr; Sat, 29 Sep 2018 10:18:17 -0700 Received: by ubuntu (Postfix, from userid 13245) id 9A98C3C32B0; Sat, 29 Sep 2018 11:18:16 -0600 (MDT) From: Radhey Shyam Pandey To: , , , , CC: , , Subject: [PATCH v2 0/4] dmaengine: xilinx_dma: Minor fix and refactoring Date: Sat, 29 Sep 2018 11:17:56 -0600 Message-ID: <1538241480-13844-1-git-send-email-radhey.shyam.pandey@xilinx.com> X-Mailer: git-send-email 2.4.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-Result: No--4.199-7.0-31-1 X-imss-scan-details: No--4.199-7.0-31-1;No--4.199-5.0-31-1 X-TM-AS-User-Approved-Sender: No;No X-TM-AS-Result-Xfilter: Match text exemption rules:No X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(396003)(376002)(346002)(136003)(2980300002)(438002)(199004)(189003)(51416003)(106466001)(103686004)(63266004)(356003)(34290500001)(90966002)(305945005)(50466002)(2906002)(478600001)(476003)(4326008)(110136005)(54906003)(26005)(186003)(126002)(7049001)(6666003)(48376002)(5660300001)(81166006)(336012)(47776003)(36756003)(2616005)(8676002)(8936002)(6266002)(6346003)(81156014)(426003)(106002)(16586007)(50226002)(2201001)(52956003)(42186006)(316002)(486006)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR02MB4468;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT008;1:GOTh92HJ5oOu7Tf9wTVSq6wpY5/fI+XVqUE16tkmPMry1cP8IfzCNlGM5cxdvAFX0D5FK7BUZdtFxI/7Pr5GSg4AmrgTHCe0/k+7JSq5uGENF4tDDuPUrqAXiFP975Dk MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bafd1787-5f37-4233-ec34-08d6262f9052 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BL0PR02MB4468; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4468;3:KZBXLHRzZUzrzn3ELR7dGByxt3tizeAch4NeyFqiKYnc3Suy1FLBlXGtmu/acO2tYO182fvLoPdsEYvc5J2M716TA6OvxslMlpfg8Jpb8TCdnmRbOJTwnHmP/p4DWmNkzTNZnJfWDiRFXIC33VYkH5SkS/CrN9AR3LHkhhIKRQKg81k8OV9j5tD6DOQXAEZbIWwZ1eh5ND8N17shG2vbahdJSzeE9oji785csXUaJeGHhf6rXqxILxqjfewxSKqSRtsI0+lJRqxvAa4Dj1R4/xY78+xaRxFZn1E3YPticAiadnHzn9x8CCB3l/y5xb+hmdH5nIq+4H2/xmZDwcFQbqQ3imwbv1xijtzkdAcNfW0=;25:6DK5OoLU1NU9z/+I41GTkuU3BBHZ562HyQzmhw0bvP4oBPOPkWc1pexsoBsriOSZ95gKpTcX5YQ25j+75/x1BGspYMqvogh2hsww8EwIqf663l6ZBjXGgXRdD88LdM5GmVs8zSh72T7wxbJ8+vxZMrWOFu8H0vQ9VjyI5N3m6Pc+i0WYDrfGimlU+urP7/63eAbpAMmxANQuNOEwDD7vlrhcVBW4NKe8eflL1WZuOp4ceChvde5Z4G95XpgYyZO/JUYFSsjtaGf0WbbM2kiA7t676Mpt0ZZA/PVhDR5PcI5TqOB+5zuPyxQFm1PPm+DE1EHL8byJ1IxoU4H/ot1yRw== X-MS-TrafficTypeDiagnostic: BL0PR02MB4468: X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4468;31:xyYWOHU40iaqgiLJ6VDDG36Iy67Wa180W9Q+USuZpPiS+7jr24IW2ITCnEAmbyMVeuQ4dW33ntng4YFEheNplxeo84XoFu3AbXyhxL2yVY215MZAIPfoUorNrG0bJS2G4jL5cLjy0hOlF0EdTWgQOmR/gf8B+eDZsRklkZV3QLplGWsU6dkJWt5kCsUPLpXWT+XnUpGI0KsvbS7azsou79YGjJK/abM/ljphA3vftII=;20:yh6U79tDOjotIiMvKyCMAHFO1LfhIdcciV8rqi8bf1taPj4xLmmj5oSCs71S2V8K+kZyOSoGFgGstbhRmT1VVSGLTziyYRSXiHXwA+octVh7ZOMYTkgtyswMKS4hdX4DfTcRuX/tobBRI765rKsVF6Ts5PLgRTqZEhxYj0kCdAslcpJ+9xoDFb0gQaq0RPo+gCNYoap/kIK9vOB2FTX0jhpdCe26BYQlXuk/Bxejrjizb5pize6nZiBHLDQ9JxYK5aMFQmXrYT9bDmNioyzRobLncMpxNhrBiZazeydcNtbazgFQCckZGpei13fExbtulwX3CtL7R60u9rC2ElvqWl+To5wxVQMz3/oHi5ZcPhYmQk2/Y2lLJuD9Wsk0HrZXFHndQZj3wBBAV7EiWYAVdAKvuQWiWDk7NjPyfE8qa8g2bfH7AxKAx5kW4VhQogaFP+HVTdZ97k6grT8rRNYhU8K4r/itwFbLphhKze8mMJEXeQOP57T5uutdVxNVlAuD X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231355)(944501410)(52105095)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991041);SRVR:BL0PR02MB4468;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4468; X-Microsoft-Exchange-Diagnostics: 1;BL0PR02MB4468;4:gg+Uy9BA+ohnTV3e3btb7dGUTZDvbVHvH1rsA1NlpG2ueBgyHtk7deum+vJz9i0UlaPfORY99XQYjdJigz8H3btQhmNLHP1lwtc+qav+TE6abMmxUy67Fx2hqPJg2HC2v7hUHvietgt98v1O7uw9YKkVI5dxxjw9I8598MVbhy874QlJDwAo2Er4w4b2vYOZaHVR5VTM9AQtACN8GCwJRfCWN4E3sBP3RgvoOztIP3wDGznGMZdzRV/kSQ2lPomeDCB+Kmpjdrgi4WWPe22Zhg== X-Forefront-PRVS: 0810818DA0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL0PR02MB4468;23:Qp/iEUCPY3IvK5Pa/oZDuS7N5yCQkptQrPjmeQ9rc?= =?us-ascii?Q?/CHqtQliWP3LdLNQFIt2ENegiFUgc7AUUBF9obLIxXxN1BWHZn4IS6ZVz9M9?= =?us-ascii?Q?yzO8alzurFfOqmyou5AJgzfbo3EivrhVjqU0iIP2ySrJv0OLQHJOSD/kEjtd?= =?us-ascii?Q?SSvr/RLg8S11tp8x/fMJZ/zIau4QWW6zTCU4yAzn2HxL7bXKThZl9PqswDoY?= =?us-ascii?Q?LlGuiQk9lEC/rSj4zvCTyIbd710N1bPPdzT5amLfnFPCzzj/fZzEqXzR+ShB?= =?us-ascii?Q?zvGI9QDhJ+dJ2SjIMaGhDsTkOMFk/G09rJySFUy4GbgaGbtPb1rufBLseV0l?= =?us-ascii?Q?NkZXw5vZUyEWKOkLdh36zW8fN64mlvSYowBiQhKZunYMz9LY8pJPLKbR+4LU?= =?us-ascii?Q?lDoOhTuUguc+BnKR6lSnZ+D+Y+Z8EhnFeAtLtM4YoHbuRIsvdlILKwR2EqsY?= =?us-ascii?Q?gI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tyHBUhGMUfDHLeUp3/IDFApd7QCPYfJgsVG4T SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2018 17:18:24.3676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bafd1787-5f37-4233-ec34-08d6262f9052 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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4468 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes 64-bit simple CDMA transfer. It also does some trivial code refactoring. Changes for v2: - Introduce helper macro for creating dma_addr_t from hardware buffer descriptor LSB and MSB fields. Use it to fix 64-bit simple CDMA transfer. - Modified commit description in 2/4 patch. Radhey Shyam Pandey (4): dmaengine: xilinx_dma: Refactor axidma channel allocation dmaengine: xilinx_dma: Refactor axidma channel validation dmaengine: xilinx_dma: Introduce helper macro for preparing dma address dmaengine: xilinx_dma: Fix 64-bit simple CDMA transfer drivers/dma/xilinx/xilinx_dma.c | 48 +++++++++++++++++++++----------------- 1 files changed, 26 insertions(+), 22 deletions(-)