Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3487979imm; Tue, 29 May 2018 08:05:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplC4EkoPNkJ9Df2CCQng9hxhTwaSZbu7wRe9KotGZaYUoo1ZklO/wmZ8e/iMiDGdukwYM6 X-Received: by 2002:a63:a513:: with SMTP id n19-v6mr14006012pgf.381.1527606331852; Tue, 29 May 2018 08:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527606331; cv=none; d=google.com; s=arc-20160816; b=c+efS5hoNIZDZI36aPi96ue5bUPnHTInh0qFkNFRQdHpaNsYH8UCQgDcUVjyj3ae0S tOmHpTRjh5WcDIXOtE3iqJllKeVMLM6E3UXuGr1LTsMqVOlxmOpqlF9oX+DGATaAXMYl fTBDUteZdFyYGelBXf5SydUosIdYg4TN1bBHouhlwLeU8ThX4r2lyXlK8xKWqItqt6NN +wtsxP1j3westRAXHtngO7fIJV8MflzLsFBwUlNKxOsg+27nOlRErfUYyrFL4jVXX863 IqkGosU1hbpr5Q5Jt3NcLgw4n+2JwuYO2PI8P2hdHd09kWx2C/YWE3HMknTkLUqna2Y5 u6Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=1vXAd0G7peIDBbtOA1lGmLudZrG8qnhrfQn9YFAfrSk=; b=JcKpgG+o/RM6xYHiHtQEDrpi9pdJem4ARy9U1UVXtBOYjeXBHFKxlyqhtqd3i6RP0k jETh7OvfuFZ/NUFkF1GWlUn/g7a1uBE4ZsjqiR8/r0kbxtpLTR92FKl9D/Q5+gTvnNhG UekogG9QadxVs/mA9DZkIf+APSj5L1OUtv/b6LghuSlwYFCIrFxiOv950RJUHBxy1j+c QUgMVXAQH9IuNe2NUWgrcf4/myF+7JPCSjggt9AUAvT77nxA+7y59F2RMD1lOC83dlrE HMaaKpk67EODFKr/idM9Ig04iEemf/o6ahzSn6UgRL5mOqny2vHR9NHlMPAy69mKW4LR +j8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BuNWlunP; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b63-v6si32895748plb.566.2018.05.29.08.05.18; Tue, 29 May 2018 08:05:31 -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=@ti.com header.s=ti-com-17Q1 header.b=BuNWlunP; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936716AbeE2PEc (ORCPT + 99 others); Tue, 29 May 2018 11:04:32 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:29162 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965033AbeE2PEV (ORCPT ); Tue, 29 May 2018 11:04:21 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4TF3eUD004684; Tue, 29 May 2018 10:03:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527606220; bh=1vXAd0G7peIDBbtOA1lGmLudZrG8qnhrfQn9YFAfrSk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=BuNWlunPQCuWFVFE5QRsI/rJSePQhBoPI01IocFmOSPTedBdRQ2/OG/wg+clrwRV0 m2L50ZvcjcNiQhdVr4ortYktCRul/qw+oF/uS7K41+WO9w82UwKuIOhauvGMAwzF/o SqBoDW/YD1xmjoLZGh0vizymhZEJUAmQgWoilK4Y= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4TF3ds7009116; Tue, 29 May 2018 10:03:40 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 29 May 2018 10:03:39 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 29 May 2018 10:03:39 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4TF3aWj023332; Tue, 29 May 2018 10:03:36 -0500 Subject: Re: [RFC 2/6] dmaengine: xilinx_dma: Pass AXI4-Stream control words to netdev dma client To: Radhey Shyam Pandey , Vinod Koul CC: Lars-Peter Clausen , "michal.simek@xilinx.com" , "linux-kernel@vger.kernel.org" , "dmaengine@vger.kernel.org" , "dan.j.williams@intel.com" , Appana Durga Kedareswara Rao , "linux-arm-kernel@lists.infradead.org" References: <20180411090854.GY6014@localhost> <7f549d2e-fc96-8c7e-d839-edb86ae088a5@metafoo.de> <4ba085c7-5256-6c8a-5697-c0d5736a6e46@ti.com> <1fc10bec-5c2c-98f1-1d5b-b768dea844ed@metafoo.de> <78828d31-e4cd-5211-f1b6-8918ac38f599@ti.com> <8c7a5ac8-0747-9dad-f6e5-74890b64f618@ti.com> <20180424035548.GA6014@localhost> From: Peter Ujfalusi Message-ID: <99581088-7ef8-6fac-c934-91eadddfb04e@ti.com> Date: Tue, 29 May 2018 18:04:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018-05-17 09:39, Radhey Shyam Pandey wrote: >> Well, let's see where this is going to go when I can send the patches >> for review. > Thanks all. @Peter: If we have metadata patchset ready may be good > to send an RFC? Sorry for the delay, I got distracted by this: http://www.ti.com/lit/pdf/spruid7 Chapter 10. I have given some tough to the metadata attach patches. In my case the 'metadata' is more like private data section within the DMA descriptor (10.1.2.2.1) which is used by the remote peripheral and the driver for the given peripheral and it is optional. I liked the idea of treating it as metadata as it gives more generic API which can be adopted by other drivers if they need something similar. Another issue I have with the attach metadata way is that it would require one memcpy to copy the data to the DMA descriptor and in high throughput case it is not acceptable. For me probably a .get_private_area / .put_private_area like API would be desirable where I can give the pointer of the 'metadata' are (and size) to the user. But these can co-exist in my opinion and DMA drivers can opt to implement none, either or both of the callbacks. In couple of days I can update the metadata patches I have atm and send as RFC. Is there anything from your side I should take into account when doing that? - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki