From patchwork Mon Nov 1 18:08:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Larumbe X-Patchwork-Id: 12596959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12E08C433EF for ; Mon, 1 Nov 2021 18:32:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC32460F42 for ; Mon, 1 Nov 2021 18:32:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DC32460F42 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alumnos.upm.es Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZBhFEne9vFCaQIXuG/NdHwCEyLnUfYtKeQPUVqsxgPA=; b=uZ8C2j6voGskBV 4MUMvjEPxQwzhogMMMl0zEsn+aq6VYZ5k1UN3QILgX88srwfXqB0JCEsDXjmxSeAq3ibpEzR6vqpP tOlq9vtCH4tJQr55VBu3aSOOBOsf2AacJNvYsFl00aw740T9vTRZvXgsDZQJ87K9fB8iFlUkzXZNH ygFahDtEVXM0u84pj6Enq39sGFgT+0dd1KRcYLns8XguWzGrgA4ekadRYIikkAzhi8me64ng6HShj 4okxVC2pUvaouydHuWBr+qcpzIfZk9p3xEgWKRdnDwwwRXeqoZGFbnzjBg+wU/S8ZVwO8RPgCy495 Rd8/Sv3gHElAeUj7EPPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhc5L-00H0wx-J1; Mon, 01 Nov 2021 18:31:07 +0000 Received: from neon-v2.ccupm.upm.es ([138.100.198.70]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhc5I-00H0wX-0C for linux-arm-kernel@lists.infradead.org; Mon, 01 Nov 2021 18:31:06 +0000 Received: from localhost.localdomain (62-3-70-206.dsl.in-addr.zen.co.uk [62.3.70.206] (may be forged)) (user=adrianml@alumnos.upm.es mech=LOGIN bits=0) by neon-v2.ccupm.upm.es (8.15.2/8.15.2/neon-v2-001) with ESMTPSA id 1A1I8fSN016585 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 1 Nov 2021 18:08:53 GMT From: Adrian Larumbe To: vkoul@kernel.org, dmaengine@vger.kernel.org Cc: michal.simek@xilinx.com, linux-arm-kernel@lists.infradead.org, Adrian Larumbe Subject: [PATCH 0/3] Add support for MEMCPY_SG transfers Date: Mon, 1 Nov 2021 18:08:22 +0000 Message-Id: <20211101180825.241048-1-adrianml@alumnos.upm.es> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20210706234338.7696-1-adrian.martinezlarumbe@imgtec.com> References: <20210706234338.7696-1-adrian.martinezlarumbe@imgtec.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211101_113104_354583_2D2EB9FF X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bring back dmaengine API support for scatter-gather memcpy's. Changes in patch v2: * Expanded API function documentation to elaborate on its semantics, limitations and corner case behaviour. * Broke the patch series into three different ones: documentation, core API change and consumer driver v1 - https://lore.kernel.org/dmaengine/20210706234338.7696-1-adrian.martinezlarumbe@imgtec.com Adrian Larumbe (3): dmaengine: Add documentation for new memcpy scatter-gather function dmaengine: Add core function and capability check for DMA_MEMCPY_SG dmaengine: Add consumer for the new DMA_MEMCPY_SG API function. .../driver-api/dmaengine/provider.rst | 23 ++++ drivers/dma/dmaengine.c | 7 + drivers/dma/xilinx/xilinx_dma.c | 122 ++++++++++++++++++ include/linux/dmaengine.h | 20 +++ 4 files changed, 172 insertions(+) base-commit: e0674853943287669a82d1ffe09a700944615978