Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1694960pxb; Wed, 2 Feb 2022 10:23:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO8NLVCcsmEvOT2z8/7Hc+P87k66gim0uAnxcvIALoqCGBP/ldwNxb8xuKfBY7slCCGlaE X-Received: by 2002:a17:902:904b:: with SMTP id w11mr31067892plz.87.1643826199181; Wed, 02 Feb 2022 10:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643826199; cv=none; d=google.com; s=arc-20160816; b=ctYHYTvEC7kLVuKg3OweacRvA28pSehd/+Yo0WcmC9amSBuYA/5wRc/r3TqRWmnPc7 Gqs4ZoJq4VEUxuITUpO2SbhEEawZAi7FgrNkp6nnOF+tKxakYsPd7EIoYN3IuLCsevnL k4C3b1B86wGIRpfJs4SUNbBj/eIVbtAA6ypqNpbuwNmimZLmf7t0YCBRvwzRlqCfG6rB TYYAs2lBdEW6Tlwmb1GQk6Q+WX6SSwjEMdCFpuvWVA2e3iMYGlQqoFnDkKnHVyC1HHLn u7DR6BRcozTykY/+WSUqFdWrQ+zYnCfRsHG6YfoaHfeo/2ErKAO3cOf8Qbmo2HZz6fAR omBQ== 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=CeKybl4dcmXME3Zk79py98Ve1WbwFCSLq0uKxUj4yLE=; b=rv/yDViBdSFiFu7qlglu/HRwvi0TelUhIYWO96CO8nCGIaEtzT71Ox12CUSQ7I9eZ2 L1Kzj+7/ubmiXSfQIUCedXGqzeif2p2SfrEb2j/fSHxW0Wh92ACk/PmW+zdR+uamCNEE gPWUC1e5sSJhIE7BMLN8UkPMw5/NsmsSYRDV8/eowGVeCbHPoLAy55JDLAKxNV6HiNOx IrEqNK7IcYIxx1bMcF7kLkEsw0KQyBldiZOEmnMKlS9GqfrvJpaGAmrdURel9ZIGLgJb rOCY8WdNJmAw+4YhSybByaGBM44BYpu9/26q5owEE1bwSv7AfGhGyHg+el4/UR6lrrlQ 35Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EKvnmKmL; 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 i10si23113417plr.231.2022.02.02.10.23.06; Wed, 02 Feb 2022 10:23:19 -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=EKvnmKmL; 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 S1344269AbiBBNMj (ORCPT + 99 others); Wed, 2 Feb 2022 08:12:39 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:57630 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiBBNMh (ORCPT ); Wed, 2 Feb 2022 08:12:37 -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-out1.suse.de (Postfix) with ESMTPS id D2F41210ED; Wed, 2 Feb 2022 13:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1643807556; 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=CeKybl4dcmXME3Zk79py98Ve1WbwFCSLq0uKxUj4yLE=; b=EKvnmKmLfHGpFwrsaspwcMUAUd8ATxLs8hHqiH4lcaWjj9rAe2aan69VCpeRGIT8v2umS/ vMacQJRfrQqMRbpFy17eHkkt1eGhS+KQTRufDnsYVvLHKpQhT6Ko+y1XlejCHQYx4iSzi1 GXXuAQAjhhhkFyusLKPJsNnC1I4nr9Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1643807556; 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=CeKybl4dcmXME3Zk79py98Ve1WbwFCSLq0uKxUj4yLE=; b=1iUjeR3iak9bsrOSglM0uDXUZfKRaJSH/SYfUHTqZVcGJrUiWzbLj5Ph0T9+uWjGGWfNuV C94DPX2fZ/IdGlAA== 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 C533D13E48; Wed, 2 Feb 2022 13:12:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K9L1L0SD+mFhPwAAMHmgww (envelope-from ); Wed, 02 Feb 2022 13:12:36 +0000 Message-ID: <88f55767-9157-17c9-29f1-e4615736da39@suse.de> Date: Wed, 2 Feb 2022 14:12:36 +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 2/7] nvme: allow integrity on extended metadata formats 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 References: <20220201190128.3075065-1-kbusch@kernel.org> <20220201190128.3075065-3-kbusch@kernel.org> From: Hannes Reinecke In-Reply-To: <20220201190128.3075065-3-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 block integrity subsystem knows how to construct protection > information buffers with metadata beyond the protection information > fields. Remove the driver restriction. > > Note, this can only work if the PI field appears first in the metadata, > as the integrity subsystem doesn't calculate guard tags on preceding > metadata. > > Signed-off-by: Keith Busch > --- > drivers/nvme/host/core.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > 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