Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp598100yba; Thu, 18 Apr 2019 06:35:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8HzF7M225mjite2Qr7Pn6dcrkADbJHc8EqFJMy1yoSuwA4hI/qOkWIQZBPZBmGgKIPUx2 X-Received: by 2002:a62:59cb:: with SMTP id k72mr97378894pfj.111.1555594559797; Thu, 18 Apr 2019 06:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594559; cv=none; d=google.com; s=arc-20160816; b=E7BtOFsn8XZzgdxpedd5gIft5xJhho2ZjMjGsMLqOhBxqaxRX/ZFGZWeduoLrqCkRI /85MmHty197HF9JImoK96SvZPzQ3REHwyMErajqsbbWGsV+JeKPwJ1KA/GGFFj0cnOsq sC+vi2BwYQvnWMgJS9TM7Uw7gL/P7fUL7OhnRsKJAebTO97Z3tcYF7/4GAv8gvyQpZyJ kwyyP8gPWwO1zhOAuyhgZUjdWgqL6VL0bPjKV3jJddvNcwJHV0BG16PDU1oelsCfi1Ey Vt/oWY35YpRAD7hsm8eJADAJHQYR3w+cNG4q9klbbkBws+U+n6t7P4EqSnec/lf5uZIP nwQQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=8rHy5dxRGESiSX8AnpAwnoYq2f6DwiON33y2JxbSAsk=; b=hPNUCxI+H0xtoYcCIVJJmtnScJqu98pGHHM5lEJJlSCwpyFFrwPrRQlRgA0wN2g8ib Xww+EIUbmTqZS3py/yt32exR7JDSeBqrg1aW8s1ZH02c1Z6DgWDSPOkspyq9Gc90lCf4 QHQkDNI+lSbeBSLqpn3OOrc/HDYlVateFcwn8otBgzEhNmhXWmg3Gh9OgJLmeNpCxe8F iIq9lHexcb3i8xYjhFvljf1OYHLdni3jauz037TN/Ae3ucuVRnfWdTOC88L6tfvZu6t3 5pViyWgp+aJ3jv+HZvP6/66P9wKwitTDEPq3d2s2kJr+RrpTC5OoD6/xrUVI5BCXCboT 4h5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=exXm1KbH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si2059914plo.118.2019.04.18.06.35.45; Thu, 18 Apr 2019 06:35:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=exXm1KbH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388685AbfDRNdl (ORCPT + 99 others); Thu, 18 Apr 2019 09:33:41 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36819 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNdk (ORCPT ); Thu, 18 Apr 2019 09:33:40 -0400 Received: by mail-pf1-f195.google.com with SMTP id z5so1133555pfn.3 for ; Thu, 18 Apr 2019 06:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=8rHy5dxRGESiSX8AnpAwnoYq2f6DwiON33y2JxbSAsk=; b=exXm1KbHdICGWXOhNNzFDqWjPiExalVBQyx1sj9MfjqA0lnKhbEfnU1fiD6+1ydBYT 5Nz7sNP5AD6z1xrAq0K2AQOX7CWIzf7id3hEuPiKDe0uUNRUMClFw3IWVwE7dHf+d48s MxR/4wBxrUoLCwngzb+vxBAMN+8zPDtMsLBDi5Y5N4xx4FPMpi7ZsFjO0cMaja82AMEe r95GV+oufC6FJXrvtziIwLDX1Rk/maUweFfyGGrYHr/i+HenVUBmml1W2PyIAE7F3kcQ vFT32n615qxCTtl+5eHA3WWagPxqypG9DCBw9YShIJbvwpGQS8KLqcJiefXnanZ2ZKzT pROg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8rHy5dxRGESiSX8AnpAwnoYq2f6DwiON33y2JxbSAsk=; b=BZ82pkN9lD3ZBIi5nVL3HQZLtg2hJ+fFCgut+tkXxlsWfZ3QIL1Zwpuisw3LoHOFxt mZhL63WN6+qdTKfyddiOPFSE0/NO9GbDX//l/bMFQvF58Ouy+nf7kJ2DbF4xKY0EL2rI pRS5eXX52jBz5bPqJOYx0sirX17uHM0EaYjZdJASzSjzbowq9dFbPiSQa7TRTSuICYGF 8DmKs5SM2GMuQstOXl9cBvP1acAtpRMKeuoAFNHFcqagIJE9XuAKLkX/g0WkvDu6azWv /UsMcVCgkOKskTaAHIzPSjeiUkVRIWLZ8aFdo2tqJQNolvNLymjnyA4urFgUVzfczTfX B2mQ== X-Gm-Message-State: APjAAAWsffQXo7bXK09MZGgirDmqFAHiI8cK1MJASkvndG6s+jeOz6Eh bVH/Gc5Xa5NZbovs/gLHWuk= X-Received: by 2002:a62:480d:: with SMTP id v13mr97036185pfa.125.1555594419860; Thu, 18 Apr 2019 06:33:39 -0700 (PDT) Received: from [192.168.0.6] ([123.213.206.190]) by smtp.gmail.com with ESMTPSA id y19sm3350127pfn.164.2019.04.18.06.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 06:33:38 -0700 (PDT) Subject: Re: [PATCH] nvme: determine the number of IO queues To: Aaron Ma , Maxim Levitsky , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, axboe@fb.com References: <1555510379-20199-1-git-send-email-aaron.ma@canonical.com> <096935354b16662eb481aeda1f48001ba489463c.camel@redhat.com> <99ab1942-9c38-695d-03dc-ea6eecb31217@gmail.com> <130f490e-e173-750d-994e-c00f7c0da080@canonical.com> From: Minwoo Im Message-ID: Date: Thu, 18 Apr 2019 22:33:35 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <130f490e-e173-750d-994e-c00f7c0da080@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/18/19 9:52 PM, Aaron Ma wrote: > > > On 4/18/19 8:13 PM, Minwoo Im wrote: >>> Yes the IO queues number is 0's based, but driver would return error and >>> remove the nvme device as dead. >> >> IMHO, if a controller indicates an error with this set_feature command, >> then >> we need to figure out why the controller was returning the error to host. >> >> If you really want to use at least a single queue to see an alive I/O >> queue, >> controller should not return the error because as you mentioned above, >> NCQA, NSQA will be returned as 0-based.  If an error is there, that could >> mean that controller may not able to provide even a single queue for I/O. > > I was thinking about try to set 1 I/O queue in driver to try to probe > NVME device. > If it works, at least system can bootup to debug instead of just remove > NVME device and kernel boot hang at loading rootfs. If the controller returns error for that command, how can we assure that the controller would support a single I/O queue ? > > If you still concern this 1 I/O queue I can still set it as > *count = 0; > > At least we try all count, NVME device still failed to respond. > > Regards, > Aaron > >> >> Thanks, >> Minwoo Im