Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757611AbbGGPc1 (ORCPT ); Tue, 7 Jul 2015 11:32:27 -0400 Received: from mail-bn1bon0055.outbound.protection.outlook.com ([157.56.111.55]:21312 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750998AbbGGPcR convert rfc822-to-8bit (ORCPT ); Tue, 7 Jul 2015 11:32:17 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: Appana Durga Kedareswara Rao To: Vinod Koul CC: "dan.j.williams@intel.com" , Michal Simek , Soren Brinkmann , Anirudha Sarangi , Punnaiah Choudary Kalluri , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Srikanth Thokala Subject: RE: [PATCH v5 2/2] dma: Add Xilinx AXI Central Direct Memory Access Engine driver support Thread-Topic: [PATCH v5 2/2] dma: Add Xilinx AXI Central Direct Memory Access Engine driver support Thread-Index: AQHQopEJXzrIiVGHLkioqI+BsmdY+p233XmAgAQTGhCABAyYAIAP4wyQ Date: Tue, 7 Jul 2015 15:32:05 +0000 Message-ID: References: <1433839690-5491-1-git-send-email-appanad@xilinx.com> <20150622101527.GB19530@localhost> <20150627141858.GV19530@localhost> In-Reply-To: <20150627141858.GV19530@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.97.129] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21660.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD045;1:zdh4ZTuleDP9Foqh5b9l0wYnEub3kmpvwpbvmO8wovOc/qbcksqAE4/aYTsrT68Gy2rHJl4YEcg41ZihiagV2CF+GBnl/o9JNi7Rh3LJTWMEuNwDJ9JkDBwpgEVghD3V+hW+9NyQkukX+3YpK0XUwDa/aA7zVukNE0loyTotGuUEBffKINI8JyypxvhXfhL7dzvyA1lcx80XDsRD5el1DF0I7IXfASfx4XdPrSl+ksfYJMa2+KXCwaYi5Dr4lPnnbQf+Q0T4CTX0PqhaOwnnyWmIWh2L7aEG3MRZLRbXzcJmH+sG/oVoEl3jP43/ROgrSfdHwaCXrke7gt/x7Oiigg== X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(199003)(377454003)(51704005)(189002)(43544003)(24454002)(2950100001)(2920100001)(76176999)(92566002)(54356999)(5250100002)(6806004)(2900100001)(50986999)(2656002)(36386004)(5890100001)(87936001)(189998001)(102836002)(97756001)(47776003)(50466002)(33656002)(19580395003)(107886002)(86362001)(110136002)(5001960100002)(46102003)(23726002)(5003600100002)(62966003)(77156002)(19580405001)(46406003)(106466001)(55846006)(63266004)(93886004)(106116001)(107986001)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2FFO11HUB047;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB047;2:k2LzeLsQhU3liQgstIqEEGmXzRQpGohg9WDlW9yiQE0+Y8axXZiCrxLLaNh00O/S;3:ywuwMcVbVemTGPE2VO6C2rbUI6wf5nG2yfebs0og4djahH48MZTu0g/eqUmLOB5hy0531bGUAh/x9VOCLiBr10XXFMMfNRfEE/DpcYf0F3oyru0y65BKYrLOyOiMBY4AfjyYOkejexCByGO2GoKlO1JomdmhcBy95pmXOEEyRe5m2aNzR40KBirEL5fqwlsFCYnc8QRjbURvLQVBxMHZaEUFGILd0lm11ifbgeRetvk=;20:Z3E+TbDSAU/oP8w14cWWb9pB1PCseuLsW8IKUN00/iVsST1etQA/Dn704SRInprTYInhja3ZBeGnaLDPXfbc3IfKzpn+pBrQQ4Ji9UiFrYkRF2rAqQPLInVWhQivpsS4bOnZKTmOHdhZP94oqZu2UvQ7u8CO9r8sm2LIITi8SB7YYsmMoPF9CDJeCPQgCvlF1EqUXvXWhIt/6P4KU1608CTDILUbCT+R/6a5NycFk8HmWNs+dKm4F74RoIVk3LSKYm4jkMuukkNJa+TqQ2kZTUe6YocbIIrrIeOao8lWY/dUZyCnhcMlX7pmKt2HzUlqVAPsoKTktSYc7xXapv41QGlr4bQrR2GH5zQxSW5LHL8PK/r7IJrFMc23jfQWLaQATrDzIrVvBcxvAs0uS2eGqvIZKiwmksDTw+XNd27zmH/AwPl2fRG2YBfB5o/teiEd5YeUCMcxNcZxiI2XoaAeGh1Eo1DZ0qDC/QT5aAruDElTPhSCpXRt0iaY3g2ac0sg X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB047; 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:BL2FFO11HUB047;BCL:0;PCL:0;RULEID:;SRVR:BL2FFO11HUB047; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB047;4:quV1LDFgvC6Y0R1SOiMDzirwpDc6HsU0wxYTp5OFJ8G+1lf2IF//Y02j4N83J4oZhITDP7b4yMqAXWN6RAWWgnXjNBMql2646FiQT0ITj1d5YyhNz0eK5sjtA6MDdxnlS2Fdd0GcE8IUO3BzbFKssmPJmYhNYR4v+turEsfivM2kqY8b1mVEQc5GucQwvWc9KY9g/YdXp3j3caArs99HLseM1NQJ9A23IAoi1Cnt1/qXJR+p1P4o+m/fNpYyXz9nltfvZaEvsO3NOw0j4k2rIGRxWAgV+EEFl7TW14booqM= X-Forefront-PRVS: 0630013541 X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q3EYF6wKk8ccomnBph0la3YbkA6GTrEi7A4YofeAIIup82?= =?us-ascii?Q?hMQDDyWdEcA31oJ0JNUC20WGX7+ZnliiVCHqbsPAIn3lPtNusSxLrFeT6J7H?= =?us-ascii?Q?lxsm4gHQdG/CsfJtXdAaKZBliOCiogtrJnBZIF+EdsRjdBTlS/KT1AFIwrzF?= =?us-ascii?Q?ZiAqvG4pIfZxjrNgH76/l/sXg3QjzSbu9y2Ubw2mxGlXyPgpWwkCZKOuzyzT?= =?us-ascii?Q?8cLN2lO3BKgncyRCb2E9M6KlJsqJ9cHZBKn3gm00hHDGB/Qr1Psx8sxAFD42?= =?us-ascii?Q?wutcen7xOkECD382p6efbLzx5TGbgyrrK2tcDP4rPUv7XIrXc0Y8GcrUfk3d?= =?us-ascii?Q?OYDa7Kksmj5qCPtTkk9VBnijPXg5Ku1So/Gm?= X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11HUB047;5:vkUM26i5EakOMdgR8en2P38KkYYrjJ3XHUuTakcCO2tHjYhj68Qn6IcWWvPWlAlbfwa2T6bgll1HxtQjhQwRmzeTyZrX+urW35Kk9+NPH1TNa8iWZA9akPzKkAL3pgrdZs8rqgwVLymyshj9oV12jA==;24:6QytQttnKNqbiSpeUiJt6QAXxgIrAqLeysT0eCVsRKiPlZycFCBhusksLimtMvmbt+ZBowoWj945Rt3Orc5AJopj9albMQukDlGJHSoFf48= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2015 15:32:15.6213 (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.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2FFO11HUB047 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2864 Lines: 83 Hi Vinod, > -----Original Message----- > From: Vinod Koul [mailto:vinod.koul@intel.com] > Sent: Saturday, June 27, 2015 7:49 PM > To: Appana Durga Kedareswara Rao > Cc: dan.j.williams@intel.com; Michal Simek; Soren Brinkmann; Anirudha > Sarangi; Punnaiah Choudary Kalluri; dmaengine@vger.kernel.org; linux-arm- > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Srikanth Thokala > Subject: Re: [PATCH v5 2/2] dma: Add Xilinx AXI Central Direct Memory > Access Engine driver support > > On Wed, Jun 24, 2015 at 05:12:12PM +0000, Appana Durga Kedareswara Rao > wrote: > > Please *fix* you MUA to wrap lines properly Ok will take care next time onwards > > > > > + > > > > + if (cfg->reset) > > > > + return xilinx_cdma_chan_reset(chan); > > > Why do you want to reset this externally, that sounds bad to me > > If someone (client driver) want to reset the controller externally. It will be > useful right? > And why would they want to do that? There might be some other clients > using > other channels, doesnt sound good design to me. What is the motivation > here... If the client want to reset the channel in case of errors I thought providing this API may be helpful. Any way terminate_all API will do the resetting of the channel And does the cleanup of the lists that will be useful in case of errors. Will remove this API. > > > > > > > > > > > > + > > > > + if (cfg->coalesc <= XILINX_CDMA_COALESCE_MAX) { > > > > + reg &= ~XILINX_CDMA_XR_COALESCE_MASK; > > > > + reg |= cfg->coalesc << XILINX_CDMA_COALESCE_SHIFT; > > > > + } > > > Can you explain what coalesc means here? > > > > Coalesc means interrupt threshold > > This value is used for setting the interrupt threshold. When IOC (interrupt > on complete) interrupt events occur, an internal counter > > Counts down from the Interrupt Threshold setting. When the count > reaches zero, an interrupt out is generated by the DMA engine. > > This will be useful in case of SG transfer. > IIUC, on IOC controller will count this threshold and then generate > interrupt out? > Yes IOC controller will count this threshold. > > > > > This email and any attachments are intended for the sole use of the named > recipient(s) and contain(s) confidential information that may be proprietary, > privileged or copyrighted under applicable law. If you are not the intended > recipient, do not read, copy, or forward this email message or any > attachments. Delete this email message and any attachments immediately. > > > Thats cute! I have fixed it now sorry for the noise. Regards, Kedar. > > -- > ~Vinod -- 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/