Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp513049lqp; Thu, 4 Apr 2024 23:50:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmizH3rlvcbjeKaXsvsDw/ELpZ+TopfuQzLeUQSINRmHswY2dqtMJCRG/Pg+mD+qff5fpV8XKlhTb6Rm69/dZke+lWJfMcFSWxBsRhpQ== X-Google-Smtp-Source: AGHT+IG2MOKeQdU4qPZopyxG0g3+CXZTULnaxdXI/o1eizCqvP/XIy4n5zZ8hs31K7bcKUjhy8nL X-Received: by 2002:a05:6870:610b:b0:22e:cd10:cf3d with SMTP id s11-20020a056870610b00b0022ecd10cf3dmr787020oae.49.1712299800342; Thu, 04 Apr 2024 23:50:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712299800; cv=pass; d=google.com; s=arc-20160816; b=LSoIUAmyYciaOvuClKF6lzDiwKN08ylTc1ECcmdfdTkjRgWFuQBBJrUzuYjGYtcMa1 blun2TYINUxMN3VLif+DLu9x4k1NrWCdzmsiUeTDIQA9MyS/jZLeuJsyI1EVxGXqWEHS /Klrhcn3dfI+RKUXjzrxFNJ421h9kVQ3IUP5DANk50/IB/t73U0Klm6v8HtDqHuY9NKh RHBoLLjO+vH6o1K6w4buZXlWW3UdhaEF8NfhFVoS+WxQdiHVuI+xoiloMjxqmOMWZsot yWv8GiUBM7MQsI3TvvSja4s4WCFAMsYBUvibfMIyM+ICKD0wki3Y2fVRQySyhjo9ERbF xyTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=LJ2iLPeGyQOFWVDXetjicOrZ0HiaUTj703Hb6dh2FW4=; fh=XWpJM0+sAeGthyY3nBhK6zPbStAEoEiiNvrZrRt2iVU=; b=gfMe1C3+ClHbspoRmQ5omtuMWDZAKsyqI3qprVpelpb5OVdsPh96n/IosRP4qMvc0j 3+8aQi6PC/90TYTBacEu+Q2WNDV1UuGIkG+0huEJk8EdNwIAU0sd8y0ouqGOASiCApjQ 6gKNabyfVJHqgQsGCJeBbhJicruZHO7EskugSfOY8jbRKmJTs0x9bNTIje5g7o51Dzs7 gQkmi/QzjFMxeTWRv1i/XSGj6X7dpArhGTvtI4PUwMK/MKcMo/i/Qh0fZ+KfyAwKGhOy d1LNY3S+wxTmbKE5ttwHHG9mF70rRv3FVr23/L/XYVlHTsN+IWw/GoSVX8qp5JqtmB5f 0BFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-132493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132493-linux.lists.archive=gmail.com@vger.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 u4-20020a63f644000000b005e4b0710537si874941pgj.562.2024.04.04.23.50.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132493-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; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-132493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132493-linux.lists.archive=gmail.com@vger.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 D2DA6285E9C for ; Fri, 5 Apr 2024 06:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 728B523777; Fri, 5 Apr 2024 06:49:55 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 4D4A81BC26 for ; Fri, 5 Apr 2024 06:49:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299795; cv=none; b=mKAP3DylPfBDbQkCjbNBpnL7HE//w9+nuVxpWlZF3AtsUBUIk5S/rgCHRQRGNs+Opx0Pdfqj4oc4DP9Fhpu32u1UJV/OcMyS44/CabjjkPez/rBCjU5mGk9FlgffraKQuK/mvUp5R7yYfA71jnbwDihIb5SDZQ8tvKAZBirlD00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299795; c=relaxed/simple; bh=AFpafnKbsgVNP2jpePTb8AYY+b40xrzzyrZhuS3vF4c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tf4iwzTCiOLqWz2tFioxP84PnCf+aLFlogS3K+iryJeowchSv3vd0w+Ms+VQoVbTe+UmgWtEfA2GVkcBwF964F9DUUbW7M1wX8NG7pOYD7yj7T1EfU53pr3zovEsDPXKpW+kHj+uGwwfV+GqjqnyYaso4pFPxHS1T0K+9jobmkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 8CB5C68D07; Fri, 5 Apr 2024 08:49:49 +0200 (CEST) Date: Fri, 5 Apr 2024 08:49:49 +0200 From: Christoph Hellwig To: Daniel Wagner Cc: Christoph Hellwig , James Smart , Keith Busch , Sagi Grimberg , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/5] nvme: authentication error are always non-retryable Message-ID: <20240405064949.GB3788@lst.de> References: <20240404154500.2101-1-dwagner@suse.de> <20240404154500.2101-2-dwagner@suse.de> <20240405061624.GA3107@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Apr 05, 2024 at 08:45:11AM +0200, Daniel Wagner wrote: > > This is still abusing on the wire status code for in-kernel return > > codes. Can we please sort this out properly? > > Okay, though I am not really sure how to do it correctly. > > So the current mapping is > > ret < 0: kernel errors > ret = 0: all good > ret > 0: wire status incl DNR Yes. > In order to split the internal DNR away, we could attach it to the cmd. > Is this what you had in mind? Or do you mean we should not return > NVME_SC_AUTH_REQUIRED at all. Instead just a negative value and update > the error handling on the callers? The latter.