Received: by 2002:a05:6500:1b8a:b0:1ef:a0f1:aef6 with SMTP id df10csp73537lqb; Sun, 10 Mar 2024 05:49:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6SpvWlWjkAcXycHMWm9YNxA6HN4gKK2a3SLhtyDQav14kDVIJQrS1vTl+BofU+UV7ftW3T101Yav4vZfHrWO7UTY6zBAdFxywCEEB1A== X-Google-Smtp-Source: AGHT+IE/r+zu1llwJ6SFHfTJz0JqUvHS4aEi5J+Qbfzqy1mt7p6hNChK3jryJNLDIhvD3FfUlrrQ X-Received: by 2002:a17:90a:8b0b:b0:29b:db64:7a01 with SMTP id y11-20020a17090a8b0b00b0029bdb647a01mr1453010pjn.26.1710074948680; Sun, 10 Mar 2024 05:49:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710074948; cv=pass; d=google.com; s=arc-20160816; b=cpc6UnlKWPacu0gOCxqFRfOxkaFlXdVLROPGzypua57yXXzr27tR/xFhXHP1hcXCmE hxw+mg2eQPZj/qxDkMgd/aJzSAxCeK3EOWCoHQ6uni2pda0cTrVhsTvYUt8LTD36JZOo t4Huxmfjq1wPNG95kh5JTMAMQDAgOQWnqmNPAU16TCBo1c+ZrH21RxwbE8Ll+u0i0jQr pcNBx2nbvmXQGm7uNYpnRsniNbafp1Vs9n2R9NlXyswIyPKntkHwROWsnmQqerj0G7C5 dQ0hW8ZRndumpnuBE5bCk1hxZ/9q4FZqD+TMqhU+Ggl1vA53Kvwr3Q50D2bapbcgAJlP M73w== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=3MP05RR+wbCQqXOr0sgjO6JV62/cP9unyj6X/qG6Ojo=; fh=yZS2g+QQKdMrQ3jorRH5H6dPNDM7GRj3yrDB9sYJ3mc=; b=cb1VyF6qJJeEcxi4RFAkTxVbyk88rDC/CpGGTWRPcSziT+MwJeiHYjGyKB93ORiXaG VJjL1txKBRSTHMFIalQ+NjjJBAR83OJZiMo9bxw48GyJjyuvJLWxvyGc3URsssjghngo zAwl+ClOfAOD2I039MNyqjX1WmR+fo8GDS0sa+vxVOB3tRG2vrFgWM2/5Wdk760MSU1B s4VcQ287/weNRZdUkBOjCXkVj3Svh5yet3PpLKlIOQbP9DVoff1Zw4ILgapMu/tR4wKo kmhq5PZC3BeCVuVVTj+PsVuOHlzgjOMZ9Yeu6v8ripJIoQkyW6JAsQRadHwJk0e4UkfT meYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=ttoxhuAU; arc=pass (i=1 spf=pass spfdomain=crapouillou.net dkim=pass dkdomain=crapouillou.net dmarc=pass fromdomain=crapouillou.net); spf=pass (google.com: domain of linux-kernel+bounces-98214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gb6-20020a17090b060600b0029ba39bff2esi5614731pjb.173.2024.03.10.05.49.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 05:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=ttoxhuAU; arc=pass (i=1 spf=pass spfdomain=crapouillou.net dkim=pass dkdomain=crapouillou.net dmarc=pass fromdomain=crapouillou.net); spf=pass (google.com: domain of linux-kernel+bounces-98214-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B07C281A0D for ; Sun, 10 Mar 2024 12:49:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7A932C18E; Sun, 10 Mar 2024 12:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="ttoxhuAU" Received: from aposti.net (aposti.net [89.234.176.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 472F724B34; Sun, 10 Mar 2024 12:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.234.176.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710074935; cv=none; b=b4OGbvvhVZ3wvhiIYHhsb0l+NT94GvPjaPlo6f+JZJbfqtkfhGQLLf89NaRwyvIyPkjqBKaT0ls9HYFSYz2KfjsBqdPZtYzpLBr3dkrHxBPraAwfihJ/zoScbCx45uu/D9tjsIqBTyiFu0KAdoNl5egx/kQwr39Q2tU+xlp4iJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710074935; c=relaxed/simple; bh=4WZpQTJ2FC4y6Xp4cZA98rKgeB5l/4qw3o6ywlolN/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HtSwGRGNdXtgVXJf0P9KESg6OW7OESSzO63K1DFRUQkV+jlLd55PY9MrghwNLuMnTMDWNUreKQk9yHA4PeTdBlfbbnKE3XGh3+N56lTL6f6T+mvdJ6P1AY+NJvnJffToZ6AmS5/751J1dLGPcPNG+TrdRggoEl81nAqHoZ2hx5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crapouillou.net; spf=pass smtp.mailfrom=crapouillou.net; dkim=pass (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b=ttoxhuAU; arc=none smtp.client-ip=89.234.176.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crapouillou.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crapouillou.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1710074925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3MP05RR+wbCQqXOr0sgjO6JV62/cP9unyj6X/qG6Ojo=; b=ttoxhuAUS6+ngXFZaEOsmMvJ9SGESgjp3LJpwJyYloA440908l3ZTN8L2EaWDJNf6eEHW8 KvUriPAWywZN95WcbPKCTaNJswgorMkKgnn/JB1c5uU/8O6oHiJbUM9MJMBMLQNIIljr1r zJnmTqxJB+Oz7iOFywn3b8s8tHqIepM= From: Paul Cercueil To: Jonathan Cameron , =?UTF-8?q?Christian=20K=C3=B6nig?= , Jonathan Corbet , Lars-Peter Clausen , Vinod Koul , Sumit Semwal Cc: 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, Paul Cercueil Subject: [PATCH v9 0/6] iio: new DMABUF based API Date: Sun, 10 Mar 2024 13:48:29 +0100 Message-ID: <20240310124836.31863-1-paul@crapouillou.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Jonathan, Here's the final-er version of the IIO DMABUF patchset. This v9 fixes the few issues reported by the kernel bot. This was based on next-20240308. Changelog: - [3/6]: - Select DMA_SHARED_BUFFER in Kconfig - Remove useless forward declaration of 'iio_dma_fence' - Import DMA-BUF namespace - Add missing __user tag to iio_buffer_detach_dmabuf() argument Cheers, -Paul 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/Kconfig | 1 + 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 + 11 files changed, 891 insertions(+), 17 deletions(-) create mode 100644 Documentation/iio/iio_dmabuf_api.rst -- 2.43.0