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 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 2D8F5CD4855 for ; Tue, 12 May 2026 09:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=a1RC0kpmGJbZo1UqA0ld7Tn2VrAQWpnq79+ztkIjS8I=; b=Ewl0ggoMoLhfzDVw0IiA4TY5vT KZ1mRg30auTFFsqVTSBL97K1OwYO6q2iP51X+OFhwPyTjl71OqB5AjAziuy2buVrsqzeC6mh9SkjD gADkKJCTEJIQfKVKq+OFQQlBdma2UcVY3XD2ZIeZLpNs8GP2rubm9Fik7p9IMJajKPjTiZNivgI6m vhUBDavbH/M4m+hjDHvnBLNkoJsOir5XHGOhn7gZshZDOPdv8I5e8qFmAEtEmAjvo/vhu1EttSbix bM8sevtS/lmzD7r55Nv+aSzLQptHkLXwGygjTHpJFKc+hyShS67VlgfRkuTIeJKWnzFHc8jQL6LI+ u2GM25BA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wMjlC-0000000GJdl-1wGA; Tue, 12 May 2026 09:50:42 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wMjl9-0000000GJcn-1yss for linux-arm-kernel@lists.infradead.org; Tue, 12 May 2026 09:50:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 6E88E4408B; Tue, 12 May 2026 09:50:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63F87C4AF0B; Tue, 12 May 2026 09:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778579438; bh=iodQUQY7CnisbRWz7ZX1kdnUrHJlSwk4Axa8QKYq830=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=XFOgFHvn9mBF2xBvRAZWYN4FsdnnUCfPsyFwGq5E9zA90qIOCobVdiEX9IjRuOO7A a4koWchkllcAIttf8zp8nn4DNgAVrP9LdSX7c7Wd2O/Ip/XWfV7tEV0OA9U7Udc+UE fEBu5x2ef3P1zVecOZKVBZrnFtNm/j8jBWssv5lVpyaW+nKCdX9FnSHkuv+MOahJJE QNDdbgoh7OoscH495SUEFI0BJnaKehG0YhHRaOpuk7FVyVPOsRcJRVWd+JLcdYAR9J Mh1IFQ3qEmNBYLJIOPrHNmKAZ1ztNQxjTy4SJZikX6wyepAIsQBzQb9nb5w/at5zDd CFzv2hvfalSuw== Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfauth.phl.internal (Postfix) with ESMTP id 69211F4007E; Tue, 12 May 2026 05:50:36 -0400 (EDT) Received: from phl-imap-14 ([10.202.2.87]) by phl-compute-01.internal (MEProxy); Tue, 12 May 2026 05:50:36 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduvddugeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrugcu uehivghshhgvuhhvvghlfdcuoegrrhgusgeskhgvrhhnvghlrdhorhhgqeenucggtffrrg htthgvrhhnpeetgedvtddttdeuffegvdefgffgteeiueejuefhjefhvdekkeelkeduteej tdetheenucffohhmrghinhepihhnfhhrrgguvggrugdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhguodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdduieejtdehtddtjeelqdeffedvudeigeduhedqrghrug gspeepkhgvrhhnvghlrdhorhhgseifohhrkhhofhgrrhgurdgtohhmpdhnsggprhgtphht thhopeegfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepsghpsegrlhhivghnke druggvpdhrtghpthhtoheptggrthgrlhhinhdrmhgrrhhinhgrshesrghrmhdrtghomhdp rhgtphhtthhopegrrhhnugesrghrnhgusgdruggvpdhrtghpthhtohepphgrlhhmvghrse gurggssggvlhhtrdgtohhmpdhrtghpthhtoheprghouhesvggvtghsrdgsvghrkhgvlhgv hidrvgguuhdprhgtphhtthhopehmphgvsegvlhhlvghrmhgrnhdrihgurdgruhdprhgtph htthhopegtlhhmsehfsgdrtghomhdprhgtphhtthhopeihuhhkuhgrihesfhhnnhgrshdr tghomhdprhgtphhtthhopegrlhgvgiesghhhihhtihdrfhhr X-ME-Proxy: Feedback-ID: ice86485a:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 38C50C4006F; Tue, 12 May 2026 05:50:36 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Tue, 12 May 2026 11:50:15 +0200 From: "Ard Biesheuvel" To: "Christoph Hellwig" , "Andrew Morton" Cc: "Catalin Marinas" , "Will Deacon" , "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" , "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" , 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, linux-crypto@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-arch@vger.kernel.org, linux-raid@vger.kernel.org Message-Id: In-Reply-To: <20260512052230.2947683-1-hch@lst.de> References: <20260512052230.2947683-1-hch@lst.de> Subject: Re: cleanup the RAID6 P/Q library v2 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260512_025039_546948_23FB5E7C X-CRM114-Status: GOOD ( 17.75 ) 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 On Tue, 12 May 2026, at 07:20, Christoph Hellwig wrote: > Hi all, > > this series cleans up the RAID6 P/Q library to match the recent updates > to the RAID 5 XOR library and other CRC/crypto libraries. This includes > providing properly documented external interfaces, hiding the internals, > using static_call instead of indirect calls and turning the user space > test suite into an in-kernel kunit test which is also extended to > improve coverage. > > Note that this changes registration so that non-priority algorithms are > not registered, which greatly helps with the benchmark time at boot time. > I'd like to encourage all architecture maintainers to see if they can > further optimized this by registering as few as possible algorithms when > there is a clear benefit in optimized or more unrolled implementations. > > This series sits on top of the "cleanup the RAID5 XOR library v3" series. > > A git tree is also available here: > > git://git.infradead.org/users/hch/misc.git lib-raid6 > > Gitweb: > > > https://git.infradead.org/?p=users/hch/misc.git;a=shortlog;h=refs/heads/lib-raid6 > > Changes since v1: > - fix arm64 objdir != srcdir builds > - call the kunit module raid6_kunit.ko from the beginning > - update MAINTAINERS > - don't require preemptible context and apply the same restrictions as > the merged version of the XOR API > - fix the arm64 default in Kconfig > - pick the last registered (and presumably most optimized) algorithm when > benchmarking is disabled > - port over the randomization fixes from the XOR series > - misc other kunit cleanups > - require at least 4 devices for RAID6 to skip broken special cases > Tested-by: Ard Biesheuvel # kunit only on arm64 Acked-by: Ard Biesheuvel