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: 14971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp434487vqb; Thu, 5 Oct 2023 09:58:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdCslMaoZFlIPt2HPOpdELkhSvwUXRD1NdXT5zTAstYi3I0A97iXuzcPRc6dR3Yrys3t/r X-Received: by 2002:a17:902:c952:b0:1c5:d8a3:8783 with SMTP id i18-20020a170902c95200b001c5d8a38783mr5023496pla.11.1696525115177; Thu, 05 Oct 2023 09:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696525115; cv=none; d=google.com; s=arc-20160816; b=iryD969x6/rVgYTx6FXfxKYfSlvqO8VRC+7vtN+LsVbIsWFmdoPmHAAqmJOxnXVSa7 gvwGZehn3CZZ1U27YrMAejmj28xYde9q4TBpoN3TkEXarLhPyU6EynMO31KswFWlhVcl vhsJKrySpvAXd18y4o87d+vZwp9FVUc4xdQJgDIMokhvUMSQ55dUm6XsdCt+O0K1Pa3J NrSw89UkjAFKQ8E+L6F/kObQDHuQdFOSHexqoFKVurAZBr/hcPFtJi+k3PT4f9ikk3B3 T/FA5bncPJT9NpRPLOuON5pD2HIIvZKaZnY3gmHKmwqjtBb1MwmePC/OGAIOky1FgIfo sTrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Z6JqOM2eFV5mUBkrVcLPsXsg66/mo6aYEktxPOQcjmw=; fh=c2RgRqokB2zvU/oRHw6mEIlTGUHe87dB95Gr8vBBQoM=; b=a3tOTJIjf2AUfBDzLTERZEcBibnGN/yA0zRjoqHQBwHOKMlf9ezljfTmbUbc4k/poN F1QwcyhXU7QR1qHhHJNMCmwzXoYSmreclFCQMbgdgNePRfhUjfHgyMpNSc3dgrwh7i8a lHIsPPTE/wOhXwET+VsK7NcRR/p+pGWuyfHx2vZkdbiDVyycmPAosIc/ZO8Y7W+8LVFb e/Cs8Ra/LdLy2vGM5BbSvVPS4BhATca0BhEMU04SlhA60uHGCS/6kymkx+VB/5/4Clt8 DbVLHDtK/BjZuMCimXoqY5Wu60FK7MCTcl72y79O4swuVieLcq7KH7hMYptmJitxOgov fSHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BEtXOqTT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h11-20020a170902680b00b001c3845d008csi227616plk.424.2023.10.05.09.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BEtXOqTT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7C42D8338171; Thu, 5 Oct 2023 09:58:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243292AbjJEQWm (ORCPT + 18 others); Thu, 5 Oct 2023 12:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241921AbjJEQQp (ORCPT ); Thu, 5 Oct 2023 12:16:45 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D57270F; Thu, 5 Oct 2023 09:02:40 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:58:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778935519390457421 X-GMAIL-MSGID: 1778935519390457421 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(-)