Received: by 2002:a05:6500:1b8a:b0:1ef:a0f1:aef6 with SMTP id df10csp70944lqb; Sun, 10 Mar 2024 05:42:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUqMidOfpZjgPrbFEHvJrL+pivhQJG1vJeNjXQnVLokJv0BGuglfnsDz5mFhSoKeJCnp5spcr5NIyEah9lVYsps/91lxtWj+KNAZfKjg== X-Google-Smtp-Source: AGHT+IEF8ZVYcM9SPSWw0r4h6QijS959RCdseZC8v95VOPKaN+aJYULEWQUMtm5hgoWxXdTuxkv/ X-Received: by 2002:a0c:cdce:0:b0:690:af37:6fe8 with SMTP id a14-20020a0ccdce000000b00690af376fe8mr6180511qvn.3.1710074524142; Sun, 10 Mar 2024 05:42:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710074524; cv=pass; d=google.com; s=arc-20160816; b=wXRk/xmUxEffXP1vwsSOGvX4ngRup5SjpmluAOyeyDmAJD8rGCy+ckZNsPHIotdSFK G/3+CBUeLPVt5O7llbP+j6LMFwa+bfJu7cu7UhLCatdkhWF1Iwj9yXQrZKpgwimj8syO OdR8u1UtR7Kfr5r4AcwnY/mRzPhJXxnq/WeE/sjgPK0NSwKUb27umMPLgibnzjTj77v9 sKTfUhxm63u8Al6Q84vrccpcqeLU2CHCChaLDB+RunbL8C3Q9qnp9BDv9H0wnz4vBPja W1qjAZjVmb7cHpxaZ0tzNUusOQbKDdwXhgl45ddyIk1UUl5ZgBiQMFLtIh7oO06ovCMU iw3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=a2LmyLdcFqAwRAIrYZuLAF8VT/ErxleIaPBoR+bFGEk=; fh=W6hk0xtF5g1YMV2i8Ae4BnTpCD/wU4Sz69JHVB1O1co=; b=ZQcfh2qBHnpMcehuz2jI9o4/tDxtWBbaVzcXGHNVvgrP+bStFo6ppKDt2PpdU/0eVS iTHz7JUMy2cGGyG8PypZdJRMSzsseKNwdXjm88jI2DBex4o3p6XMTds+hG8Wa1+RklXH QQG2/2/UpeglcshUWtAZUmWQV7SKvGxTDy1GVGgjLEeNpnfjBqytjcLiyJSG9O+eDm6F Th0UaxfrwhlIPiPR7XQ1JtgQqFfj4L5b14cNIYXh4AIKmo5rg+02TnhYd8fg9aep6MXq 1/v+a101LqkbjoltiK+gDfkUvNZW/wUwlgtMgh3Jg9AVFxIJ6L16zyjDsfPOgXi90Qx6 VC0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hn884P6N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id im10-20020a056214246a00b0068f8d41359dsi3349212qvb.267.2024.03.10.05.42.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 05:42:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hn884P6N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98212-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C3E231C210B3 for ; Sun, 10 Mar 2024 12:42:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03F8E28DDF; Sun, 10 Mar 2024 12:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Hn884P6N" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 117A916FF29; Sun, 10 Mar 2024 12:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710074511; cv=none; b=uY4JQMkEoNA4HJ9euNwZqTVC/rxYSqcM4XVZYybbp9CGjrTZ84/eWQgmmqJBkSnApyCht3OVtTVgMazQ81wfWtFy6eHXBcygKQ4gz6AguU4cpnjETVPOHJYG5uN3GCUhHRpX9en2/y5sVa6CocARCD4XGeWcCLdUuZz13r8BhfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710074511; c=relaxed/simple; bh=T2hnsj3TXxdQauhbrydhvVMlAp4FlGMF27ltKRC1xko=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DsbXEZ/R/HR1oXl2fEJxTmwr1FlinW7og1MUWy47uGdAj6Z5T6o95WDatU8UZcRboBf/URWDaBmHbVbsjM/Vn3LL/CG26kv7zypCirzWC/E5ZEwSJ02iHzm4W0XdPtf/Can9TUOpvbcs+SOkeW9/E2hMqi12nUCv9e4x6DxGjW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Hn884P6N; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DD6CC433F1; Sun, 10 Mar 2024 12:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710074510; bh=T2hnsj3TXxdQauhbrydhvVMlAp4FlGMF27ltKRC1xko=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Hn884P6NYCntbYCwhViso8xYitvz/SDSeAYZDfK/+/NNFWBfgkkuxX3gzjYVAT4X2 75YA8TLBgLTHDzXhVe9CfMjGsat0po8S88pq9OfxKLhWElwY7q8w398qcNRr7wwN5g L5w8HVcrSrqFvtdBU1pSnG4cz71f0xxJMCuP9M5TjxD/GmmO3G4A3kP2ex7IuhABAK uY76WFjb0LdEG8cy+J2DWRuRgFQhs8QF02ONHzFh4Uhfm5xBQ569mHBp6as4id/fWy eCUPv+d/UamjMG0dqiKxynXZjHK2WenzLrZnNFt0PLWrVd3K/mhz/nx/8KLipkUqLE tljcQNovP1rgw== Date: Sun, 10 Mar 2024 12:41:33 +0000 From: Jonathan Cameron To: Paul Cercueil Cc: Christian =?UTF-8?B?S8O2bmln?= , Jonathan Corbet , Lars-Peter Clausen , Vinod Koul , Sumit Semwal , Nuno Sa , Michael Hennerich , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH v8 0/6] iio: new DMABUF based API Message-ID: <20240310124133.683e8853@jic23-huawei> In-Reply-To: <20240308170046.92899-1-paul@crapouillou.net> References: <20240308170046.92899-1-paul@crapouillou.net> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 8 Mar 2024 18:00:40 +0100 Paul Cercueil wrote: > Hi Jonathan, > > Here's the final(tm) version of the IIO DMABUF patchset. > > This v8 fixes the remaining few issues that Christian reported. > > I also updated the documentation patch as there has been changes to > index.rst. > > This was based on next-20240308. > > Changelog: > > - [3/6]: > - Fix swapped fence direction > - Simplify fence wait mechanism > - Remove "Buffer closed with active transfers" print, as it was dead > code > - Un-export iio_buffer_dmabuf_{get,put}. They are not used anywhere > else so they can even be static. > - Prevent attaching already-attached DMABUFs > - [6/6]: > Renamed dmabuf_api.rst -> iio_dmabuf_api.rst, and updated index.rst > whose format changed in iio/togreg. > > Cheers, > -Paul Given nature of the build bug issues reported, I'm guessing you never built this as a module :( Not sure how one instance of a missing user marking got through but also easy to fix. Anyhow, no need to wait before sending a v9 with those sorted. 0-day does it's job again - even better is that it's whilst it's still your problem and not mine :) Jonathan > > Paul Cercueil (6): > dmaengine: Add API function dmaengine_prep_peripheral_dma_vec() > dmaengine: dma-axi-dmac: Implement device_prep_peripheral_dma_vec > iio: core: Add new DMABUF interface infrastructure > iio: buffer-dma: Enable support for DMABUFs > iio: buffer-dmaengine: Support new DMABUF based userspace API > Documentation: iio: Document high-speed DMABUF based API > > Documentation/iio/iio_dmabuf_api.rst | 54 ++ > Documentation/iio/index.rst | 1 + > drivers/dma/dma-axi-dmac.c | 40 ++ > drivers/iio/buffer/industrialio-buffer-dma.c | 181 ++++++- > .../buffer/industrialio-buffer-dmaengine.c | 59 ++- > drivers/iio/industrialio-buffer.c | 462 ++++++++++++++++++ > include/linux/dmaengine.h | 27 + > include/linux/iio/buffer-dma.h | 31 ++ > include/linux/iio/buffer_impl.h | 30 ++ > include/uapi/linux/iio/buffer.h | 22 + > 10 files changed, 890 insertions(+), 17 deletions(-) > create mode 100644 Documentation/iio/iio_dmabuf_api.rst >