Received: by 10.192.165.156 with SMTP id m28csp606601imm; Thu, 19 Apr 2018 04:42:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KSt92sD7C0XbjeotdT+D+rycq9FFvN76a4oyMGE3cvs34mAePrVDvl86eDkbIBt1S6p9N X-Received: by 2002:a17:902:d909:: with SMTP id c9-v6mr5699526plz.229.1524138132305; Thu, 19 Apr 2018 04:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524138132; cv=none; d=google.com; s=arc-20160816; b=I15xtdqVlKrjWwJxLcE87SnLTgeYipnA72v2+tA0jWEHyL2IVoDd+A2CmuyqsIRY0B Iyc3RJsUkQ7eUeMKGv9tZ+wWgGs0lgv5AXdCQnW8AaDK0a0oqckN0T7P0iX2CyWgkIrm jZq72t2Dut7+zw65rH/rKIWYM9qlHpkFZrDsn5lTPgCPVPdJ5e/0Akl4La5i3aQsRWIC j2e1mf4eySWOLmgisuIgKjPyzps1AOl8IvtMluUQsCRmItfGDGVeX9Hs5+rqyazHDjO/ U+XGGRnjLZWSOqiWBU883MY9zssXcCZdm39q0tTQGC1L0vbYb+wR2+/2TSXKa9VLXlxm byYQ== 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=918zeFXzpXGf/O5W9xfUVIBpxPAZXpgi1FE8Xdw2Dnw=; b=peb6jQA/Yzjj+ak+JCAATIRz4vXCeHvxsWqoULJC8ewC4kMMr2xa/fwsDYEnM45NfW 3+bWcKB0wb16TyNU1QmfDXO491hE+nq9GBIezXd8ycGquY2gGg5DsSBXjfYe0JZOlOQk GATgQgH2JW+Wd98jm9TgmqYk8DlYFtsRTa75KdEqEFFHc9Ly/iKkkF9LmYFJF3foq0O4 MUxe/owfMDD0YjzRuvbNCEM5ZUlNi2LrdPDolSEFLS24SW/Y3YnmhfXgpUCsGlbacMhG SPBwyyQegBn4DGqQcwfmY57AXcrP2l9kW4SNtH6SB8c1nRxwW6sWFpWNP2gLJQe1A2Rs B8Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tTEaz8bW; 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 o18si3111627pfa.346.2018.04.19.04.41.50; Thu, 19 Apr 2018 04:42:12 -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=tTEaz8bW; 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 S1751379AbeDSLki (ORCPT + 99 others); Thu, 19 Apr 2018 07:40:38 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:40184 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbeDSLkg (ORCPT ); Thu, 19 Apr 2018 07:40:36 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3JBe2S0020993; Thu, 19 Apr 2018 06:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524138002; bh=ScsHrXilDOjReKt2scbeCBnw+KrX162QSXAu7jhlQJA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=tTEaz8bW7OEsxJSn4/WUibXQhSk0d0b5VGbonxsDx2kRQBTYshCzKE1Ei9xfBH6Tb k562GCuhpU0rZAs0rhpRPIA6oWvJMaE9UvUqtxWi+vry5/may75HWc59XVP2FwVWTi 6Lf/UyByhH6z5xdxtHUPEEWZwYzcrRMyA8e+SE7A= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3JBe2a8012458; Thu, 19 Apr 2018 06:40:02 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 19 Apr 2018 06:40:01 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 19 Apr 2018 06:40:01 -0500 Received: from [192.168.2.10] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3JBdxpw028288; Thu, 19 Apr 2018 06:40:00 -0500 Subject: Re: [RFC 2/6] dmaengine: xilinx_dma: Pass AXI4-Stream control words to netdev dma client To: Lars-Peter Clausen , Radhey Shyam Pandey , Vinod Koul CC: "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: <1522665546-10035-1-git-send-email-radheys@xilinx.com> <1522665546-10035-3-git-send-email-radheys@xilinx.com> <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> From: Peter Ujfalusi Message-ID: <8c7a5ac8-0747-9dad-f6e5-74890b64f618@ti.com> Date: Thu, 19 Apr 2018 14:40:26 +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 On 2018-04-18 16:06, Lars-Peter Clausen wrote: >> Hrm, true, but it is hardly the metadata use case. It is more like >> different DMA transfer type. > > When I look at this with my astronaut architect view from high high up above > I do not see a difference between metadata and multi-planar data. I tend to disagree. > Both split the data that is sent to the peripheral into multiple > sub-streams, each carrying part of the data. I'm sure there are peripherals > that interleave data and metadata on the same data stream. Similar to how we > have left and right channel interleaved in a audio stream. Slimbus, S/PDIF? > What about metadata that is not contiguous and split into multiple segments. > How do you handle passing a sgl to the metadata interface? And then it > suddenly looks quite similar to the normal DMA descriptor interface. Well, the metadata is for the descriptor. The descriptor describe the data transfer _and_ can convey additional information. Nothing is interleaved, the data and the descriptor are different things. It is more like TCP headers detached from the data (but pointing to it). > But maybe that's just one abstraction level to high. I understand your point, but at the end the metadata needs to end up in the descriptor which is describing the data that is going to be moved. The descriptor is not sent as a separate DMA trasnfer, it is part of the DMA transfer, it is handled internally by the DMA. - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki