PCI: hv: Hyper-V vPCI for arm64
From: | Sunil Muthuswamy <sunilmut-AT-linux.microsoft.com> | |
To: | kys-AT-microsoft.com, haiyangz-AT-microsoft.com, sthemmin-AT-microsoft.com, wei.liu-AT-kernel.org, maz-AT-kernel.org, decui-AT-microsoft.com, tglx-AT-linutronix.de, mingo-AT-redhat.com, bp-AT-alien8.de, hpa-AT-zytor.com, lorenzo.pieralisi-AT-arm.com, robh-AT-kernel.org, kw-AT-linux.com, bhelgaas-AT-google.com, arnd-AT-arndb.de | |
Subject: | [PATCH v6 0/2] PCI: hv: Hyper-V vPCI for arm64 | |
Date: | Thu, 18 Nov 2021 00:51:28 -0800 | |
Message-ID: | <1637225490-2213-1-git-send-email-sunilmut@linux.microsoft.com> | |
Cc: | x86-AT-kernel.org, linux-kernel-AT-vger.kernel.org, linux-hyperv-AT-vger.kernel.org, linux-pci-AT-vger.kernel.org, linux-arch-AT-vger.kernel.org, Sunil Muthuswamy <sunilmut-AT-microsoft.com> | |
Archive-link: | Article |
From: Sunil Muthuswamy <sunilmut@microsoft.com> Current Hyper-V vPCI code only compiles and works for x86. There are some hardcoded assumptions about the architectural IRQ chip and other arch defines. Add support for Hyper-V vPCI for arm64 by first breaking the current hard coded dependency using a set of new interfaces and implementing those for x86 first. That is in the first patch. The second patch adds support for Hyper-V vPCI for arm64 by implementing the above mentioned interfaces. That is done by introducing a Hyper-V vPCI specific MSI IRQ domain & chip for allocating SPI vectors. changes in v1 -> v2: - Moved the irqchip implementation to drivers/pci as suggested by Marc Zyngier - Addressed Multi-MSI handling issues identified by Marc Zyngier - Addressed lock/synchronization primitive as suggested by Marc Zyngier - Addressed other code feedback from Marc Zyngier changes in v2 -> v3: - Addressed comments from Bjorn Helgaas about patch formatting and verbiage - Using 'git send-email' to ensure that the patch series is correctly threaded. Feedback by Bjorn Helgaas - Fixed Hyper-V vPCI build break for module build, reported by Boqun Feng changes in v3 -> v4: - Removed the separate file for IRQ chip that was there in previous iterations and moved the IRQ chip implementation to pci-hyperv.c. Feedback by Michael Kelley and Marc Zyngier. - Addressed various comments from Marc Zyngier about structuring and layout. - Addressed comment from Marc Zyngier about IRQ affinity and other miscellaneous comments. changes in v4 -> v5: - Fixed an issue with picking the right cpu for irq affinity, identified by Marc Zyngier. changes in v5 -> v6: - Minor comment updates suggested by Michael Kelley. Sunil Muthuswamy (2): PCI: hv: Make the code arch neutral by adding arch specific interfaces arm64: PCI: hv: Add support for Hyper-V vPCI arch/arm64/include/asm/hyperv-tlfs.h | 9 + arch/x86/include/asm/hyperv-tlfs.h | 33 ++++ arch/x86/include/asm/mshyperv.h | 7 - drivers/pci/Kconfig | 2 +- drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pci-hyperv.c | 281 ++++++++++++++++++++++++--- include/asm-generic/hyperv-tlfs.h | 33 ---- 7 files changed, 300 insertions(+), 67 deletions(-) base-commit: fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf -- 2.25.1