From patchwork Thu Oct 17 18:19:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 11196809 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 748EF13B1 for ; Thu, 17 Oct 2019 18:22:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E7BF21A49 for ; Thu, 17 Oct 2019 18:22:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503306AbfJQSWp (ORCPT ); Thu, 17 Oct 2019 14:22:45 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41231 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503288AbfJQSWc (ORCPT ); Thu, 17 Oct 2019 14:22:32 -0400 Received: by mail-pg1-f196.google.com with SMTP id t3so1815221pga.8 for ; Thu, 17 Oct 2019 11:22:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=2KT/1Ua4Ne08bIcLoxtdMsARQdKvdiD630BlGhWeLtw=; b=WiyD9wrMewk1bCixmcryiXhlClNvfNp4VyOFw4YtPVwgbO728G03De9Rlez8om1rlR SNK1h0z6J1x6htUKhwaP0fZIsXLXHh24C+Fqr1TrIbCIGBtwppcSISlO+KSJIqGm1XAQ Dn8QvqXCW/kjAkn67ogIeHQciKaAEvoTKPpV7hErN4ct7tiRVfXXOLxabqzbuNRilbzw dvVlZA/tRcWiqeVD3EcAfOk5L0vTBGXLZKuSCAXdDVdpA2RL/vZh9vCYqJcjxe8OKDo6 mPGyMoXPOJMo7BOloFuA1a+ic1eaCXC1ZKjeRGzwvUeLehDY38/raz8ryUgr1eWE4UTx PypA== X-Gm-Message-State: APjAAAU7UHhCRWdD3zU+tcnk6wPUDSEq52EBJ69qQ+YYhnhBOoFK5lPj Pi7F8pUd3qLH7y17JECzqQtWJQ== X-Google-Smtp-Source: APXvYqzRFMnoGzdJ2pTmCdShwyvvireoh2sq3hfvaMP0TW/8NOqgFYu+GU8GpPpVrwDdC5UWEBAmzA== X-Received: by 2002:a63:5423:: with SMTP id i35mr5812604pgb.128.1571336551338; Thu, 17 Oct 2019 11:22:31 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id u5sm4007226pfl.25.2019.10.17.11.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 11:22:30 -0700 (PDT) Subject: [PATCH 1/3] ia64: Use the generic msi.h Date: Thu, 17 Oct 2019 11:19:35 -0700 Message-Id: <20191017181937.7004-2-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191017181937.7004-1-palmer@sifive.com> References: <20191017181937.7004-1-palmer@sifive.com> MIME-Version: 1.0 Cc: tony.luck@intel.com, fenghua.yu@intel.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, bhelgaas@google.com, will@kernel.org, Greg KH , Palmer Dabbelt , kstewart@linuxfoundation.org, pbonzini@redhat.com, firoz.khan@linaro.org, yamada.masahiro@socionext.com, longman@redhat.com, mingo@kernel.org, peterz@infradead.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pci@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig , michal.simek@xilinx.com, helgaas@kernel.org Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Without this I can't enable PCI_MSI_IRQ_DOMAIN, which as far as I can tell only depends on generic functionality provided by msi.h. PCI_MSI_IRQ_DOMAIN has historically had a whitelist of supported architectures, but that list is getting long enough that it's cleaner to just enable it everywhere. This builds with an ia64 defconfig, but I have no access to ia64 and therefor can't even boot test it. Signed-off-by: Palmer Dabbelt --- arch/ia64/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/include/asm/Kbuild b/arch/ia64/include/asm/Kbuild index 390393667d3b..22d6dbefa7d7 100644 --- a/arch/ia64/include/asm/Kbuild +++ b/arch/ia64/include/asm/Kbuild @@ -6,6 +6,7 @@ generic-y += irq_work.h generic-y += kvm_para.h generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h +generic-y += msi.h generic-y += preempt.h generic-y += trace_clock.h generic-y += vtime.h From patchwork Thu Oct 17 18:19:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 11196805 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C41F913B1 for ; Thu, 17 Oct 2019 18:22:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ABAE320854 for ; Thu, 17 Oct 2019 18:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503312AbfJQSWf (ORCPT ); Thu, 17 Oct 2019 14:22:35 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42661 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503305AbfJQSWe (ORCPT ); Thu, 17 Oct 2019 14:22:34 -0400 Received: by mail-pg1-f195.google.com with SMTP id f14so1807980pgi.9 for ; Thu, 17 Oct 2019 11:22:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=DgBlxGGOySK3PLbEB8KobplGmb/95tE64KOi4eUuQBM=; b=OuoRmbRd5Brb4bOa+KJONgu47E33OaUmWxD6R3fi07253VF/TvXYdisloB1V/BpX4S MsCCbpuYvnycOiSFaiKP32u5/XHu+M5oP5YHL2xKsaN1xhviziBZJP4HZwL8BYE6ewi4 673IpIK4oYSa5u5eWUD5YEIF35i26IIYZlXLcZTCfL5QjMtDlLI6Y04NhUKGtUYe5S1l MzZouP2YGz72xiTQFJMOzZJ+qjbvJrii9cCTfO356PEg9JwTinXLv1vmA3CagXRkZ0Jq dy0bkJo7AUZMzYZjwh2oGk9j5MNOG3v4Mr63kwxZs89HqgYuJ8AZTsiUU39GfLzGnBqh puvQ== X-Gm-Message-State: APjAAAW6CsxtZX7J9Jx3psQ/wtbeFOXqfzTn8b+J6+n5dlQOVjq250lg Dcz3WrNzmqjtU9CmiteD/+WV4g== X-Google-Smtp-Source: APXvYqybdVbJNTvuzOcVhsPQif36O+YC/nFlezJzYkDdm19blzh9K6d8ez4kplshP0Xrf/0pwtO9Ew== X-Received: by 2002:a62:cf42:: with SMTP id b63mr1721635pfg.33.1571336553006; Thu, 17 Oct 2019 11:22:33 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id s5sm2751586pjn.24.2019.10.17.11.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 11:22:32 -0700 (PDT) Subject: [PATCH 2/3] s390: Use the generic msi.h Date: Thu, 17 Oct 2019 11:19:36 -0700 Message-Id: <20191017181937.7004-3-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191017181937.7004-1-palmer@sifive.com> References: <20191017181937.7004-1-palmer@sifive.com> MIME-Version: 1.0 Cc: tony.luck@intel.com, fenghua.yu@intel.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, bhelgaas@google.com, will@kernel.org, Greg KH , Palmer Dabbelt , kstewart@linuxfoundation.org, pbonzini@redhat.com, firoz.khan@linaro.org, yamada.masahiro@socionext.com, longman@redhat.com, mingo@kernel.org, peterz@infradead.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pci@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig , michal.simek@xilinx.com, helgaas@kernel.org Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Without this I can't enable PCI_MSI_IRQ_DOMAIN, which as far as I can tell only depends on generic functionality provided by msi.h. PCI_MSI_IRQ_DOMAIN has historically had a whitelist of supported architectures, but that list is getting long enough that it's cleaner to just enable it everywhere. This builds with an s390 defconfig, but I have no access to s390 and therefor can't even boot test it. Signed-off-by: Palmer Dabbelt --- arch/s390/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/include/asm/Kbuild b/arch/s390/include/asm/Kbuild index 2531f673f099..afd35e55b358 100644 --- a/arch/s390/include/asm/Kbuild +++ b/arch/s390/include/asm/Kbuild @@ -21,6 +21,7 @@ generic-y += local64.h generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h generic-y += mmiowb.h +generic-y += msi.h generic-y += trace_clock.h generic-y += unaligned.h generic-y += word-at-a-time.h From patchwork Thu Oct 17 18:19:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 11196807 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4FCB13B1 for ; Thu, 17 Oct 2019 18:22:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE23921D7A for ; Thu, 17 Oct 2019 18:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503325AbfJQSWk (ORCPT ); Thu, 17 Oct 2019 14:22:40 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38156 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503310AbfJQSWf (ORCPT ); Thu, 17 Oct 2019 14:22:35 -0400 Received: by mail-pf1-f194.google.com with SMTP id h195so2170075pfe.5 for ; Thu, 17 Oct 2019 11:22:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=Vl0993kFOVCbFbBd0f73Vm2bgxp+dYjZuoT4X6x3qbo=; b=nLk8WQ6M/i1RttpNO761kmYwJQNLkbQ3KcAyCX3ZwFkCbfbyZC8f2NVTFcOZTjMKaC 0T1jrWxLh92705bPzggbKG+MisV0hQIka0pNwS/KYHBFFrgxVl8G9HUS8ZRyLJZVRyxo yil8GpvjVworm57GJREBJICJ34bOhG7uBiQpKkwDtgtmgQXdXyy5fpLQ+BDQr6NFGxnR B+rRWMFEC6FEL4HfB95h9jdptVtAlqM3HD6s68cgRVz6DFUHcS2oPONMuLYZba2UIv5H JdS6Dhwr4lNEZhcldwyKbOYzM3iXVDxtD/h5qWK65luZ9xhcKHcgkhndPJ6ZZwKHzfO8 LYBw== X-Gm-Message-State: APjAAAXqwdy7xfGS+QHRwKIVh5vexbif9ipbtoVsnf9YO3jFz7xD9szM mNbI6+H1xXnBxebndnyaiD5gLg== X-Google-Smtp-Source: APXvYqynD9rVIS1o3qWTvaQTxl9H6HgwDspwax1m/MNQ8kaTqQ6suPLQuCl8IkuSxv3eFErDBkUQ1g== X-Received: by 2002:a17:90a:1b49:: with SMTP id q67mr6162405pjq.115.1571336554301; Thu, 17 Oct 2019 11:22:34 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id s36sm3153399pgk.84.2019.10.17.11.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 11:22:33 -0700 (PDT) Subject: [PATCH 3/3] pci: Default to PCI_MSI_IRQ_DOMAIN Date: Thu, 17 Oct 2019 11:19:37 -0700 Message-Id: <20191017181937.7004-4-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191017181937.7004-1-palmer@sifive.com> References: <20191017181937.7004-1-palmer@sifive.com> MIME-Version: 1.0 Cc: tony.luck@intel.com, fenghua.yu@intel.com, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, bhelgaas@google.com, will@kernel.org, Greg KH , Palmer Dabbelt , kstewart@linuxfoundation.org, pbonzini@redhat.com, firoz.khan@linaro.org, yamada.masahiro@socionext.com, longman@redhat.com, mingo@kernel.org, peterz@infradead.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pci@vger.kernel.org From: Palmer Dabbelt To: Christoph Hellwig , michal.simek@xilinx.com, helgaas@kernel.org Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org As far as I can tell, the only reason there was an architecture whitelist for PCI_MSI_IRQ_DOMAIN is because it requires msi.h. I've built this for all the architectures that play nice with make.cross, but I haven't boot tested it anywhere. Signed-off-by: Palmer Dabbelt --- drivers/pci/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index a304f5ea11b9..77c1428cd945 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -52,7 +52,7 @@ config PCI_MSI If you don't know what to do here, say Y. config PCI_MSI_IRQ_DOMAIN - def_bool ARC || ARM || ARM64 || X86 || RISCV + def_bool y depends on PCI_MSI select GENERIC_MSI_IRQ_DOMAIN