Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp516845rwb; Tue, 29 Nov 2022 01:36:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4DMy7HZ/A24LXurPfbXATHM+pbMQFQ9HGq2dJFNNoATu4EP0+M3NQufQPEJjLw1h4E9XL1 X-Received: by 2002:a17:90a:f402:b0:219:3212:c462 with SMTP id ch2-20020a17090af40200b002193212c462mr11000957pjb.83.1669714576751; Tue, 29 Nov 2022 01:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669714576; cv=none; d=google.com; s=arc-20160816; b=U7qh/xK2mOoesXIFDGA5YD2LyYTWsG5Gru53O9JzQaIOztX70jWhuk7W+UF1ChHIhK UR9fC8eH4n3FXWxO23W06DQVWxTyzOGE0Ws2okvB9pZzk3n+qROjsG5ZR6zoW2DNtOLK wLho8Ry09QqkzzR5sXN/jz0/gUSIIVeWB47hViI2u/Olg3pZoj2VGKWay5/Y/TpYiEdr dZmtibLfnCg9LdaGB1GRZh962uzJwlpvapVTv1H4sjF2YcH3dSTPGKWzphbN+hyYqv5b QrqI3jwgqI0+oRwHeuNaPY+qjdqY3u/jIeD3FXA3WJetRehMW3xRGStz9oXYMlLrpyyZ 0Y6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ll8adlbd4mpMCn/XqEsw7DfOyBPlh9xblMPx9JQ88lA=; b=gY5HumvKAILP9Fr76rht2FGLnFTIXd+5MDmdKhtlWKYuhxhW3FvETjOtL2xhS/D6VF XyrAlegFtZVnC0uaOljz+WW273JYyJ8TaMuwvMhVd/qeT4H4HCqVkhgc1jaxEWNAcISH VC5wZa7PJlJgEvklg9048pebclr1E6euUslL0HklR/8/1n2DY69eNAlGKuattpjht5Iw zafQ8LPJOQzrOCfGt6/O9whRbspBsW13AlkdtTW3m7vv5EKFOy/eB6iF8nleOQuycnPV DdAXGG96erTOSkXIGFaeQiBNY28t0L3R9LhB9tq902U7Z6mk8zjJFv3NQcKCgIAh1CCX lmTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s204-20020a632cd5000000b0047005e8d874si14674713pgs.9.2022.11.29.01.36.04; Tue, 29 Nov 2022 01:36:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230351AbiK2InR (ORCPT + 83 others); Tue, 29 Nov 2022 03:43:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbiK2InO (ORCPT ); Tue, 29 Nov 2022 03:43:14 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9021320351 for ; Tue, 29 Nov 2022 00:43:13 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 6238D68AFE; Tue, 29 Nov 2022 09:43:10 +0100 (CET) Date: Tue, 29 Nov 2022 09:43:10 +0100 From: "hch@lst.de" To: "Rao, Lei" Cc: Chaitanya Kulkarni , "kbusch@kernel.org" , "axboe@fb.com" , "hch@lst.de" , "sagi@grimberg.me" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] nvme: clear the prp2 field of the nvme command. Message-ID: <20221129084310.GB25609@lst.de> References: <20221129014711.91305-1-lei.rao@intel.com> <15de4902-03e7-0d2c-4b4c-45d713d0f1fd@nvidia.com> <4cee0097-4f08-1990-112f-6e39229f59ef@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cee0097-4f08-1990-112f-6e39229f59ef@intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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, Nov 29, 2022 at 12:50:57PM +0800, Rao, Lei wrote: > stricter checks, and if prp2 is not used but has a value, some warnings will be > printed. According to the NVMe spec, it seems to write a reserved field produces > an undefined result, so maybe clearing it is better. NVMe is a little weird about reserved fields settable by the host. I don't think your controllers warnings are correct, but given that the cost of clearing is very low I think we should clear it in Linux. Please resend a patch with the clearing in the right place as suggested in my previous mail.