Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3057699ybi; Mon, 29 Jul 2019 00:02:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw5xNq3EOKXdsbppADn17T+aTtQgyTc6HlGYG7uv3LSErTGtGmrj3J/57Jpfm92oe+6KRT X-Received: by 2002:a17:902:a514:: with SMTP id s20mr102781527plq.162.1564383728888; Mon, 29 Jul 2019 00:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564383728; cv=none; d=google.com; s=arc-20160816; b=A6J9u54tVJydSeGHwrtXZmHEHTDrz+JZ0qMlG9LdjEmDi7Phd38TPHKyq+tvzNkbOH 2ylrF3hsCNVyiqZyfhK/m3MXfJyxCfgmcEBXdrZqTz40AY1kA+40hwGAveQcfEnh3AcL yrhbBdMha9u4/E51eO67QiDdQjpr9C15uXeJ5liGWTAtdQ9AkLpFChf8AjmE6BSHBfVP Cky18/fOAXoVaVydS86nlxhtwG5xi9lWTacRCcxKi8QS7psgqufnDZcoXb27MpgbmW0L aODoyamDrv9MO1reCT5TIiE9uOs/kRNneVHrt5DkXYIZXxcScPvPQ5gGC0JCmj/MMWsG 0Nnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dgHooDfnA6JiskMjDKx5UNb+4QY4ODJqOr9VCnyfqwg=; b=qdkVw3tQBdUlUOa0WqVlEKXVYr5Q7+U3F0rX8A47NL+OkaZvaLcA6tGUP0Vpm72xaA HK0XoW05BToavyAxyohPAI/XwQFE3QH4XRWuFUoxo6s0QaQd2u2fLx2zv+R3apOYs+62 /YSyUJimRr937T9sQ6D6gUqtUdS6PBYoTRNhzxbSMvQbsRDluIyOgsbAsDE3pUXWpjer kbCHAobf6+L8KIaR69ToUtKm2HsnI6B6JFyQlKLiXZKUSd56mK50M7HfWTe2bNHBFSmN LWZpoWtWmWjrUgK9K00PsrrFf35bRjJPTVFeYWMGMNUG/hvooNj2yNj+as0RWi8NQZEy OpGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gpfJbMlu; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b28si27922619pfp.92.2019.07.29.00.01.53; Mon, 29 Jul 2019 00:02:08 -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=@kernel.org header.s=default header.b=gpfJbMlu; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbfG2GLZ (ORCPT + 99 others); Mon, 29 Jul 2019 02:11:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:44282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfG2GLZ (ORCPT ); Mon, 29 Jul 2019 02:11:25 -0400 Received: from localhost (unknown [122.178.221.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEBB8204FD; Mon, 29 Jul 2019 06:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564380684; bh=nMKUNWZ9yoS62/Zd9AxV9+IUb4TvSPx7bEbfZkPkxOA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gpfJbMluyoxSsI8ETGPCvW/rNJLyFllQggJeLqu9lmBhW+0TuiqxwIjFjWj5P6Ugz GXdIrfZUyIRbjCXABBbeztbRQToVhI7Mi162rijjxYuSqYzlhmGvjQuSfJmvcHerCJ MZZnAO/EG7QMJNzBSHpF9a2wQCLWkHM/gstRhCn0= Date: Mon, 29 Jul 2019 11:40:10 +0530 From: Vinod Koul To: Sameer Pujar Cc: Peter Ujfalusi , dan.j.williams@intel.com, tiwai@suse.com, jonathanh@nvidia.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, sharadg@nvidia.com, rlokhande@nvidia.com, dramesh@nvidia.com, mkumard@nvidia.com Subject: Re: [PATCH] [RFC] dmaengine: add fifo_size member Message-ID: <20190729061010.GC12733@vkoul-mobl.Dlink> References: <20190613044352.GC9160@vkoul-mobl.Dlink> <09929edf-ddec-b70e-965e-cbc9ba4ffe6a@nvidia.com> <20190618043308.GJ2962@vkoul-mobl> <23474b74-3c26-3083-be21-4de7731a0e95@nvidia.com> <20190624062609.GV2962@vkoul-mobl> <75be49ac-8461-0798-b673-431ec527d74f@nvidia.com> <20190719050459.GM12733@vkoul-mobl.Dlink> <3e7f795d-56fb-6a71-b844-2fc2b85e099e@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e7f795d-56fb-6a71-b844-2fc2b85e099e@nvidia.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-07-19, 11:24, Sameer Pujar wrote: > > On 7/19/2019 10:34 AM, Vinod Koul wrote: > > On 05-07-19, 11:45, Sameer Pujar wrote: > > > Hi Vinod, > > > > > > What are your final thoughts regarding this? > > Hi sameer, > > > > Sorry for the delay in replying > > > > On this, I am inclined to think that dma driver should not be involved. > > The ADMAIF needs this configuration and we should take the path of > > dma_router for this piece and add features like this to it > > Hi Vinod, > > The configuration is needed by both ADMA and ADMAIF. The size is > configurable > on ADMAIF side. ADMA needs to know this info and program accordingly. Well I would say client decides the settings for both DMA, DMAIF and sets the peripheral accordingly as well, so client communicates the two sets of info to two set of drivers > Not sure if dma_router can help to achieve this. > > I checked on dma_router. It would have been useful when a configuration > exported > via ADMA, had to be applied to ADMAIF. Please correct me if I am wrong here. router was added for such a senario, if you feel that it doesn't serve your purpose, feel free to send up update for it, if that is the case. Thanks -- ~Vinod