linux-hyperv.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PCI: hv: Hyper-V vPCI for ARM64
@ 2021-10-08 17:19 Sunil Muthuswamy
  2021-10-08 18:52 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Sunil Muthuswamy @ 2021-10-08 17:19 UTC (permalink / raw)
  To: Marc Zyngier, Michael Kelley, Boqun Feng, KY Srinivasan,
	Haiyang Zhang, Stephen Hemminger, Dexuan Cui, Lorenzo Pieralisi,
	Rob Herring, "Krzysztof Wilczyński",
	Bjorn Helgaas, Wei Liu
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	"H. Peter Anvin",
	Arnd Bergmann, linux-hyperv, linux-pci, linux-kernel

Current Hyper-V vPCI code only compiles and works for x64. There are
some hardcoded assumptions about the architectural IRQ chip and other
arch defines.

This patch series adds support for Hyper-V vPCI for ARM64 by first
breaking the current hard coded dependency in the vPCI code and
making it arch neutral. That is in the first patch. The second
patch introduces a Hyper-V vPCI MSI IRQ chip for allocating SPI
vectors.

changes in 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

Sunil Muthuswamy (2):
  PCI: hv: Make the code arch neutral
  PCI: hv: Support for Hyper-V vPCI for ARM64

 MAINTAINERS                                 |   2 +
 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/Makefile             |   2 +-
 drivers/pci/controller/pci-hyperv-irqchip.c | 256 ++++++++++++++++++++
 drivers/pci/controller/pci-hyperv-irqchip.h |  21 ++
 drivers/pci/controller/pci-hyperv.c         |  58 +++--
 include/asm-generic/hyperv-tlfs.h           |  33 ---
 11 files changed, 363 insertions(+), 62 deletions(-)
 create mode 100644 drivers/pci/controller/pci-hyperv-irqchip.c
 create mode 100644 drivers/pci/controller/pci-hyperv-irqchip.h


base-commit: e4e737bb5c170df6135a127739a9e6148ee3da82
-- 
2.25.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 0/2] PCI: hv: Hyper-V vPCI for ARM64
  2021-10-08 17:19 [PATCH v2 0/2] PCI: hv: Hyper-V vPCI for ARM64 Sunil Muthuswamy
@ 2021-10-08 18:52 ` Bjorn Helgaas
  2021-10-08 19:11   ` [EXTERNAL] " Sunil Muthuswamy
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2021-10-08 18:52 UTC (permalink / raw)
  To: Sunil Muthuswamy
  Cc: Marc Zyngier, Michael Kelley, Boqun Feng, KY Srinivasan,
	Haiyang Zhang, Stephen Hemminger, Dexuan Cui, Lorenzo Pieralisi,
	Rob Herring, "Krzysztof Wilczyński",
	Bjorn Helgaas, Wei Liu, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, "H. Peter Anvin",
	Arnd Bergmann, linux-hyperv, linux-pci, linux-kernel

On Fri, Oct 08, 2021 at 05:19:53PM +0000, Sunil Muthuswamy wrote:
> Current Hyper-V vPCI code only compiles and works for x64. There are
> some hardcoded assumptions about the architectural IRQ chip and other
> arch defines.
> 
> This patch series adds support for Hyper-V vPCI for ARM64 by first
> breaking the current hard coded dependency in the vPCI code and
> making it arch neutral. That is in the first patch. The second
> patch introduces a Hyper-V vPCI MSI IRQ chip for allocating SPI
> vectors.
> 
> changes in 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
> 
> Sunil Muthuswamy (2):
>   PCI: hv: Make the code arch neutral
>   PCI: hv: Support for Hyper-V vPCI for ARM64

If you have occasion to post a v3, note that this is not correctly
threaded with patches as responses to the cover letter.  Thereore,
"b4 am MW4PR21MB200217CCFBC351FD12D68DF0C0B29@MW4PR21MB2002.namprd21.prod.outlook.com"
does not work to download this series.  See

  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/5.Posting.rst?id=v5.14#n320

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [EXTERNAL] Re: [PATCH v2 0/2] PCI: hv: Hyper-V vPCI for ARM64
  2021-10-08 18:52 ` Bjorn Helgaas
@ 2021-10-08 19:11   ` Sunil Muthuswamy
  0 siblings, 0 replies; 3+ messages in thread
From: Sunil Muthuswamy @ 2021-10-08 19:11 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Marc Zyngier, Michael Kelley, Boqun Feng, KY Srinivasan,
	Haiyang Zhang, Stephen Hemminger, Dexuan Cui, Lorenzo Pieralisi,
	Rob Herring, "Krzysztof Wilczyński",
	Bjorn Helgaas, Wei Liu, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, "H. Peter Anvin",
	Arnd Bergmann, linux-hyperv, linux-pci, linux-kernel

On Friday, October 8, 2021 11:52 AM
Bjorn Helgaas <helgaas@kernel.org> wrote:

> If you have occasion to post a v3, note that this is not correctly
> threaded with patches as responses to the cover letter.  Thereore,
> "b4 am
> MW4PR21MB200217CCFBC351FD12D68DF0C0B29@MW4PR21MB2002.nampr
> d21.prod.outlook.com"
> does not work to download this series.  See
> 
Yes, thanks for the heads up. Appears to me that Outlook doesn't work well with
patch series. I will setup the 'git send-email' and make sure that v3 is threaded
properly.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-08 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 17:19 [PATCH v2 0/2] PCI: hv: Hyper-V vPCI for ARM64 Sunil Muthuswamy
2021-10-08 18:52 ` Bjorn Helgaas
2021-10-08 19:11   ` [EXTERNAL] " Sunil Muthuswamy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).