From patchwork Sat Dec 29 03:26:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 10744743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9106291E for ; Sat, 29 Dec 2018 04:45:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 806C828CAA for ; Sat, 29 Dec 2018 04:45:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73D5D28CE5; Sat, 29 Dec 2018 04:45:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66E2B28CE3 for ; Sat, 29 Dec 2018 04:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbeL2Ep1 (ORCPT ); Fri, 28 Dec 2018 23:45:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57430 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbeL2Ep1 (ORCPT ); Fri, 28 Dec 2018 23:45:27 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3766683F51; Sat, 29 Dec 2018 03:27:00 +0000 (UTC) Received: from localhost (ovpn-8-19.pek2.redhat.com [10.72.8.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B71C5C220; Sat, 29 Dec 2018 03:26:56 +0000 (UTC) From: Ming Lei To: linux-nvme@lists.infradead.org, Christoph Hellwig Cc: Ming Lei , Shan Hai , Keith Busch , Jens Axboe , linux-pci@vger.kernel.org, Bjorn Helgaas Subject: [PATCH V2 0/3] nvme pci: two fixes on nvme_setup_irqs Date: Sat, 29 Dec 2018 11:26:47 +0800 Message-Id: <20181229032650.27256-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Sat, 29 Dec 2018 03:27:00 +0000 (UTC) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The 1st one fixes the case that -EINVAL is returned from pci_alloc_irq_vectors_affinity(), and it is found without this patch QEMU may fallback to single queue if CPU cores is >= 64. The 2st one fixes the case that -ENOSPC is returned from pci_alloc_irq_vectors_affinity(), and boot failure is observed on aarch64 system with less irq vectors. The last one introduces modules parameter of 'default_queues' for addressing irq vector exhaustion issue reported by Shan Hai. Ming Lei (3): PCI/MSI: preference to returning -ENOSPC from pci_alloc_irq_vectors_affinity nvme pci: fix nvme_setup_irqs() nvme pci: introduce module parameter of 'default_queues' drivers/nvme/host/pci.c | 31 ++++++++++++++++++++++--------- drivers/pci/msi.c | 20 +++++++++++--------- 2 files changed, 33 insertions(+), 18 deletions(-) Cc: Shan Hai Cc: Keith Busch Cc: Jens Axboe Cc: linux-pci@vger.kernel.org, Cc: Bjorn Helgaas ,