Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp95049lqp; Mon, 10 Jun 2024 20:13:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpTBTEeS0iQLoTMIQo4pyC/NtwZJl1WUGbktXvM8fCsl4ova5D7jdMs8vLShoQfBcerbxzPgl08RFnS9GvTtbiO6QuQTXUN7os+Alfbg== X-Google-Smtp-Source: AGHT+IEi7Pq8D85KNmjpNaA9qvy0mNHjcBJCNlHekZWnmDyBk1DjuQzktILetc2YOaw9KYIDBx5g X-Received: by 2002:a05:6e02:214b:b0:375:ac51:9c5d with SMTP id e9e14a558f8ab-375ac519fa6mr37694245ab.12.1718075602746; Mon, 10 Jun 2024 20:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718075602; cv=pass; d=google.com; s=arc-20160816; b=aZpPjm//3z+CnXmwpszPIGLHbTh9DCxXzxYY15MBugNzc9TFRM56gUq4Yq4YPu0GEn V4K4PHaHtBshgHd91nRV/0k1f4Z8zWgeHHaFmryFb+7r5fbon4G11acIR5s+hyVjYKxO jLATITsjxC6+jQ9VVIH6YT2glGWN36awoo7Ox25+xosC8WCawO/uGR8ppr3jJVFaAjQd vbS7iKf370tUHqSs+laom7hxPclCSNcyQzp/OMZvysrrwEdBKv3hQXiVHhRDfDQdeJkk Wu0CsY3/P2KqY8nIuYrAWcdJIz/VzFpX9fFolH/kyJ6K9BccKEMdzPIWnaGrZ1QRJEKT EwgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ANge9GvsB5gHLiKYXnpB8FTyd1Nea8q80G0oh7E2K+s=; fh=sXdl1xuGgReO1rxK4GB/j0efpiLoReyphqlOloRo7D4=; b=uLIyeE4I7mPTfzEhlcpaMAAERnZK7WI6D2uNhl3Zrj4savWYh63WCBCIqRSSZj+mF0 pYe04Obws4YGgZ4OXOZBwNVl5FeaeyHjbMV5YdiQ6zmAE55pBydXwUqwn5PRKR5s678Y +xksOZSB/7Zg0pAj60MisCYeqtQlir/ZQQIbVQfjAkdW7484gaecqeC7dAFfjE9f/gjK afYAA5P/yCEq1BeriFBShG1do3yPKzGijAYtX+mUNc92f5+BeunluJrnlQLfmlvdK476 eMcpNWIabp4Yu7tsW6vX6UdqHUG6jKrVBffbIFQjD+0MGAlH40V0yHzkUrIsKqlrpS1P Vtug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qwrt7Btc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e4899775b4si4787677a12.836.2024.06.10.20.13.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 20:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qwrt7Btc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3374D284CB7 for ; Tue, 11 Jun 2024 03:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6832616F8F7; Tue, 11 Jun 2024 03:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qwrt7Btc" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F9487E782; Tue, 11 Jun 2024 03:13:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075597; cv=none; b=LoD/akvGenPtMSvrALJIFc03dal0UpaTlrHbCyoWIROG2groArH+ItGfegfB4y/5rHhYBAApz3+64wuPeQR4DgXi4lxE78j7cAmbigqcHJGseFWVCIUiAeEKRp483O5Skt1eFrP7naKtu899Dl4oZBrK6lC6ft8CJbGhpaAAiRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075597; c=relaxed/simple; bh=ZMZKxxJuYo9eKsMIOrsBuBANLaKNn9wG+ufnOZCOjg8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uOiL7pU8mmL9DlYfcGS7JL8LViL4KXc0hs3jkiX5QYVKOj/uZ8Zilke8+N4xtEMaQZCIkwwYJLD8f9aIJQ/A153UCGSCyv5k2N5foKSiu7RmpE/ZzDthdrydHXdisp2eo9CIEN0M6iBi4emwuKllUJP+fddswIuoflcYY2vSuFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qwrt7Btc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA24C2BBFC; Tue, 11 Jun 2024 03:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718075596; bh=ZMZKxxJuYo9eKsMIOrsBuBANLaKNn9wG+ufnOZCOjg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qwrt7BtcqvK3RqTdB+lO3NW2bXjr5H6ZeRZRK31zbrHc2Dw8811Rc9KWlhaRKnwpg kaGVXt8lp+WTZDw2EJeZ2b/rKVU7nX9BoGIcCLyGcvHDtBtjW12M7yR0i371HyNbj7 W0d603VGCTb8cU2/jQxFXpkiQQ8tvE9jDRu54Qr2kcfu84Z85k4Esc0YMVKzD5c3An T22n5eTOYz6MzRZe+nbjkJHaVZqRsbDhvwilQlC7bCrQMyer7dqSP0ynMcCVYCM74t DaMBqK+kHk57pPXIlLqXiBmUTouhB+0NLMdTrdoAsbCosCP+8BhzYxOy6xfxfH/bqd C/1n6fqamoA2w== Date: Mon, 10 Jun 2024 20:13:14 -0700 From: Eric Biggers To: Herbert Xu Cc: Kamlesh Gurudasani , kristo@kernel.org, will@kernel.org, akpm@linux-foundation.org, davem@davemloft.net, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, vigneshr@ti.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 0/6] Add support for MCRC64 engine to calculate 64-bit CRC in Full-CPU mode Message-ID: <20240611031314.GA2557@sol.localdomain> References: <20240524-mcrc64-upstream-v3-0-24b94d8e8578@ti.com> <87tti098af.fsf@kamlesh.i-did-not-set--mail-host-address--so-tickle-me> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jun 11, 2024 at 10:31:45AM +0800, Herbert Xu wrote: > On Mon, Jun 10, 2024 at 08:03:44PM +0530, Kamlesh Gurudasani wrote: > > writes: > > > > > From: Kamlesh Gurudasani > > > > > > MCRC64 engine calculates 64-bit cyclic redundancy checks (CRC) > > > according to the ISO 3309 standard. > > > > Could you please review this and let me know if any changes are needed > > to get it merged. > > Eric Biggers had concerns about adding this to the kernel. I'd > like know if he's OK with this or not. > I thought the rule is that there needs to be an in-kernel user to add algorithms to the crypto API? Is there any precedent for adding new algorithms purely so that accelerators that implement them can be accessed from userspace via AF_ALG? Even if acceptable, the motivation for this one does seem weak, given that a userspace software implementation would actually be faster. It could be marginally useful for freeing up the CPU for other tasks if the inputs being processed are very large (probably at least several megabytes), though. - Eric