Skip to contentSkip to conversation

riscv: include generic support for MSI irqdomains

PATCH Superseded Paul Walmsley 3 participants 5 messages May 20, 2019 – May 21, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: include generic support for MSI irqdomains

Some RISC-V systems include PCIe host controllers that support PCIe message-signaled interrupts. For this to work on Linux, we need to enable PCI_MSI_IRQ_DOMAIN and define struct msi_alloc_info. Support for the latter is enabled by including the architecture-generic msi.h include.

Based on a patch from Wesley Terpstra <[email protected]>:

https://github.com/riscv/riscv-linux/commit/7d55f38fb79f459d2e88bcee7e147796400cafa8

---
 arch/riscv/include/asm/Kbuild | 1 +
 drivers/pci/Kconfig           | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/riscv/include/asm/Kbuild +1 -0
index 3d019e062c6f..b0a9fa34be5a 100644
@@ -20,6 +20,7 @@ generic-y += kvm_para.h
 generic-y += local.h
 generic-y += local64.h
 generic-y += mm-arch-hooks.h
+generic-y += msi.h
 generic-y += percpu.h
 generic-y += preempt.h
 generic-y += sections.h
drivers/pci/Kconfig +1 -1
index 2ab92409210a..beb3408a0272 100644
@@ -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
+	def_bool ARC || ARM || ARM64 || X86 || RISCV
 	depends on PCI_MSI
 	select GENERIC_MSI_IRQ_DOMAIN
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Paul Walmsley

Some RISC-V systems include PCIe host controllers that support PCIe message-signaled interrupts. For this to work on Linux, we need to enable PCI_MSI_IRQ_DOMAIN and define struct msi_alloc_info. Support for the latter is enabled by including the architecture-generic msi.h include.

Quoted 7 lines

Based on a patch from Wesley Terpstra <[email protected]>:

https://github.com/riscv/riscv-linux/commit/7d55f38fb79f459d2e88bcee7e147796400cafa8

Well, this is very much Wes' patch as-is. It should probably be attributed to him and you should ask for his signoff.

Otherwise this looks fine:

#2 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · Paul Walmsley

Some RISC-V systems include PCIe host controllers that support PCIe message-signaled interrupts. For this to work on Linux, we need to enable PCI_MSI_IRQ_DOMAIN and define struct msi_alloc_info. Support for the latter is enabled by including the architecture-generic msi.h include.

Based on a patch from Wesley Terpstra <[email protected]>:

Quoted 8 lines
Quoted 5 lines

https://github.com/riscv/riscv-linux/commit/7d55f38fb79f459d2e88bcee7e147796400cafa8

Well, this is very much Wes' patch as-is. It should probably be attributed to him and you should ask for his signoff.

Yeah. There aren't many other ways to do it.

Wes, care to reply with your Signed-off-by: ?

- Paul

#3 lore raw

Signed.

Quoted 27 lines · Paul Walmsley
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · Paul Walmsley

Some RISC-V systems include PCIe host controllers that support PCIe message-signaled interrupts. For this to work on Linux, we need to enable PCI_MSI_IRQ_DOMAIN and define struct msi_alloc_info. Support for the latter is enabled by including the architecture-generic msi.h include.

Based on a patch from Wesley Terpstra <[email protected]>:

Quoted 8 lines
Quoted 5 lines

https://github.com/riscv/riscv-linux/commit/7d55f38fb79f459d2e88bcee7e147796400cafa8

Well, this is very much Wes' patch as-is. It should probably be attributed to him and you should ask for his signoff.

Yeah. There aren't many other ways to do it.

Wes, care to reply with your Signed-off-by: ?

- Paul

#4 lore raw
Quoted 1 line · Wesley Terpstra

Signed.

Thanks, will repost with that and add the PCI folks also

- Paul