Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp789138ybi; Tue, 16 Jul 2019 05:19:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNkkfqBf8PJqtu2eDt8rEnWJPCUXUdL6Lac86CczWUy1OyGf4yp+tNWv58LWyXhYJtNp5Q X-Received: by 2002:a63:6a81:: with SMTP id f123mr33929701pgc.348.1563279578851; Tue, 16 Jul 2019 05:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563279578; cv=none; d=google.com; s=arc-20160816; b=E9cwv5Xq3K342q5VFPyhckO9b1DNzfLEZdpsDaBgWS6dVhq3JNB0Xhl4LsP2TlAowH CqaoL7y91OBe0MmHtBVN6M80L7XJb54xDhGJOUxJ1V2lvgWLeHZbJhyjsxEoYvngwiIc VjinvEfw04l/+yJfNI0LZmJQsWUQ7WghSYWCE3AtcLYA4nth35+FdIfx6Q04k1C+y+ZK Ux00oE0j/b18ZiwzLWYkc3UAn4MHhReTF27lWzGeSGgeiYJQ2YhoiB46JP3J/83QXW9p hvyOn6soVHqCOalIOKkvttYxy40RZEKnCBtliiiKQuApuG4tRXBbIT2AJ9nrYAmjtYC3 njRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=0mTlL/cedeNqPMcbYMG5ShT2JET247vdRM8mKhHNDlA=; b=r8GqJAMoWGhBJW1UubkHGCkC6C+BYEox73dvLYVCpwlv2pPjTIiO4yshS/Li8KHBlL VJ4qealmgzh5dHrjxjbbGQazGvG6NUF1V9i/+0mBwYsrt4oNSgcSQaKx1MysTO5TW+8J 5A7sh+S+ku9MpLPLZEiV9MtlsE69+FUXNECcNahTDQAiGyNEqf/hSnwv7n4bS+G0So+x rwrReLTGe58T5lPZNs0MmenR/FP7Js1A7cMceVWcjX5f+4CObM+8b631v6el38slGgD5 bykUobbwMxetzqvEjXeWny0mdymjso8fWXjoyKFj/iwwDfyHkqRLoTCplq8iwhkTdlAs QS3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si17833605plr.111.2019.07.16.05.19.19; Tue, 16 Jul 2019 05:19:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732475AbfGPMSM (ORCPT + 99 others); Tue, 16 Jul 2019 08:18:12 -0400 Received: from gate.crashing.org ([63.228.1.57]:56109 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbfGPMSM (ORCPT ); Tue, 16 Jul 2019 08:18:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x6GCHu04027160; Tue, 16 Jul 2019 07:17:57 -0500 Message-ID: Subject: Re: [PATCH 2/3] nvme: Retrieve the required IO queue entry size from the controller From: Benjamin Herrenschmidt To: Christoph Hellwig Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Keith Busch , Paul Pawlowski Date: Tue, 16 Jul 2019 22:17:56 +1000 In-Reply-To: <20190716120547.GA2388@lst.de> References: <20190716004649.17799-1-benh@kernel.crashing.org> <20190716004649.17799-2-benh@kernel.crashing.org> <20190716060430.GB29414@lst.de> <20190716093301.GA32562@lst.de> <20190716120547.GA2388@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-07-16 at 14:05 +0200, Christoph Hellwig wrote: > On Tue, Jul 16, 2019 at 08:58:28PM +1000, Benjamin Herrenschmidt wrote: > > The main risk is if existing controllers return crap in SQES and we try > > to then use that crap. The rest should essentially be NOPs. > > > > Maybe I should add some kind of printk to warn in case we use/detect a > > non-standard size. That would help diagnosing issues. > > Given that the spec currently requires bits 0 to 3 of SQES to be 6 > we might as well not check SQES and just hardcode it to 6 or 7 depending > on the quirk. That actually was my initial idea, I just suggested using > the SQES naming and indexing. If we're going to do that, then I can move it back to pci.c and leave core.c alone then I suppose. Up to you. I'm just doing that for fun, no beef in that game :-) let me know how you want it. Cheers, Ben.