Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3518029pxp; Tue, 8 Mar 2022 16:27:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiTFYI38EuQvPKeLGSVUS6MutHJhHE96Xq1xemUx+V3yCl4KyXgvznZt1fS9WXu2F4Rfip X-Received: by 2002:a17:902:7043:b0:14f:47:a455 with SMTP id h3-20020a170902704300b0014f0047a455mr20053721plt.44.1646785634941; Tue, 08 Mar 2022 16:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646785634; cv=none; d=google.com; s=arc-20160816; b=EdtuMREPJcZVT1VDjxKwkxv7lVH985QzKLGRunbD1BLyuEcGPYSHMowSQRoKpDa/rp vyzC9kcFDmVRzW8ATY0Az1BW9WwG0v3GN6yorIvBiIEePsb/1dYNRZYBDU0Z+44GT1lw FLG1AIrdmrkutNB3JD9U4S5evQIGuetFgov3q0+LDq+p6a3XEPvVr6Mf6xF9RRRswkJ/ WT9YIMq/9g8cMzuM5gJ+KaL6MtANT9cc04UCkwFthTq7BPwQm9B15CXd5t3/Uqw26XxW gW0qvYTuMLzIKtljh6VLVktBXCgId/ZNyMg6KYxD4N3fvFtLK7dDQl6ikfaTgcSPJdgI oR2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=108dqffMngjZn1OR0xjgn4e+T9q6hsFruvc4kcZgz/I=; b=sdlx/lrWDtsNhycMIqj3TlBZJyeH3xjEozKVbBHzie/nnHqX8O5SSU1BVztv0GDUUx IdDpLEFuxORrgBBpYljdvYECPaUZMWEBTtqErNYrAdtOBq1AgZ36S+S869rJtdf6TPjw 1jgVVgR1YqyCQGJ+uJ0LZWszphz5SHteOHJWJ2cqcycJ2ZVXDclRInAkytGqGkpg9xXT OS2K4onr+XeiAEEeEPEaNeZZcB3Occ18yEbIV0r8uBpkcR2PwLhZvanVz1HteUp+fhyQ BCcps1l6BnPa3TBuc9wqsFRLT9HJ719jJN92CbtEsxUJgDp3mX1oj4XGzG314jbwu5NS OOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UX3bsgkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x12-20020a17090a294c00b001bd14e01f43si492693pjf.49.2022.03.08.16.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:27:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UX3bsgkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CAB733A2D; Tue, 8 Mar 2022 15:47:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350229AbiCHU2u (ORCPT + 99 others); Tue, 8 Mar 2022 15:28:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349942AbiCHU2t (ORCPT ); Tue, 8 Mar 2022 15:28:49 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7859037012; Tue, 8 Mar 2022 12:27:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 215EEB81670; Tue, 8 Mar 2022 20:27:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31323C340EB; Tue, 8 Mar 2022 20:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646771269; bh=VzSyeoZJbdPe2AzD8QPLoUveZcdiFjPQE9WsdiQ7g64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UX3bsgkbhYNKFLhW6b9QZsick5aHN2KZXsQ5gWuXEb/Nc5Tl3IsVpdlLy7FRwiTvP lQwdd4xStb1vMDfo29yU412Ia/k0g68LSVBZ8lri9ghY23rkjYZcWJTeV6qt08CtTU PPhQc0BgNkrZSgPlKdrJYDS70+h7WqR7+o6vOEepQ2Gap/b4qbi8dQb1fc6SwjHb9U oPOEQ5yewJWq/f0lMmPM+rAqnefTyFxrKFwOoVfiMYnnkt8Lo+FZbj2qpKDHRpFZT8 Z1pOyYya6BXFhmsfyKR/fCeTnR/bVQk1GLDqPeO8XLGTBhJ2hpzlseAKtbTKoJXOzA 8UgUMNNuRwovw== Date: Tue, 8 Mar 2022 12:27:47 -0800 From: Keith Busch To: Vasily Gorbik Cc: linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@kernel.dk, hch@lst.de, martin.petersen@oracle.com Subject: Re: [PATCHv4 6/8] crypto: add rocksoft 64b crc guard tag framework Message-ID: <20220308202747.GA3502158@dhcp-10-100-145-180.wdc.com> References: <20220303201312.3255347-1-kbusch@kernel.org> <20220303201312.3255347-7-kbusch@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 08, 2022 at 09:21:41PM +0100, Vasily Gorbik wrote: > On Thu, Mar 03, 2022 at 12:13:10PM -0800, Keith Busch wrote: > > Hardware specific features may be able to calculate a crc64, so provide > > a framework for drivers to register their implementation. If nothing is > > registered, fallback to the generic table lookup implementation. The > > implementation is modeled after the crct10dif equivalent. > > Hi Keith, > > this is failing on big-endian systems. I get the following on s390: Oh, I see the put_unaligned_le64() in chksum_final() was not the correct action. I'll send an update, thank you for the report.