Received: by 10.213.65.68 with SMTP id h4csp489641imn; Tue, 13 Mar 2018 10:40:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELtIQoGQzcdJgA3miGZvk/DzBXvDEzcvfWhjHh+k7tE24EQBK271jOrD8CNyLAdiyL7YC/KS X-Received: by 2002:a17:902:864b:: with SMTP id y11-v6mr1270495plt.380.1520962814027; Tue, 13 Mar 2018 10:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520962813; cv=none; d=google.com; s=arc-20160816; b=mLpirPWNTbU09pbzggGCSCyxTVRm5eFvBke0cI7/9FGYEXw39rUxEzWK/bH0wt7IF9 UWsS0QyQTI8nEGb0O2WRWv2kx62eJISEzGclUZ9fDfWD/alUbpKzKJw2Q9efIWdR7ERN 8xxuXiPf957lyJVqHMGUoCpUag+zbBzYgz7MkqgNDoEJSfVKy86uHBHsSdkl0lZOq1Yt kzMmWKYL25mq5aq0ezq2q42XbOkMfPRh0PFClcp3LcoCbUS0lgdcb1Mr/UuSxMCo6pT0 oUHzwCI4ETHXvNAn7i3afRYvVCuoyDUg5NU3ifkJ2OzL0yZH6L8cIZV2vGD+Sls/SoM8 gDRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=j6b2NtsdHJ7wnxbxUI9SmIUB6TIXn3dg14UsqLkTR1U=; b=hy/ruJwlGD23sdhahVRztm5qMmY+ueyz4nnMAfPnEisQargkzwopxhBJpN4Pjfkygr LWQhxWqLY0q6VDMMM+tqO03xvcKmTtKEbYsZfZDp63xhcFI1ANCHo/43tTqlOjjO6IRx GcZKvMqhek5Jmdo3rFCGXTNO7DWXawKjNQCtI83w1fcKe1ryjmjmRCyARzcdT/PszCfb anafNc+K0PtB4+7hA1gXR64BVNiLBTXMrKbq/cXIkdnDBLSkD7DLSdpfZ290ESrkesYb hmwmaEppVo3sexctLjxXRVtXiHy5Nb5R3VZDacl9fPI8LVMYxKXVf/fr+mw/PBno8eqK CS5g== 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 e13si481918pff.8.2018.03.13.10.39.58; Tue, 13 Mar 2018 10:40:13 -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 S1751901AbeCMRi5 (ORCPT + 99 others); Tue, 13 Mar 2018 13:38:57 -0400 Received: from mga12.intel.com ([192.55.52.136]:7823 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751534AbeCMRi4 (ORCPT ); Tue, 13 Mar 2018 13:38:56 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2018 10:38:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,465,1515484800"; d="scan'208";a="33512766" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by FMSMGA003.fm.intel.com with ESMTP; 13 Mar 2018 10:38:55 -0700 Date: Tue, 13 Mar 2018 11:40:53 -0600 From: Keith Busch To: Ming Lei Cc: Jianchao Wang , axboe@fb.com, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] nvme-pci: assign separate irq vectors for adminq and ioq1 Message-ID: <20180313174052.GJ18494@localhost.localdomain> References: <1520935088-1343-1-git-send-email-jianchao.w.wang@oracle.com> <20180313104452.GA8782@ming.t460p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313104452.GA8782@ming.t460p> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 06:45:00PM +0800, Ming Lei wrote: > On Tue, Mar 13, 2018 at 05:58:08PM +0800, Jianchao Wang wrote: > > Currently, adminq and ioq1 share the same irq vector which is set > > affinity to cpu0. If a system allows cpu0 to be offlined, the adminq > > will not be able work any more. > > > > To fix this, assign separate irq vectors for adminq and ioq1. Set > > .pre_vectors == 1 when allocate irq vectors, then assign the first > > one to adminq which will have affinity cpumask with all possible > > cpus. On the other hand, if controller has only legacy or single > > -message MSI, we will setup adminq and 1 ioq and let them share > > the only one irq vector. > > > > Signed-off-by: Jianchao Wang > > Reviewed-by: Ming Lei Thanks, applied with an updated changelog. Not being able to use the admin queue is a pretty big deal, so it's pushed to the next nvme 4.16-rc branch. This may even be good stable material.