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: 14407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5842195vqi; Fri, 22 Sep 2023 13:15:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLYfvvFDi6x9Ox1CL8E7Z/lxCaP76zrrSVQJVNJxvPK/bSkNXVG07bfDY/N8MaKo+35tdN X-Received: by 2002:a17:90b:1916:b0:26b:c3f:1503 with SMTP id mp22-20020a17090b191600b0026b0c3f1503mr784434pjb.17.1695413743674; Fri, 22 Sep 2023 13:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695413743; cv=none; d=google.com; s=arc-20160816; b=fSt0e1JPrGil7+jO9pM8VzaevoVB9crxO5c3rOAY+bL5ZRgic2KVD1+T8S7WwWbeha Kw18Y101Neoqm3bDxqo07n1DbADXZxbtKEzXxHvk+HgzjKy6qCvPLZZzBfD/bANByH0Z Vemx8Jj+/14VnbHBJ1n3+UFuaYA05jyLS1dzakcGRsmJID7utzabvMZRppkg1/KG2aYP Az1WgyCzNs5JiEeRf4pismPNrqTmLrFXuduivPek1CBNaJl21VEN5pl/B55m8N+8Nskv +x+LIjzNYbdCaM0XkoRM3gzyyG7aoMTyoFjNrWnGipqubZSKTvSsWQ+sDhUxyZVhr1iA pAIQ== 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=LtnaaBXMrUjwOdzTGJujLzHqdroJGlyz68hcNRVGofM=; fh=tywAdliBLaC/RMgy7zSP3YxJOfCkdci4rwwkuNbi5gM=; b=adpASYJvgpmpH2zSU5EqPOmOqvzidiq87EV5ER/uwHWF/2UW9ukW0KXrS/uuIThnlF DrUYoRhrJkimzVdYgn8KAJ9KaSYKQBeSu/w80PzDtHg0X+u0OtyLVptsE7Vrxnpe3SoK PnRPl1qd82byNdFMcFLH0jVdyRXItcQdQujtOsZSPNhOY5gCf5SjRQ+M2Mnjg+4gYQ7R 7AJpVpiEnfI8hnkk+EAiBe+LtEKSd3gZIencwNMju7wZq4d1DsnEj8+iArB+IAXaLXKR 7ND3Xt1DtwBOhGtjMfv+UjVlufE04FBQe1OYqoaCEhXf30qrZtyJqGlifqH0DuIG2nLh Ddjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="DXn/2Ns1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cx3-20020a17090afd8300b0027367e0c931si6508406pjb.129.2023.09.22.13.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 13:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="DXn/2Ns1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 5A39B8408FAC; Fri, 22 Sep 2023 09:21:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbjIVQVP (ORCPT + 29 others); Fri, 22 Sep 2023 12:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbjIVQVL (ORCPT ); Fri, 22 Sep 2023 12:21:11 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 183C5196; Fri, 22 Sep 2023 09:21:01 -0700 (PDT) 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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:21:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777770162096498550 X-GMAIL-MSGID: 1777770162096498550 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(-)