Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2306213pxb; Thu, 3 Feb 2022 04:00:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzufw7AElQNk00PH+r6NYi+Ukr8/OpWcliaSpn58uYRR1c4u6LAdybSZW86HUYPkFav6f0 X-Received: by 2002:a17:90b:17c4:: with SMTP id me4mr13550459pjb.198.1643889607096; Thu, 03 Feb 2022 04:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643889607; cv=none; d=google.com; s=arc-20160816; b=k6JkkT1ENcY++oR2KBaDgwr+ETXWKo1EOBLioPdG3kPL8wl1AwW2yLa8jWinOnj44+ ei/EtP1r4Z/lWQhz5rrkF5gCSY03tx5nS/Gs6yRzlTu/CKySVSGdxKcl0+56pTAek2dH fMIGcbW1bRoIzvMtqfqbGNq0OL+eOGuZuNLOwp3r1x1Fxtp9TSxgYGWEM6sUxFoMjhKE NRTchw0mPXAsse4+h3A75Q9RR/apqzqTwCEC/LqPtuSk+nNn9QB0Tv2rzmbsvyptrPqA hreH4twIvbr4gSED10f57VeDGusvcW3rpOY2EscHFs6Kn1wFKZUkPf94IwLux4m/HuLG DiWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=JlQUO8+UiXbI9p5AkFOPqUJ49XgowWktQfXDPY0CVBY=; b=TCLAfMqT9XRFlaFtlqi+mB4WVfCFthb/SD4gHBAYAZ6yha5LLF9y+U5sTMq3F4KsRv 2I6CCV22mODXqa7XF21yDp+p2dE6ZG3ydbbDF8ucFyG6pAHfKj3rnDVqOzNPeaNR9a3l ct4A/HwJJPw1GSL17VTyYWmqvaoNEr1Sp9GvaeLOtlyOdkY54DZU62B7/0mOzeDJLwmS RoQpcfP5C3Ykf5I/ZRWnSeMmNSq7tqImf7mf/RUasa0WArTzmVFYhMaREy4cTdGMwaft EQfa3+mxFNIDGc6x15hxi0XLtMQA9Xh1Jzq4LBZYufQLoSYneji7DcxO65XevMr3+PVc VsvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qAQmbDDN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nn2si7348445pjb.132.2022.02.03.03.59.53; Thu, 03 Feb 2022 04:00:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qAQmbDDN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239530AbiBBNNg (ORCPT + 99 others); Wed, 2 Feb 2022 08:13:36 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:52066 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbiBBNNf (ORCPT ); Wed, 2 Feb 2022 08:13:35 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A08521F3AC; Wed, 2 Feb 2022 13:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643807614; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JlQUO8+UiXbI9p5AkFOPqUJ49XgowWktQfXDPY0CVBY=; b=qAQmbDDNlbwdOrfXmkONjHnYlZJSTA33fOEY83xMPUwZBTwaQ1zkGN3UZx06Ykf8J2tgVe 6e4XSNmE+0+cVP2VTClabEBNLR152C1fuOoRB8ygLxtZllzO/Vnwc/m49JsY93kTO0MAmn qqTRBfsW0i5LflljRtikurUrcDhsbzU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643807614; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JlQUO8+UiXbI9p5AkFOPqUJ49XgowWktQfXDPY0CVBY=; b=n+Xp2eOz4tUnUDhlfz56j0sVtYs+NL0aDL5lkCjN8ewDL9FXPiRiOzgdg+6vh5grW2X4cE Qoo008H2iWe2m3Bg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8AA6813E48; Wed, 2 Feb 2022 13:13:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id U+IUIX6D+mHbPwAAMHmgww (envelope-from ); Wed, 02 Feb 2022 13:13:34 +0000 Message-ID: <6acd13c3-5e98-b050-bcc4-9d075e013817@suse.de> Date: Wed, 2 Feb 2022 14:13:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCHv2 3/7] lib: add rocksoft model crc64 Content-Language: en-US To: Keith Busch , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: axboe@kernel.dk, hch@lst.de, martin.petersen@oracle.com, colyli@suse.de, Eric Biggers References: <20220201190128.3075065-1-kbusch@kernel.org> <20220201190128.3075065-4-kbusch@kernel.org> From: Hannes Reinecke In-Reply-To: <20220201190128.3075065-4-kbusch@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/22 20:01, Keith Busch wrote: > The NVM Express specification extended data integrity fields to 64 bits > using the Rocksoft^TM parameters. Add the poly to the crc64 table > generation, and provide a library routine implementing the algorithm. > > The Rocksoft 64-bit CRC model parameters are as follows: > Poly: 0xAD93D23594C93659 > Initial value: 0xFFFFFFFFFFFFFFFF > Reflected Input: True > Reflected Output: True > Xor Final: 0xFFFFFFFFFFFFFFFF > > Since this model used reflected bits, the implementation generates the > reflected table so the result is ordered consistently. > > Cc: Eric Biggers > Signed-off-by: Keith Busch > --- > v1->v2: > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer