Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2733956imj; Mon, 11 Feb 2019 07:41:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IZtsqxnzI6+r54W9GxVky70FneRjwBeqs4gSS4iiDXh2UNn8gT9ZOgDmC1jzWlRS5oOjXmv X-Received: by 2002:a63:fb0a:: with SMTP id o10mr18022744pgh.259.1549899707373; Mon, 11 Feb 2019 07:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899707; cv=none; d=google.com; s=arc-20160816; b=h+LCru1PhEGsfgcQp5cmngWuOwdETi2oKjTlrHoZFAFvfYUPcgcbNeejcoouQSXfN3 U9dNmeHU+rjiucZkkhfrKn4Ty90J3yr+ICl9ocCGTiTlijwLCaLiorhxxOnx/R8f5K62 k5e406Rc6yJOryYRns5CklmC1E5C3CAJjEly7a+1s9SgZN0Du6aOsQ4AvzYsGE9ai5JP IpMl6uA/AwNnxBZfFAdUgsGPolQAgcnD+pFUVTvYxDjO+pipfZcz2NhPqqSDcTeXjWnF WvDRAfCBUGRuHN8nXh6i9tu+7c3hl5vUvhnljsbriQDM+HIJWcXtVvg1kZeM2/2De3am wrRA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=hvyHMKOev6FOiuzJyfxQiN1sCsnX9ZUfDprRJCIToQo=; b=D6hgCYtO5JujmP38fld+yr0AvVN3HXBRW1EXqvJsk76sE/Q+l4GeH7n2SSHqQIdwcD 8m6R9+3BsnYnq7g9rQtLocKqYoYQAMeWgAl8q39KDkXvipSfpCdMG2DVRMmaU7hVLaWJ NkLNSCrhFlQgBqVz/wNASrUvdXliDouMGwDx0rnBNH5uMjOzyG8nFV3DhnOgUuwwykh9 jnBdW7WPpFod/HIzmuZTlKOTmVRBg1DXUpfQhWkbTVRKg0C58Rbv8LGkPNaN11Nonile 3ttYCOp1JAW+d+DKQsYOPpWX5y2Kq9bxxY8d0ja2Fk0Hb+Ecsudz0wRvhJPaQOxUa+3y Qa4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 133si10482350pfw.64.2019.02.11.07.41.30; Mon, 11 Feb 2019 07:41:47 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388517AbfBKPkm (ORCPT + 99 others); Mon, 11 Feb 2019 10:40:42 -0500 Received: from ms.lwn.net ([45.79.88.28]:46220 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388426AbfBKPkk (ORCPT ); Mon, 11 Feb 2019 10:40:40 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E7E97130D; Mon, 11 Feb 2019 15:40:39 +0000 (UTC) Date: Mon, 11 Feb 2019 08:40:38 -0700 From: Jonathan Corbet To: Federico Vaga Cc: Vinod Koul , , , Subject: Re: [PATCH] doc:dmaengine: clarify DMA desc. pointer after submission Message-ID: <20190211084038.0647430b@lwn.net> In-Reply-To: <20190208153038.23272-1-federico.vaga@cern.ch> References: <20190208153038.23272-1-federico.vaga@cern.ch> Organization: LWN.net X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Feb 2019 16:30:38 +0100 Federico Vaga wrote: > It clarifies that the DMA description pointer returned by > `dmaengine_prep_*` function should not be used after submission. > > Signed-off-by: Federico Vaga > --- > Documentation/driver-api/dmaengine/client.rst | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/driver-api/dmaengine/client.rst b/Documentation/driver-api/dmaengine/client.rst > index fbbb2831f29f..d728e50105eb 100644 > --- a/Documentation/driver-api/dmaengine/client.rst > +++ b/Documentation/driver-api/dmaengine/client.rst > @@ -168,6 +168,13 @@ The details of these operations are: > dmaengine_submit() will not start the DMA operation, it merely adds > it to the pending queue. For this, see step 5, dma_async_issue_pending. > > + .. note:: > + > + After calling ``dmaengine_submit()`` the submitted transfer descriptor > + (``struct dma_async_tx_descriptor``) belongs to the DMA engine. > + Consequentially, the client must consider invalid the pointer to that > + descriptor. > + > 5. Issue pending DMA requests and wait for callback notification > > The transactions in the pending queue can be activated by calling the Applied to the docs tree, thanks. jon