Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216740/?format=api
{ "id": 2216740, "url": "http://patchwork.ozlabs.org/api/patches/2216740/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260327061704.3707577-25-hch@lst.de/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260327061704.3707577-25-hch@lst.de>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260327061704.3707577-25-hch@lst.de/", "date": "2026-03-27T06:16:56", "name": "[24/28] async_xor: use xor_gen", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "94e7ba85fdc5094fb32030906b1b0bc96479af64", "submitter": { "id": 82, "url": "http://patchwork.ozlabs.org/api/people/82/?format=api", "name": "Christoph Hellwig", "email": "hch@lst.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260327061704.3707577-25-hch@lst.de/mbox/", "series": [ { "id": 497693, "url": "http://patchwork.ozlabs.org/api/series/497693/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497693", "date": "2026-03-27T06:16:33", "name": "[01/28] xor: assert that xor_blocks is not call from interrupt context", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497693/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216740/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216740/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18894-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=nELsudoi;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18894-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:7c80:54:3::133\"", "lists.ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=lst.de", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=nELsudoi;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=bombadil.srs.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=batv+7b1de7ca9b09bfe890a7+8251+infradead.org+hch@bombadil.srs.infradead.org;\n receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhrDY2CYSz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 17:23:08 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhrDX4zJdz3dgN;\n\tFri, 27 Mar 2026 17:23:08 +1100 (AEDT)", "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fhrDX0fZSz3ddX\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 17:23:08 +1100 (AEDT)", "from\n 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at\n ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost)\n\tby bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w60ar-00000006nnW-1SZC;\n\tFri, 27 Mar 2026 06:22:53 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774592588;\n\tcv=none;\n b=M7tk0L3j/8kF0PcNlWR+1t+PSZierMl1d8ThXJM+U6RB5dfgnAQ+Ktyx+J9UO2xj0na9F7pWXmf5QAxPS6nfysScO6E01HuLpCMcDZ8USYRQ2q+eAW6AHhMrrwxHtliddHEb5jSkfC1sJ6rBTkX5zoqf+mOTAxHGHgGdsvgsFl3xotVE93IhbKAWR4FlzJYroLypEttqgv8hoUrxavB9DmYenxxsbFRTy/dL/Dy8i4l9CZmseYSLRi6vM37x31CKxFZdMG3paI6/lFLfohhhX3/1nFgfhh7/RfW43A2vCSl20PXGfSUlJ+vYYFzeqZ8S5+wqZRlFdCwbUPcdThSqbA==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774592588; c=relaxed/relaxed;\n\tbh=LPpvndNjqPvjZburtt7bAObV12ltu7OwMomHBwz06KI=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Eq9LHOO8JeMFfwoQuFqiNmEB0xyqXNiAM3AreZQhD0CfF4TZwV9UqrcXe6wPYcdrvfpdXGEdWjg66ft0RRzeG9yUftwf13GnRmkA1OJN3OprFwm+ahhYF7yNaboo7oVqzwazo/M/pvKQ3p0s+UkyRum80RytruMGpHyab4a+IbcoRc8sFQH0OxAVKOZaMkIWhjoP8HxWDf2lQN7l5nPl/UUL2FoqcP+nlwPX7CT1rnreeUjPw949JXergLS8qTO7U4NDg8tPpQPCWoVGP1oi2SooUeIeWjxwagWWtk4WvQdpqK9/ParlpRpQLhhv6mP5FJGwrDLcaZsXr/yrLdDx9w==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=lst.de; dkim=pass (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=bombadil.20210309 header.b=nELsudoi; dkim-atps=neutral;\n spf=none (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=batv+7b1de7ca9b09bfe890a7+8251+infradead.org+hch@bombadil.srs.infradead.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=bombadil.srs.infradead.org", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding:\n\tMIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender\n\t:Reply-To:Content-Type:Content-ID:Content-Description;\n\tbh=LPpvndNjqPvjZburtt7bAObV12ltu7OwMomHBwz06KI=; b=nELsudoiq39iJSSqpf832bSJDg\n\tI6S//tDtbdeFt/eilh4TUTXIkt6oPf/0JjRXY859Bcq2+cCm4Q4TTbB1u3SYtCW2jNwVy6/qyYsVq\n\tRdH23Il6n8Ke+CIKgQDoBOXZmitFXISqk7VtzTn97CFmO4kVve0RanQfLd/pRuCFimv5zdA5mi1ki\n\tI0XGn5udXSuXD7jIIosvBn/FBFc1/LWEJlxEWNRMqI3iLj6z3I0u2pUzrGmTzyAUN6/DvA3JTYa1T\n\t605z790L/bigc1X6Fg4lfEvQB03hIqvScaJtL4l3hzW8iuwsxF3wNWiWMw6KP5jcqon0stMHkEAa2\n\tXtCV3IKQ==;", "From": "Christoph Hellwig <hch@lst.de>", "To": "Andrew Morton <akpm@linux-foundation.org>", "Cc": "Richard Henderson <richard.henderson@linaro.org>,\n\tMatt Turner <mattst88@gmail.com>,\n\tMagnus Lindholm <linmag7@gmail.com>,\n\tRussell King <linux@armlinux.org.uk>,\n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will@kernel.org>,\n\tArd Biesheuvel <ardb@kernel.org>,\n\tHuacai Chen <chenhuacai@kernel.org>,\n\tWANG Xuerui <kernel@xen0n.name>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\t\"Christophe Leroy (CS GROUP)\" <chleroy@kernel.org>,\n\tPaul Walmsley <pjw@kernel.org>,\n\tPalmer Dabbelt <palmer@dabbelt.com>,\n\tAlbert Ou <aou@eecs.berkeley.edu>,\n\tAlexandre Ghiti <alex@ghiti.fr>,\n\tHeiko Carstens <hca@linux.ibm.com>,\n\tVasily Gorbik <gor@linux.ibm.com>,\n\tAlexander Gordeev <agordeev@linux.ibm.com>,\n\tChristian Borntraeger <borntraeger@linux.ibm.com>,\n\tSven Schnelle <svens@linux.ibm.com>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tAndreas Larsson <andreas@gaisler.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tAnton Ivanov <anton.ivanov@cambridgegreys.com>,\n\tJohannes Berg <johannes@sipsolutions.net>,\n\tThomas Gleixner <tglx@kernel.org>,\n\tIngo Molnar <mingo@redhat.com>,\n\tBorislav Petkov <bp@alien8.de>,\n\tDave Hansen <dave.hansen@linux.intel.com>,\n\tx86@kernel.org,\n\t\"H. Peter Anvin\" <hpa@zytor.com>,\n\tHerbert Xu <herbert@gondor.apana.org.au>,\n\tDan Williams <dan.j.williams@intel.com>,\n\tChris Mason <clm@fb.com>,\n\tDavid Sterba <dsterba@suse.com>,\n\tArnd Bergmann <arnd@arndb.de>,\n\tSong Liu <song@kernel.org>,\n\tYu Kuai <yukuai@fnnas.com>,\n\tLi Nan <linan122@huawei.com>,\n\t\"Theodore Ts'o\" <tytso@mit.edu>,\n\t\"Jason A. Donenfeld\" <Jason@zx2c4.com>,\n\tlinux-alpha@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tloongarch@lists.linux.dev,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-riscv@lists.infradead.org,\n\tlinux-s390@vger.kernel.org,\n\tsparclinux@vger.kernel.org,\n\tlinux-um@lists.infradead.org,\n\tlinux-crypto@vger.kernel.org,\n\tlinux-btrfs@vger.kernel.org,\n\tlinux-arch@vger.kernel.org,\n\tlinux-raid@vger.kernel.org", "Subject": "[PATCH 24/28] async_xor: use xor_gen", "Date": "Fri, 27 Mar 2026 07:16:56 +0100", "Message-ID": "<20260327061704.3707577-25-hch@lst.de>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260327061704.3707577-1-hch@lst.de>", "References": "<20260327061704.3707577-1-hch@lst.de>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-SRS-Rewrite": "SMTP reverse-path rewritten from <hch@infradead.org> by\n bombadil.infradead.org. See http://www.infradead.org/rpr.html", "X-Spam-Status": "No, score=0.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tHEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE\n\tautolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "Replace use of the loop around xor_blocks with the easier to use xor_gen\nAPI.\n\nSigned-off-by: Christoph Hellwig <hch@lst.de>\n---\n crypto/async_tx/async_xor.c | 34 ++++++++++------------------------\n 1 file changed, 10 insertions(+), 24 deletions(-)", "diff": "diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c\nindex 2c499654a36c..84458375b202 100644\n--- a/crypto/async_tx/async_xor.c\n+++ b/crypto/async_tx/async_xor.c\n@@ -103,7 +103,6 @@ do_sync_xor_offs(struct page *dest, unsigned int offset,\n {\n \tint i;\n \tint xor_src_cnt = 0;\n-\tint src_off = 0;\n \tvoid *dest_buf;\n \tvoid **srcs;\n \n@@ -117,23 +116,12 @@ do_sync_xor_offs(struct page *dest, unsigned int offset,\n \t\tif (src_list[i])\n \t\t\tsrcs[xor_src_cnt++] = page_address(src_list[i]) +\n \t\t\t\t(src_offs ? src_offs[i] : offset);\n-\tsrc_cnt = xor_src_cnt;\n+\n \t/* set destination address */\n \tdest_buf = page_address(dest) + offset;\n-\n \tif (submit->flags & ASYNC_TX_XOR_ZERO_DST)\n \t\tmemset(dest_buf, 0, len);\n-\n-\twhile (src_cnt > 0) {\n-\t\t/* process up to 'MAX_XOR_BLOCKS' sources */\n-\t\txor_src_cnt = min(src_cnt, MAX_XOR_BLOCKS);\n-\t\txor_blocks(xor_src_cnt, len, dest_buf, &srcs[src_off]);\n-\n-\t\t/* drop completed sources */\n-\t\tsrc_cnt -= xor_src_cnt;\n-\t\tsrc_off += xor_src_cnt;\n-\t}\n-\n+\txor_gen(dest_buf, srcs, xor_src_cnt, len);\n \tasync_tx_sync_epilog(submit);\n }\n \n@@ -168,11 +156,10 @@ dma_xor_aligned_offsets(struct dma_device *device, unsigned int offset,\n *\n * honored flags: ASYNC_TX_ACK, ASYNC_TX_XOR_ZERO_DST, ASYNC_TX_XOR_DROP_DST\n *\n- * xor_blocks always uses the dest as a source so the\n- * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in\n- * the calculation. The assumption with dma engines is that they only\n- * use the destination buffer as a source when it is explicitly specified\n- * in the source list.\n+ * xor_gen always uses the dest as a source so the ASYNC_TX_XOR_ZERO_DST flag\n+ * must be set to not include dest data in the calculation. The assumption with\n+ * dma engines is that they only use the destination buffer as a source when it\n+ * is explicitly specified in the source list.\n *\n * src_list note: if the dest is also a source it must be at index zero.\n * The contents of this array will be overwritten if a scribble region\n@@ -259,11 +246,10 @@ EXPORT_SYMBOL_GPL(async_xor_offs);\n *\n * honored flags: ASYNC_TX_ACK, ASYNC_TX_XOR_ZERO_DST, ASYNC_TX_XOR_DROP_DST\n *\n- * xor_blocks always uses the dest as a source so the\n- * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in\n- * the calculation. The assumption with dma engines is that they only\n- * use the destination buffer as a source when it is explicitly specified\n- * in the source list.\n+ * xor_gen always uses the dest as a source so the ASYNC_TX_XOR_ZERO_DST flag\n+ * must be set to not include dest data in the calculation. The assumption with\n+ * dma engines is that they only use the destination buffer as a source when it\n+ * is explicitly specified in the source list.\n *\n * src_list note: if the dest is also a source it must be at index zero.\n * The contents of this array will be overwritten if a scribble region\n", "prefixes": [ "24/28" ] }