From patchwork Fri Sep 22 16:20:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 13396005 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9A940CD4844 for ; Fri, 22 Sep 2023 16:21:34 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=w3qyH+L093O2tostaZCdgS504z2pRmD1DrjmxYFrAm4=; b=ZN40UXp6epfZBF pTmI/Pdgrd9Vx0B8oyQ4Pnl2KKO/t1Uc4gVRCIyKHFChuYITYcNstu4lv90eDN1WWtYPAa04T+3/i Z9zQLW0ezBvCDq9dpDOJtiQ29gFWJCxy/A/NwcttNrzG5vQBotDz0Qr6D463ABIs5PaG+b7MaECR4 M9HoZ369zA/X5wFj/ZZSTzztY6NAjaUsgYyw+Cknd/6iOtYflQxwIYK2zYjwt89eLjyHKiJZ+086Q laHfjj6UVfBsmcyfcM0HUyl98hX4k5C/ZXR4L38jJa6HB/fu+/y2BiQOT2Dp458TOJIA9XcpKrrcd 628RrFWtzoCzbCH2MSdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjity-009OeV-0Q; Fri, 22 Sep 2023 16:21:10 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjits-009Od0-0Q for linux-arm-kernel@lists.infradead.org; Fri, 22 Sep 2023 16:21:08 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id D3292E0008; Fri, 22 Sep 2023 16:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695399660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LtnaaBXMrUjwOdzTGJujLzHqdroJGlyz68hcNRVGofM=; b=DXn/2Ns1mMtSpdmx95H0OoN/ZghQfcUYhIGE6D5r8veA5yyintE3PQ4+BpNoe2AMdq79e0 mwn9irrYABdPqdVv1/isscoSzixv6UbJ0MFg9rXl+0yBDhR7+ztDuIjEsKLfFC2FpPoz2U WwhE1noZ7mg4qdxmsiar37zqeZv38UBD27aKsFQtP8dTqGKT4yOOHTSBbIhIXvlhWo9rHN HJ/p7/PQeYmetD2N4iEPjrG5LwzZKrGTgbTasj1XY07z1/+zzUiZzsGB58CWaoayYvicZ0 ZSPA2zlnac2gQCFLYQzz3sfH6HHJphcHGO3NxeGKPb7wjOzYPLQNERpWvDx+lg== From: Miquel Raynal To: Lizhi Hou , Brian Xu , Raj Kumar Rampelli , Vinod Koul , Michal Simek Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , , Miquel Raynal Subject: [PATCH v2 0/2] dmaengine: xdma: Cyclic transfers support Date: Fri, 22 Sep 2023 18:20:54 +0200 Message-Id: <20230922162056.594933-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230922_092104_312420_16FF9064 X-CRM114-Status: UNSURE ( 9.51 ) 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 Hello, Following the introduction of scatter-gather support of Xilinx's XDMA IP in the Linux kernel, here is a small series adding cyclic transfers. The first patch is a preparation patch to ease the review of the second one which actually adds cyclic transfers support. Thanks, Miquèl Changes in v2: * Rebased on top of v6.6-rc1 * Removed the if (!state) superfluous check. * Address a kernel test robot report (unitialized variable in error case) * Simplify the convoluted logic when filling the hardware descriptors Miquel Raynal (2): dmaengine: xilinx: xdma: Prepare the introduction of cyclic transfers dmaengine: xilinx: xdma: Support cyclic transfers drivers/dma/xilinx/xdma-regs.h | 2 + drivers/dma/xilinx/xdma.c | 178 +++++++++++++++++++++++++++++++-- 2 files changed, 172 insertions(+), 8 deletions(-)