From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 D28C2F36BA6 for ; Fri, 10 Apr 2026 03:19:56 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fsMVg2Mznz2yZ6; Fri, 10 Apr 2026 13:19:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775791195; cv=none; b=PnU6Obvy+iGMdagHMSRpNJGWAEj6a60cC3gY2jwnRR09HMKM6agiSSFyX2p+9mgx4XryV8wVJ1uIHsRucEYwa/aUj9HvYRAe3x1MpPraxoO767FBn1aEVYOoU7fjYtL6Rd6OP6YWwcbNshAW5EJGqWGQJ+Juytee3ph07flsX3siA7Ty56a2HdfGAkHJZCeFOjMP7lCf2U97Avi5ricmYQbSvkjGLNV//R9KdYjHlx/cWkQoe7ZPAnHKmFskwC/ACrrtxigkqNVcv1OxID1cdAL0JCpFIFKRUxKDvYcdE0DEO1Z/5TIAr1eGfY63J4PtU/+YBuDHUkgQb+uBetM+lg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775791195; c=relaxed/relaxed; bh=zuI9CuAq4ouP3xdUoAp+vg+3Srv0NooAubzTfiX0RTg=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=YOdWMeOXaJ+4l1V9HJQ8t0k+o0AmOBPkhko5mxGwtUgwSoRD25vTamrizQOl9WKC6+blAECZKS3hhiCUOEDy+DFCyrqxyuW6UIqo/1lKMVl9QbsBeCvGNUOBJvgkV/Ux3dYz+fm+le85yTzF2t4S/WxIOPH585gRg+x3Pfwip4V/RzW0H2ELkIndszn7ZctSv/M059eWAWc/YqYzSKDRvH7MEtXTp6rYfXO2HSUsUEpEfZVJRBB497w4QwLFBX3dPjGv7Ot+x78uBu/n4AQy/VFe/62/oY2mnto19/kcbt7RYqxLjy030u/WuVda7H8cBUqrYLZXkgT+l2UGGZj8ig== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mdYIM+3n; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=djbw@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=mdYIM+3n; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=djbw@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fsMVf38Fkz2yRl for ; Fri, 10 Apr 2026 13:19:54 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id A3716444F9; Fri, 10 Apr 2026 03:19:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A35C1C4CEF7; Fri, 10 Apr 2026 03:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775791191; bh=++Koq39UWrgs6Y9/teNpfuGX4Prd7yZehxjZlfBpaLk=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=mdYIM+3nOOfJk2sQndWIVe1crpn+qIFglFUaJi6YUZ8om+pF74JbkoMG1pCSpEb9w XY42HnmovukKhj85guOzmyhoPciXUmwPx7036BzxDj+GBwDX7w8ZX/kQj6Kf75C9nQ yMJOxpzFMvk+DFq2q3tbouAiWajtfDS+AXyxjQFI3HFmtdEmAwU/TRZgmOQyhKh0dz oTEcDPh4RcJYLV/DB6MyHh1cNOYj4HnTWHBSTgpco77/7Mk4f7CQSMgdwxNaeolZeG 11Id3MhuCNF2BddA3SZqi8zEZAyyZSbKwJdKtgyQMtKdIjBxiedoSXRHs0s+vuBPie fHhNTH/TVHimw== Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfauth.phl.internal (Postfix) with ESMTP id BEAFCF4007B; Thu, 9 Apr 2026 23:19:48 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Thu, 09 Apr 2026 23:19:48 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvkedvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefkjghfufggtgfgsehtjeertddttdejnecuhfhrohhmpeffrghnucghihhl lhhirghmshcuoegujhgsfieskhgvrhhnvghlrdhorhhgqeenucggtffrrghtthgvrhhnpe elhfeiudfgvdeijedtleeltdduueekffejjedvjefhgeevjeefueejledtleetjeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegujhgsfidomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudejjedvfedtgeehhedqfeeffeel gedtgeejqdgujhgsfieppehkvghrnhgvlhdrohhrghesfhgrshhtmhgrihhlrdgtohhmpd hnsggprhgtphhtthhopeehjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhgt hheslhhsthdruggvpdhrtghpthhtoheprhhitghhrghrugdrhhgvnhguvghrshhonheslh hinhgrrhhordhorhhgpdhrtghpthhtohepmhgrthhtshhtkeeksehgmhgrihhlrdgtohhm pdhrtghpthhtoheplhhinhhmrghgjeesghhmrghilhdrtghomhdprhgtphhtthhopehlih hnuhigsegrrhhmlhhinhhugidrohhrghdruhhkpdhrtghpthhtoheptggrthgrlhhinhdr mhgrrhhinhgrshesrghrmhdrtghomhdprhgtphhtthhopeifihhllheskhgvrhhnvghlrd horhhgpdhrtghpthhtoheprghruggssehkvghrnhgvlhdrohhrghdprhgtphhtthhopegt hhgvnhhhuhgrtggriheskhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: i67ae4b3e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Apr 2026 23:19:47 -0400 (EDT) Date: Thu, 09 Apr 2026 20:19:47 -0700 From: Dan Williams To: Christoph Hellwig Cc: Richard Henderson , Matt Turner , Magnus Lindholm , Russell King , Catalin Marinas , Will Deacon , Ard Biesheuvel , Huacai Chen , WANG Xuerui , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S. Miller" , Andreas Larsson , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Herbert Xu , Dan Williams , Chris Mason , David Sterba , Arnd Bergmann , Song Liu , Yu Kuai , Li Nan , Theodore Ts'o , "Jason A. Donenfeld" , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-crypto@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-arch@vger.kernel.org, linux-raid@vger.kernel.org Message-ID: <69d86c53cfc4_2b31100e7@djbw-dev.notmuch> In-Reply-To: <20260327061704.3707577-25-hch@lst.de> References: <20260327061704.3707577-1-hch@lst.de> <20260327061704.3707577-25-hch@lst.de> Subject: Re: [PATCH 24/28] async_xor: use xor_gen X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Christoph Hellwig wrote: > Replace use of the loop around xor_blocks with the easier to use xor_gen > API. > > Signed-off-by: Christoph Hellwig > --- > crypto/async_tx/async_xor.c | 34 ++++++++++------------------------ > 1 file changed, 10 insertions(+), 24 deletions(-) [..] > @@ -168,11 +156,10 @@ dma_xor_aligned_offsets(struct dma_device *device, unsigned int offset, > * > * honored flags: ASYNC_TX_ACK, ASYNC_TX_XOR_ZERO_DST, ASYNC_TX_XOR_DROP_DST > * > - * xor_blocks always uses the dest as a source so the > - * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in > - * the calculation. The assumption with dma engines is that they only > - * use the destination buffer as a source when it is explicitly specified > - * in the source list. > + * xor_gen always uses the dest as a source so the ASYNC_TX_XOR_ZERO_DST flag > + * must be set to not include dest data in the calculation. The assumption with > + * dma engines is that they only use the destination buffer as a source when it > + * is explicitly specified in the source list. > * > * src_list note: if the dest is also a source it must be at index zero. > * The contents of this array will be overwritten if a scribble region > @@ -259,11 +246,10 @@ EXPORT_SYMBOL_GPL(async_xor_offs); > * > * honored flags: ASYNC_TX_ACK, ASYNC_TX_XOR_ZERO_DST, ASYNC_TX_XOR_DROP_DST > * > - * xor_blocks always uses the dest as a source so the > - * ASYNC_TX_XOR_ZERO_DST flag must be set to not include dest data in > - * the calculation. The assumption with dma engines is that they only > - * use the destination buffer as a source when it is explicitly specified > - * in the source list. > + * xor_gen always uses the dest as a source so the ASYNC_TX_XOR_ZERO_DST flag > + * must be set to not include dest data in the calculation. The assumption with > + * dma engines is that they only use the destination buffer as a source when it > + * is explicitly specified in the source list. In retrospect, no need to duplicate this help, but as is: Reviewed-by: Dan Williams