Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758124AbbGGPqq (ORCPT ); Tue, 7 Jul 2015 11:46:46 -0400 Received: from mail-bl2on0084.outbound.protection.outlook.com ([65.55.169.84]:17833 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751514AbbGGPqn convert rfc822-to-8bit (ORCPT ); Tue, 7 Jul 2015 11:46:43 -0400 X-Greylist: delayed 869 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Jul 2015 11:46:42 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; gmail.com; 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 , "Nicolae Rosia (nicolae.rosia@gmail.com)" Subject: RE: [PATCH v7] dma: Add Xilinx AXI Direct Memory Access Engine driver support Thread-Topic: [PATCH v7] dma: Add Xilinx AXI Direct Memory Access Engine driver support Thread-Index: AQHQon9A9kU/tLGXRkiyV8/V08t2PJ235yMAgAQMsPCABA+cAIAP3rmA Date: Tue, 7 Jul 2015 15:31:58 +0000 Message-ID: References: <1433831736-18253-1-git-send-email-appanad@xilinx.com> <20150622104932.GC19530@localhost> <20150627144054.GW19530@localhost> In-Reply-To: <20150627144054.GW19530@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;BY2FFO11OLC005;1:y4Uewm5amWHE7hslo0hSJMWNRXLCwn2dgAHZCoxZzUzdVVIkAdG2xdiSjb/4U+CDQRGRUfMEhCBvKJknGggrV3i7JqqXfgChBjqnx151JbzbUULxOyGkYdqSuS7VgwLFw4IEFwEykNNNpGr7PMIDIwL/h6bYl90/6dpUoEUqT51NnkUS2WnLKoWCeId1wFF/LvuprDCj7SIIlrPNcoBhoE4NvsFIutuorH2mqrmCkbZNhK26FdaSpC4sOwmyHtlMQo20t8+znxrpPypW67iAmhYcMZtUp8AKqkzgUMX5XsF1EWXgLUldOOB2phf9fj0wrSFMSEX9F89lXvCirgFhvla+acanaVwrM92vuLjP6UkjS8Yt5G80T68isJZ4d/uMxoo8WL6xzJ84zWcG3WIeriCswOn2pnVglMHxAfLLAE5FI7L4IKFBxuu3ytCyhTps X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(377454003)(24454002)(199003)(189002)(51704005)(15975445007)(62966003)(110136002)(77156002)(106466001)(55846006)(19580395003)(5250100002)(87936001)(97756001)(2656002)(19580405001)(93886004)(50466002)(5003600100002)(2950100001)(63266004)(2920100001)(102836002)(92566002)(33656002)(2900100001)(86362001)(36386004)(189998001)(47776003)(106116001)(46406003)(50986999)(54356999)(46102003)(23726002)(76176999)(6806004)(5001960100002)(107986001)(15398625002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2FFO11HUB021;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB021;2:jH34TvI/6a1Ai/j/xz2Hk9y6nhgajdzGR//mLJXCGQBO6S5xurQtzpp0A4m0ybmz;3:LIyO9/G5I8G5+RH2U2/7ccqlK5efDwNteszMHNu97YW4O2s3LH8SExNbE1RlnL8y5lEyPo871e3rX9WiwAEOAbmGCVNPsovkjNtp8zx6DEDLQE4TjBcJTc3yOCXtkBiK2P28C4XmwQ8FRQSmGRLekXLf6NTLd5pTLblj3a+0s6oF7bIhUqeMqVpOtJORDUWnYzACVFdrw6ZRt+CSYDPd3ZKZeOXZp4KowbaMA1a1hjA=;20:S0J/uXGYvtpxwsCqxNZXPTMuPgadFZL7eusjy0mx9X2wtq/Hl3IPd/B4FLdwDJkCFm3DCfyaE+2x23e/H0ja0NcrHAwfReUFqmTeEQyjb7YaLRHdD0qk3xNExsnbmYT06Bhjv9G5xUjrIq3BeolKpgoF/TXMlUwTThDWtxyB4nwxVLaL2083S35IalobTdQnz6uRtZRIBVp86YWhE3mmLiwqhgVItVuYG7WeDKH0138MH80vV+5/u/Xjvt8ZUSmnAj5iq6Jyu7xdLCwNr3i0CaQO2eZGsoPGZMlcL72gqiNJh9Lgotw18aiQE6TplB69u16v8wBqQszlZkpviJaSRV5f80igYGO88UAA1IvCCFwtR4ePECtISWhGKwMywzvCwf2VGnVgwT/oI/7Gq7jRUQI71AvFyEp9HmlrQp1vtGHAWNhGIn4OkWmYNWHJUYidz5Iy6wS3PGQB8/X6kuesdbGjXbQ+aWFVImn16a4IYYQ3SmScmCMsjLost/ICkRVi X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB021;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB017; 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:BY2FFO11HUB021;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB021; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB021;4:yTbJYIu7CNGzH696eNAobbh2tmqMmomKnXyGfNIf8qNSMLcWWgvNXhYv6UNXX7464oxGOzHxBOC/c1R0O7+eOPtL80pNLtfEr0K3zAaYbfx2xlhH/yuRx9QRy/LzwvMti+N67k+AjQQJlZkvg4JigCpYCcq+S0QYThxpPE/ojAP/6Xn6ZbPN0u3iXTiBsByuRyWPIbzZ/5HqC12BsNQJgETZdVFffshOMYf/sV25aH7Mk1/6x28Y595VPb2LXFnSXykrC+nRTQdBfQ23SzU0zKBQR573MEwm/88gzIQQ/Lg= X-Forefront-PRVS: 0630013541 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2FFO11HUB021;23:sd1ZfhPJztHRnLGRvlLVUkBHJv+fzFYoM/Aywptr?= =?us-ascii?Q?PyHR0IK7sA3LLiguHxDhOuT+mY3BggBdcGobCrBoFlBMDaoCSkdaQCnGOaKa?= =?us-ascii?Q?soGQ7X2SYNXBVLUnzoKKFhmMNmO3Qsan9o7/3+8NSS5+vkUOFk9KytD9qHc5?= =?us-ascii?Q?5FWhTPEuxt2YKC13kKDOf6SOwHYyeH0+XeXbXPU7YmPRMNA5dWR7QpPYusGl?= =?us-ascii?Q?68UujsYb542FnUm2HaGHsEMrBYk3/xHFDlAyJKuEleTKzd5Q8yKmg4Hnk1nh?= =?us-ascii?Q?LgzSH1If2UXhZQUSWrVv7jTDJp4GBXHQ2xrVG0YiKHe418KQXuIPTj+IFW2+?= =?us-ascii?Q?WpE8Id011xjz7rNmkxoxeWd501RJfhc/jzVPsfJTU9OiiEvqIKfbt/6+bgw5?= =?us-ascii?Q?KZdujmLQTpgqkvlhrCK9KLqD7zuJ//MSygfMAAs+ypVw5g2rMSZe19BJXRZQ?= =?us-ascii?Q?J3d3rQk9+lzGR+8Bff/Y0D35W4VWHauhlbg68T+Oy7OYqiK8vEStFLcN2ZZf?= =?us-ascii?Q?yczUrltwKjvCO/J/c0F0PAAQnSTVAeWmg2IOwX5779Ix0a1jcYdnChRjugAN?= =?us-ascii?Q?xqP3fj4zlW0UxUwwa+GCT48fMhjbV9vPYaghONLuX02SyZsRCLv5lx2bgCH8?= =?us-ascii?Q?TXxebsfoojsAQQHWCv7XrVZm+dayxwBr3hPvBBJsZbbHOHX3FdG+WZhIolYN?= =?us-ascii?Q?ESCIspNWz/zxDrDNUOLS8nqRzZC5foqz0A66Fq0v4/uRYoAWufoWkjHgQ0F2?= =?us-ascii?Q?iPZcTLToujWGqWHrQeEm0woyeWy1kpHgoVyKxZ3P7qf5sbO3W7xbM+YPvabA?= =?us-ascii?Q?FTZo27BO5f2Dhtbp+cKlq/AyulkfH6WKsKrxNmwhI352oOdwdAozEWSnX1Ee?= =?us-ascii?Q?Kt2wqa1QxxxsltD/HQKBsFZBYALFktrzfZJMlp2saorDQGcCVEHxzMdaJ7vi?= =?us-ascii?Q?zIg6XWwRa0kB/WkvXFJvW/3Ott56hY+K+97ekcTDZLPdRh40gkJ4bH5GH2R6?= =?us-ascii?Q?0JqUH2koEOyg1ZjSgMJ+BhZbOiPrTL59lNUvtK9yFtvwvC9/0hJ23r6ldCbo?= =?us-ascii?Q?EOedZ7UqEugpgnEWiJdoCtw+mw/4davvBCGZ6enr/uQpSk/4TOFZRqmOxQn9?= =?us-ascii?Q?GI1dHA6dsjPWlgQdIe6UxIVcBQY2KXYU/IRzZmn2xl6/hMTPCyFj+w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB021;5:yWNVe3gsGTczOrp+7050xdqTNwZJ9/9Hy3du+9ESIbgaCBdj4H/cMqbGRBUOmDbiNwgmePMIgxY9Qw7wBt+tOyMHYOQKsORx95l2k+7joqZG8vfejy1BhNByQqHSTHdIF+pzd/cXulr0ZgZkFv/oKA==;24:XfNjIPgfCdX73Rh9m/koZpRQLfzmqnQY3GIjjiMWq3PGLEA5jJakXgS3xCxkByMs+CL4r01EmqhV/UPzDX99v/AJWSGGOszM0XVyGRSGXS8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2015 15:32:04.3781 (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: BY2FFO11HUB021 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB017;2:7UNgXY95wG8vaIaSvwe1Ge39YIWBzsGosN4S7lvTMHk34sh6XuJZojnz9WnAw9Wn;3:lNuCi6DkoU7NGIcThg+Q+pZf/66Ze/VoJtSELYu/epn64962tfII7BTbzBAWwqXTy/N/gUXcsDNes0d7ppHWmNU/28iIoK6P3b0+f7VIJRqMLt+57fZaaBqioONphIeJCTCrSkBtkG0vnWVx19Sz+dBdoewUoJOjaS4anBHuI4PF7FUQvUzZ4OjdgiXhZQ9e893LWzzcP+EEpZscVX95kM1j+Xi/GuQaTlM2I9Izjfc=;23:upPIyczjclk9nrL3JqUfo9FDgtF2CgjwgSZtRkHJD5LMFlG6Vib4gAUmLnamGySctY9SXkYFeQbzj+GB5EBX6RarJsEaF/zwGfts5SBNzhu+26mlw4VTSYDQ1ETvqTVgxX2zfltAZVfINcBsWD3h/VWAox+zv46Ftn+8YRo+HoNR/2ePns9dQnADOibQuCWmzxauKYMfoyxhD+iU5BU2QIQyPWFC0ve8AcKX5M5aIsTdIdZU1d80jkHikU3BYKRV X-OriginatorOrg: xilinx.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2800 Lines: 73 HI Vinod, > -----Original Message----- > From: Vinod Koul [mailto:vinod.koul@intel.com] > Sent: Saturday, June 27, 2015 8:11 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 v7] dma: Add Xilinx AXI Direct Memory Access Engine > driver support > > On Wed, Jun 24, 2015 at 05:12:13PM +0000, Appana Durga Kedareswara Rao > wrote: > > > where is the hardware addr programmed? I can see you are using sg > > > list passed for porgramming one side of a transfer where is other > > > side programmed? > > > > The actual programming happens in the start_transfer(I mean in > > issue_pending) API There are two modes > > > > All the h/w addresses are configured in the start_transfer API. > > > > In simple transfer Mode the below write triggers the transfer > > dma_ctrl_write(chan, XILINX_DMA_REG_BTT, > > hw->control & > > XILINX_DMA_MAX_TRANS_LEN); > > > > In SG Mode the below write triggers the transfer. > > dma_ctrl_write(chan, XILINX_DMA_REG_TAILDESC, tail->phys); > > > > There are two Channels MM2S (Memory to device) and S2MM (Device to > Memory) channel. > > --> In MM2S case we need to configure the SOF (Start of frame) for the > > --> first BD and we need to set EOF(end of frame) for the last BD For > > --> S2MM case no need to configure SOF and EOF. Once we got the IOC > > --> interrupt will call mark the cookie as complete and will > > Call the user callback. There users checks for the data. > > > > Please let me know if you are not clear. > No sorry am not... > > I asked how the device address in configured. For both MM2S S2MM you are > using sg for memory address, where are you getting device adress, are you > assuming/hardcoding or getting somehow, if so how? As Nicolae Rosia explained there is no concept of address for this DMA. Connections are made at the design time. http://www.fpgadeveloper.com/wp-content/uploads/2014/08/fpga_developer_20140806_130447.png > > > > no dma_slave_config handler? > > No need of this callback earlier in the dma_slave_config we are doing > > terminate_all Now we have a separate API for that so no need to have this > call back. > > The question was on parameters There is no address related parameters need to configure for this DMA. That's why no need of dma_slave_config handler. 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/