From patchwork Tue Jun 9 09:11:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Stankiewicz X-Patchwork-Id: 197672 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B382DC433E2 for ; Tue, 9 Jun 2020 09:12:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 972AF207ED for ; Tue, 9 Jun 2020 09:12:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbgFIJM1 (ORCPT ); Tue, 9 Jun 2020 05:12:27 -0400 Received: from mga07.intel.com ([134.134.136.100]:64812 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbgFIJMZ (ORCPT ); Tue, 9 Jun 2020 05:12:25 -0400 IronPort-SDR: 17jAvLCsSzqm2MnJ9js7gNER5F6PJE2PlQS20rKULSjzSybmRccHkvReEcz6+rQY6swGcBIvjd hOhq6pgxTIBQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2020 02:12:23 -0700 IronPort-SDR: qGJGbkP6jIjb06yFErHeRABfowARu5mYzAUtOXYGw11Yc0sLPVFLbgrHJYpz0pR5pOnUg+Kqew W6B/kl9/AsNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,491,1583222400"; d="scan'208";a="306121697" Received: from gklab-125-110.igk.intel.com ([10.91.125.110]) by fmsmga002.fm.intel.com with ESMTP; 09 Jun 2020 02:12:14 -0700 From: Piotr Stankiewicz To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: Jonathan Corbet , Jens Axboe , Kurt Schwemmer , Logan Gunthorpe , Antoine Tenart , Herbert Xu , "David S . Miller" , Gustavo Pimentel , Dan Williams , Vinod Koul , Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= , David Zhou , David Airlie , Daniel Vetter , Dennis Dalessandro , Mike Marciniszyn , Doug Ledford , Jason Gunthorpe , Mauro Carvalho Chehab , Arnd Bergmann , Greg Kroah-Hartman , Adrian Hunter , Ulf Hansson , Tom Lendacky , Jakub Kicinski , Igor Russkikh , Yisen Zhuang , Salil Mehta , Brian King , "James E . J . Bottomley" , "Martin K . Petersen" , Jim Gill , linux-doc@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Piotr Stankiewicz Subject: [PATCH v3 00/15] Forward MSI-X vector enable error code in pci_alloc_irq_vectors_affinity() Date: Tue, 9 Jun 2020 11:11:48 +0200 Message-Id: <20200609091148.32749-1-piotr.stankiewicz@intel.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200603114212.12525-1-piotr.stankiewicz@intel.com> References: <20200603114212.12525-1-piotr.stankiewicz@intel.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The primary objective of this patch series is to change the behaviour of pci_alloc_irq_vectors_affinity() such that it forwards the MSI-X enable error code when appropriate. In the process, though, it was pointed out that there are multiple places in the kernel which check/ask for message signalled interrupts (MSI or MSI-X), which spawned the first patch adding PCI_IRQ_MSI_TYPES. Finally the rest of the chain converts all users to take advantage of PCI_IRQ_MSI_TYPES or PCI_IRQ_ALL_TYPES, as appropriate. Piotr Stankiewicz (15): PCI/MSI: Forward MSI-X vector enable error code in pci_alloc_irq_vectors_affinity() PCI: Add macro for message signalled interrupt types PCI: Use PCI_IRQ_MSI_TYPES where appropriate ahci: Use PCI_IRQ_MSI_TYPES where appropriate crypto: inside-secure - Use PCI_IRQ_MSI_TYPES where appropriate dmaengine: dw-edma: Use PCI_IRQ_MSI_TYPES where appropriate drm/amdgpu: Use PCI_IRQ_MSI_TYPES where appropriate IB/qib: Use PCI_IRQ_MSI_TYPES where appropriate media: ddbridge: Use PCI_IRQ_MSI_TYPES where appropriate vmw_vmci: Use PCI_IRQ_ALL_TYPES where appropriate mmc: sdhci: Use PCI_IRQ_MSI_TYPES where appropriate amd-xgbe: Use PCI_IRQ_MSI_TYPES where appropriate aquantia: atlantic: Use PCI_IRQ_ALL_TYPES where appropriate net: hns3: Use PCI_IRQ_MSI_TYPES where appropriate scsi: Use PCI_IRQ_MSI_TYPES and PCI_IRQ_ALL_TYPES where appropriate Documentation/PCI/msi-howto.rst | 5 +++-- drivers/ata/ahci.c | 2 +- drivers/crypto/inside-secure/safexcel.c | 2 +- drivers/dma/dw-edma/dw-edma-pcie.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 11 +--------- drivers/infiniband/hw/qib/qib_pcie.c | 6 +++-- drivers/media/pci/ddbridge/ddbridge-main.c | 2 +- drivers/misc/vmw_vmci/vmci_guest.c | 3 +-- drivers/mmc/host/sdhci-pci-gli.c | 3 +-- drivers/mmc/host/sdhci-pci-o2micro.c | 3 +-- drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 2 +- .../ethernet/aquantia/atlantic/aq_pci_func.c | 4 +--- .../hisilicon/hns3/hns3pf/hclge_main.c | 3 +-- .../hisilicon/hns3/hns3vf/hclgevf_main.c | 3 +-- drivers/pci/msi.c | 22 ++++++++----------- drivers/pci/pcie/portdrv_core.c | 4 ++-- drivers/pci/switch/switchtec.c | 3 +-- drivers/scsi/ipr.c | 5 +++-- drivers/scsi/vmw_pvscsi.c | 2 +- include/linux/pci.h | 4 ++-- 20 files changed, 37 insertions(+), 54 deletions(-)