Skip to content

PCI: hv: Hyper-V vPCI for arm64

Sunil Muthuswamy linux-arch linux-hyperv linux-pci lkml 6 versions – Applied

Status from this message: Applied to pci/hv, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 3 repliesApplied
  2. v72 patches 5 repliesSuperseded
  3. v62 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v52 patches3 repliesSuperseded
v42 patches4 repliesSuperseded
v32 patches10 repliesSuperseded

Changes in v8 from the cover letter

- Addressed feedback from Michael Kelley about the cpu mask to use for the initial interrupt affinity and IRQ cleanup in the error path.

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: hv: Make the code arch neutral by adding arch specific interfacesarch/x86/include/asm/hyperv-tlfs.h arch/x86/include/asm/mshyperv.h drivers/pci/controller/pci-hyperv.c +1 more+87 -651 reply
2/2PCI: hv: Add arm64 Hyper-V vPCI supportarch/arm64/include/asm/hyperv-tlfs.h drivers/pci/Kconfig drivers/pci/controller/Kconfig +1 more+245 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMarc ZyngierBoqun FengMichael Kelley
1/2R-b R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/2] PCI: hv: Hyper-V vPCI for arm64

From: Sunil Muthuswamy <[email protected]>

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.

changes in v6 -> v7:
- Addressed feedback from Marc Zyngier about IRQ cleanup in the error path and explicitly setting the IRQ trigger type.
- Address feedback from Bjorn Helgaas about subject line format.

changes in v7 -> v8:
- Addressed feedback from Michael Kelley about the cpu mask to use for the initial interrupt affinity and IRQ cleanup in the error path.

Sunil Muthuswamy (2):
PCI: hv: Make the code arch neutral by adding arch specific interfaces
PCI: hv: Add arm64 Hyper-V vPCI support

 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  | 312 ++++++++++++++++++++++++---
 include/asm-generic/hyperv-tlfs.h    |  33 ---
 7 files changed, 331 insertions(+), 67 deletions(-)

base-commit: fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf

Signature · 1 line
2.25.1