Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7149354ybp; Wed, 16 Oct 2019 04:38:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9v/wUE4IL4Klno34/x3sqRU8NeCcoAk/lkN+s+fP8X+qmK5b97ZJbF8O6JZ60weShpvIh X-Received: by 2002:a17:906:7202:: with SMTP id m2mr38698007ejk.138.1571225911460; Wed, 16 Oct 2019 04:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571225911; cv=none; d=google.com; s=arc-20160816; b=uISqVIOvtQhKosncLuvIg9TRreTAMA0KnsvV287pfaSnwS5UUwGyHcSV+vI9sTYy/1 wAQfzGNw3BsFTET32IiODTzDmgA4NUA6jVpoB9b6Iaq2/WxDVETChKXZ9x3SCQTWciDP op2sxJUtRZVDUZYvi+Wp4gCk37NrNfV3RKdrFevXJDmEgsda/mUtWxcwkzrm4BA+55A9 2nV6ExGeZK7jURCeJrbpEmXzO2WffCqVEN7UUN7kY626K9r7l28s/R4UrWXLbw8VZ+Pf 73euC4tfZ7IqkY/HnZ8Mcwp6XqQ12BqkIyjxnPSRLgjLOAqrT7x419SRohcGapy0UfPh P3xg== 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=AOpchTmeIJ0fPC4N4MyPRwPjPnCyEj5/ke59ipNLM6o=; b=XK6vcU4GSifdxgbW02K4HMRFWpPa3d8b7YWFKZ0S8UFhEmiqlG5tiMtCzm2KVjenAx e1Yc4FOgW1si9+7PVz6aD2GwmgAr9B4XsYlmEzg0vLsNV5/1udtDmSNiMYjCyq1X4NDR hHZan2adrrp+Qn3osGhlykfc0e0366/eYVVFmanzAaRx0fX2itiFn5j9uh0362PsgKxv iwFDDAjCfX5VaKsQ98qAe3aDc64F/AsPX6S4GJ7qJMHKLakMETGkhBFCVbhgSqjhY2dX BC5ru1eKrostcSsyjwtRwR3DyfuzmIyM7+UNSbnYZfX4rHpewuNzQ1ZcUN660c150brK zV5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k+szEqQt; 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 re13si15174784ejb.279.2019.10.16.04.38.08; Wed, 16 Oct 2019 04:38: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=@kernel.org header.s=default header.b=k+szEqQt; 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 S1731538AbfJPFIr (ORCPT + 99 others); Wed, 16 Oct 2019 01:08:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:46266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfJPFIr (ORCPT ); Wed, 16 Oct 2019 01:08:47 -0400 Received: from localhost (unknown [171.76.123.182]) (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 5F9302168B; Wed, 16 Oct 2019 05:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571202526; bh=jKNLfVYIQbE7clkP9PEh2yGL1A1P2qJTYScbWHJpYCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k+szEqQtxgSq/xFMmw3WjWUUGhCRS1GAhjSZlRHiooWMM0YTeXWsHKKQ0DR1JidN0 Rf+WxzVc28RTDuygqyJliSUu3sSvukvp/NlfYh1M6XMKtnjqRcTf/SGNKasvZ7Bx2m ha9Hc9zObkvKPrbM54gfLQKGuSl2Z6lYRBnk2nM8= Date: Wed, 16 Oct 2019 10:38:41 +0530 From: Vinod Koul To: Lars-Peter Clausen Cc: "Ardelean, Alexandru" , "dmaengine@vger.kernel.org" , "alencar.fmce@imbel.gov.br" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dmaengine: axi-dmac: simple device_config operation implemented Message-ID: <20191016050841.GA2654@vkoul-mobl> References: <20190913145404.28715-1-alexandru.ardelean@analog.com> <20191014070142.GB2654@vkoul-mobl> <4384347cc94a54e3fa22790aaa91375afda54e1b.camel@analog.com> <20191015104342.GW2654@vkoul-mobl> <4428e1fa-1a2a-5a5f-ada8-806078c8da94@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4428e1fa-1a2a-5a5f-ada8-806078c8da94@metafoo.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-10-19, 23:06, Lars-Peter Clausen wrote: > >> This DMA controller is a bit special. > >> It gets synthesized in FPGA, so the configuration is fixed and cannot be > >> changed at runtime. Maybe later we would allow/implement this > >> functionality, but this is a question for my HDL colleagues. > >> > >> Two things are done (in this order): > >> 1. For some paramters, axi_dmac_parse_chan_dt() is used to determine things > >> from device-tree; as it's an FPGA core, things are synthesized once and > >> cannot change (yet) > >> 2. For other parameters, the axi_dmac_detect_caps() is used to guess some > >> of them at probe time, by doing some reg reads/writes > > > > So the question for you hw folks is how would a controller work with > > multiple slave devices, do they need to synthesize it everytime? > > > > Rather than that why cant they make the peripheral addresses > > programmable so that you dont need updating fpga everytime! > > The DMA has a direct connection to the peripheral and the peripheral > data port is not connected to the general purpose memory interconnect. > So you can't write to it by an MMIO address and there is no address > that needs to be configured. For an FPGA based design this is quite a > good solution in terms of resource usage, performance and simplicity. A > direct connection requires less resources than connection it to the > central memory interconnect, while at the same time having lower latency > and not eating up any additional bandwidth on the central memory connect. thanks for explanation! > So slave config in this case is a noop and all it can do is verify that > the requested configuration matches the available configuration. okay so noop it is! -- ~Vinod