Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8357046ybi; Thu, 6 Jun 2019 10:52:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd0hK3fhYXruiKcimooZr84KVOo9vt8+gnyKOVxpRR7shfVx0HNrUhyDMn2vV02RRFJ0W1 X-Received: by 2002:a17:902:4381:: with SMTP id j1mr50669851pld.286.1559843523896; Thu, 06 Jun 2019 10:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559843523; cv=none; d=google.com; s=arc-20160816; b=AtOT8PywhwhuaF+UN6a0ReLoWdKnHxBSzimp14E6xztQAJWSqubhuOZd9zTp9f+En1 YarMCkKsk/v1etuKn20/sh/wnS/kUW2E2L7B+d3bH5Dvr5bKabY9ucVue7o2H3SNO+MA FqYCT3v/o967Uh2Kkb7jP3FFtouwZrOXh0SMJJeeXGZ5InJmC35ZYTdeNYuHKGdyTJ3l eXFrPcPvud4NdW9KyI685mezzx1UAEPutJDwDUTS3Wkee/1vGub3kIVJ9Uj+UAcKqrtO jmKDJ7r766uneUSby+UiuW+nUCJKYoVzY9kacu2AEJQwJzGahY/Bso4+/Qx4ZvD5CyGy qdgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=bZC1r6hpGzpazTCXU3NxX7cEb071qrcPb86jInbwR9w=; b=boWFmd5iFY4aNQ1xqH1YAw2EuOC+E12RcZEg7iQ2ffzc9kgBUVME50GH/NGCXh4lQm P1/F0Jb1Zqz/jjYIMw64hQTrKqDYDFPRbIIMYWk7CiB++RbRNbb0yWCEpBqKhUlkCIN5 TXAxNLi6iJo1JgwZzLFMCc4xrE3wD19lqnVXKtd0D86ZRIjNUCKylq1W5N9Owv96nIea uQzwM4itNvBToB5TCghjXJ7PdVPaEppFbh106MVffRKJUm2mspCRcy1TUIhaGjEBTuSf j/TZYe4pTq2DQy3JBchSwBLxEiQbZ2yXpK3YKXheoua3LUBKX+/AuhGi818M9J3OM8JM wFMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="H+g4mn/z"; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si2316368plz.280.2019.06.06.10.51.48; Thu, 06 Jun 2019 10:52:03 -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=@nvidia.com header.s=n1 header.b="H+g4mn/z"; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729125AbfFFOgT (ORCPT + 99 others); Thu, 6 Jun 2019 10:36:19 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:5556 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729009AbfFFOgI (ORCPT ); Thu, 6 Jun 2019 10:36:08 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 06 Jun 2019 07:36:06 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 06 Jun 2019 07:36:07 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 06 Jun 2019 07:36:07 -0700 Received: from [10.21.132.148] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 6 Jun 2019 14:36:05 +0000 Subject: Re: [PATCH] [RFC] dmaengine: add fifo_size member From: Jon Hunter To: Dmitry Osipenko , Peter Ujfalusi , Sameer Pujar , Vinod Koul CC: , , , , , , , , linux-tegra References: <1556623828-21577-1-git-send-email-spujar@nvidia.com> <20190502060446.GI3845@vkoul-mobl.Dlink> <20190502122506.GP3845@vkoul-mobl.Dlink> <3368d1e1-0d7f-f602-5b96-a978fcf4d91b@nvidia.com> <20190504102304.GZ3845@vkoul-mobl.Dlink> <20190506155046.GH3845@vkoul-mobl.Dlink> <4cab47d0-41c3-5a87-48e1-d7f085c2e091@nvidia.com> <8a5b84db-c00b-fff4-543f-69d90c245660@nvidia.com> <3f836a10-eaf3-f59b-7170-6fe937cf2e43@ti.com> <4593f37c-5e89-8559-4e80-99dbfe4235de@nvidia.com> <71795bb0-2b8f-2b58-281c-e7e15bca3164@gmail.com> <2eab4777-79b8-0aea-c22f-ac9d11284889@nvidia.com> Message-ID: Date: Thu, 6 Jun 2019 15:36:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <2eab4777-79b8-0aea-c22f-ac9d11284889@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL108.nvidia.com (172.18.146.13) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1559831766; bh=bZC1r6hpGzpazTCXU3NxX7cEb071qrcPb86jInbwR9w=; h=X-PGP-Universal:Subject:From:To:CC:References:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=H+g4mn/zDmvqcyiPtE/D2NuQmi3sR1KdEP4bHv66Kgh8Pa8HfT5wX3uLyJGon/eMG NNl/ryQ48lk+CRVbhaVMCZegfFzUYGLwuRmrgtLIH+5FDfSoDAfKHK1zowhWbJsgzZ 28RWTkkQLcwxQnnEVbroZgs4PZHfvDj3nANbuyr1+PFetshYhcl4P9t/Vxd4FS5j5q yv5DEKNS/hcz13BzT6rn3H6PAH37Tj+Gojepi9pZUgiYfDVUI0cTHs54mErZUQHGy8 8xtAFQWMwUPG+N/7HfkkXk80uc2eLRIc/vq4/XWl5rBIo2WzOi+zViSBbg6DmsEgfk JqPUPvy7lyvIw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/06/2019 15:26, Jon Hunter wrote: ... >>> If I understood everything correctly, the FIFO buffer is shared among >>> all of the ADMA clients and hence it should be up to the ADMA driver to >>> manage the quotas of the clients. So if there is only one client that >>> uses ADMA at a time, then this client will get a whole FIFO buffer, but >>> once another client starts to use ADMA, then the ADMA driver will have >>> to reconfigure hardware to split the quotas. >>> >> >> You could also simply hardcode the quotas per client in the ADMA driver >> if the quotas are going to be static anyway. > > Essentially this is what we have done so far, but Sameer is looking for > a way to make this more programmable/flexible. We can always do that if > there is no other option indeed. However, seems like a good time to see > if there is a better way. My thoughts on resolving this, in order of preference, would be ... 1. Add a new 'fifo_size' variable as Sameer is proposing. 2. Update the ADMA driver to use src/dst_maxburst as the fifo size and then have the ADMA driver set a suitable burst size for its burst size. 3. Resort to a static configuration. I can see that #1 only makes sense if others would find it useful, otherwise #2, may give us enough flexibility for now. Cheers Jon -- nvpublic