Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5177759yba; Tue, 30 Apr 2019 10:20:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlAHQQ7CzJZgO8dPjrNH/Wn6ezOu5GFK0W8xaIrjCb68+BHZkD1uYjcqY2AIdDwKp1GBFn X-Received: by 2002:a63:c54e:: with SMTP id g14mr67512134pgd.265.1556644816069; Tue, 30 Apr 2019 10:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556644816; cv=none; d=google.com; s=arc-20160816; b=q1X2a50ks1v86bkrp86nTfyyvrmd6Hiap0oQBC/9ZZbozOz8nC1PK9JWMxWXewYdW5 K0ke+Q6D7lXa0kAToZs6AsryQnYthhC9GMY6A69JncVju+v8tKcVhuor3rlB88arMS/P BqhtPlA7X/QsPRvX8z6cw0qXFMmCFyuszJPAr4MEN4h/3Dump85Pbqp4FmO+2VLKr1uf VJladPMZ2G04HbKRVMnyTh0bpJTo71UN5O7Dr0X6zd+xcHIFcuJsidf0WiD7uyugKkhb j/sAorU48nstvDZs6jMpp5xjmqm8R68Dix+LMUgn+D1GXoxX01ngZvbW4UXvP1bq5Vpx JZXQ== 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=5age0TyPk3BrYUdobUnS1zgCcpTggb/0CQ9iu/IdKwQ=; b=AJMmfppoCw2M3zP66OHTw4m/wIJH2OQQQrQR1EdYJyga25qUhLuUS2jvhDmeXWIPaa 2k0DXPHfHGEm9psnXGazDozb2DW1C1Df7R53uR0HuL2onEWAreY43zRUWlwl3oNo0pb9 N2Pv+ai5fLWaZemLBp11TpiE4ubhttk21b47klYWlVLP2SSTpqbffTHXxPOtbWgQkrMQ GBEYhBC2oQ0cKcE5RoAmd8iTpaWO7cgb8a4BD9som49kwxkxLMy0ZP0JQnRHB+UoqVZK kcuX0ZhgAfWVCqE274WpYPELY1WKgfaH3FwjODmT4pVI4USEPNUj+6KnbIIfUONUYp/I RBVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZxZx9D2L; 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 w19si14495140plq.55.2019.04.30.10.19.59; Tue, 30 Apr 2019 10:20:16 -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=ZxZx9D2L; 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 S1726218AbfD3RTH (ORCPT + 99 others); Tue, 30 Apr 2019 13:19:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfD3RTG (ORCPT ); Tue, 30 Apr 2019 13:19:06 -0400 Received: from localhost (unknown [171.76.113.243]) (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 4EEF320651; Tue, 30 Apr 2019 17:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556644746; bh=Ak9XM+VjWlZMz6Xy1SwbxWJmWxB8F4HluG3X0ePJnYA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZxZx9D2Lv1r5COFomGHS9i012OKoXiF2uZkaqgsaPoW3iM7g+piKuSSJJkJGuDgoz fUZMRrKxDlAO8HmtU/OQqfSuagdNNvLW1ehGjCwxxgRgXfm2QVvKL1iL1D/agM7WgI 2lwJbWsP5bS4YljgCgmccCO9z7rgh5qzTqXTgoEc= Date: Tue, 30 Apr 2019 22:48:56 +0530 From: Vinod Koul To: Arnaud Pouliquen Cc: Dan Williams , Pierre-Yves MORDRET , linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH] dmaengine: stm32-dma: fix residue calculation in stm32-dma Message-ID: <20190430171856.GW3845@vkoul-mobl.Dlink> References: <1553689316-6231-1-git-send-email-arnaud.pouliquen@st.com> <20190426121751.GC28103@vkoul-mobl> <6894b54e-651f-1caf-d363-79d1ef0eee14@st.com> <20190429051310.GC3845@vkoul-mobl.Dlink> <26fa7710-76cb-e202-a367-c2e2408b6808@st.com> <20190430082255.GP3845@vkoul-mobl.Dlink> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 30-04-19, 16:58, Arnaud Pouliquen wrote: > >> Hope that will help to clarify. > > > > Yes that helps, maybe we should add these bits in code and changelog.. > > :)I will update the comments and commit message in a V2 in this way > > > > And how does this impact non cyclic case where N descriptors maybe > > issued. The driver seems to support non cyclic too... > > Correct it supports SG as well, but double buffer mode is not used in > such case. Hw is programmed under IT for every descriptors : no > automatic register reloaded as in cyclic mode. We won't end up in the > situation depicted below. Okay sounds good then. Can you add a bit more of this in the code (this was very helpful) not as a fix but documentation so that people (or you down the line) will remember why this was done like this Thanks -- ~Vinod