From patchwork Thu Oct 5 16:02:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 13410272 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 8E1CAE9271B for ; Thu, 5 Oct 2023 16:03:18 +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=xYsrBy1D0WEtmj6iOkDIpRpd2CG12nKj2a7Nxtwm814=; b=EKmbboqcLPTscZ VYdNSxhAcDzI1RcwdXwx/JSdJKRfavsz48sm0FLLEwe2oBh5HdgqYNm88aYVA7OXBvNr891xpzrrm Hh0RpDb89tCXFxh7i9aJg25sMwbTk0i+kJuHB1pMIbJEK08wH4BZNlv5/Wkewto0Enx+2JZZlsrId pLdCGMQ4sZw4FptX/t4pPGTA4RtZ+yfd12yO1uD6wD39Z9le+oiss0dhFATNG2AJM6Qd2Rm5Adilr vaP0x7ACCz4WTyap8dhLEYr4231CfxmDcbU9kXMXzGKtO26aaqEXUPMWm3KnXSGIpunrttSXtNz3l sKfSczI0q4fX3FI0HN1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoQoH-003zAL-0s; Thu, 05 Oct 2023 16:02:45 +0000 Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoQoD-003z8r-1n for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 16:02:43 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id C80341BF205; Thu, 5 Oct 2023 16:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696521758; 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=Z6JqOM2eFV5mUBkrVcLPsXsg66/mo6aYEktxPOQcjmw=; b=BEtXOqTTjTqvxrq8Lto8Q+YrGtJktXXzjEMkMHpnNvLm9pQP2K424MU4YyYSPrWZ0TV6nR 1WIso5QhK/YNkXW1RmBZaQK93XkRmSwrxRd8gJZInP+khv2C6uSlpVJsY99OaSyOsoximv LYX6ga8i6Da6sFNTctTJAmfw0xSemqkz4EJGJyT4RDfAt8awJDBOfqSwv8dGPrEROgmO2J r86Sxt2Q1q6veaCzm0Ow6Np4dUl02q82GPdS5wmN8I0WDk/2ehOEQfZW9AT8Z5tHKkFiC9 90idILFhqy5vMwfXCUDHg15mlAtDVQ7gG3Xs94LX7G91wCIAvVwGi/3tFo4p4Q== 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 , linux-kernel@vger.kernel.org, Miquel Raynal Subject: [PATCH v3 0/3] dmaengine: xdma: Cyclic transfers support Date: Thu, 5 Oct 2023 18:02:34 +0200 Message-Id: <20231005160237.2804238-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-20231005_090241_868531_9F004B4D X-CRM114-Status: UNSURE ( 9.87 ) 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 v3: * Fixed the kdoc: missing 'cyclic' description in xdma_free_desc(). Changes in v2: * Rebased on top of v6.6-rc1 * Removed the if (!state) superfluous check. * Address a kernel test robot report (uninitialized variable in error case) * Simplify the convoluted logic when filling the hardware descriptors Miquel Raynal (3): ASoC: soc-generic-dmaengine-pcm: Fix function name in comment 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 | 179 ++++++++++++++++++++++++-- sound/soc/soc-generic-dmaengine-pcm.c | 4 +- 3 files changed, 175 insertions(+), 10 deletions(-)