Enabling MSI for Microblaze
Subsystems (9)
cover Enabling MSI for Microblaze
Hi,
these two patches come from discussion with Christoph, Bjorn, Palmer and Waiman. The first patch was suggestion by Christoph here
https://lore.kernel.org/linux-riscv/[email protected]/
The second part was discussed
https://lore.kernel.org/linux-pci/mhng-5d9bcb53-225e-441f-86cc-b335624b3e7c@palmer-si-x1e/
and
https://lore.kernel.org/linux-pci/[email protected]/
Thanks,
Michal
Michal Simek (1):
asm-generic: Make msi.h a mandatory include/asm header
Palmer Dabbelt (1):
pci: Default to PCI_MSI_IRQ_DOMAIN
arch/arc/include/asm/Kbuild | 1 - arch/arm/include/asm/Kbuild | 1 - arch/arm64/include/asm/Kbuild | 1 - arch/mips/include/asm/Kbuild | 1 - arch/powerpc/include/asm/Kbuild | 1 - arch/riscv/include/asm/Kbuild | 1 - arch/sparc/include/asm/Kbuild | 1 - drivers/pci/Kconfig | 2 +- include/asm-generic/Kbuild | 1 + 9 files changed, 2 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/2 asm-generic: Make msi.h a mandatory include/asm header
msi.h is generic for all architectures expect of x86 which has own version. Enabling MSI by including msi.h to architecture Kbuild is just additional step which doesn't need to be done.
The patch was created based on request to enable MSI for Microblaze.
---
https://lore.kernel.org/linux-riscv/[email protected]/
--- arch/arc/include/asm/Kbuild | 1 - arch/arm/include/asm/Kbuild | 1 - arch/arm64/include/asm/Kbuild | 1 - arch/mips/include/asm/Kbuild | 1 - arch/powerpc/include/asm/Kbuild | 1 - arch/riscv/include/asm/Kbuild | 1 - arch/sparc/include/asm/Kbuild | 1 - include/asm-generic/Kbuild | 1 + 8 files changed, 1 insertion(+), 7 deletions(-)
arch/arc/include/asm/Kbuild +0 -1
@@ -17,7 +17,6 @@ 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 += parport.h generic-y += percpu.h generic-y += preempt.h
arch/arm/include/asm/Kbuild +0 -1
@@ -12,7 +12,6 @@ generic-y += local.h generic-y += local64.h generic-y += mm-arch-hooks.h generic-y += mmiowb.h -generic-y += msi.h generic-y += parport.h generic-y += preempt.h generic-y += seccomp.h
arch/arm64/include/asm/Kbuild +0 -1
@@ -16,7 +16,6 @@ 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 += qrwlock.h generic-y += qspinlock.h generic-y += serial.h
arch/mips/include/asm/Kbuild +0 -1
@@ -13,7 +13,6 @@ generic-y += irq_work.h generic-y += local64.h generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h -generic-y += msi.h generic-y += parport.h generic-y += percpu.h generic-y += preempt.h
arch/powerpc/include/asm/Kbuild +0 -1
@@ -10,4 +10,3 @@ generic-y += local64.h generic-y += mcs_spinlock.h generic-y += preempt.h generic-y += vtime.h -generic-y += msi.h
arch/riscv/include/asm/Kbuild +0 -1
@@ -22,7 +22,6 @@ 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
arch/sparc/include/asm/Kbuild +0 -1
@@ -18,7 +18,6 @@ generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h generic-y += mmiowb.h generic-y += module.h -generic-y += msi.h generic-y += preempt.h generic-y += serial.h generic-y += trace_clock.h
include/asm-generic/Kbuild +1 -0
@@ -4,4 +4,5 @@ # (This file is not included when SRCARCH=um since UML borrows several # asm headers from the host architecutre.) +mandatory-y += msi.h mandatory-y += simd.h
Signature · 1 line
2.17.1
Re: [PATCH 1/2] asm-generic: Make msi.h a mandatory include/asm header
Quoted 2 lines · Michal Simek
msi.his generic for all architectures expect of x86 which has own version.
Maybe a typo? "except"
Anyway, the code looks good to me.
Quoted 114 lines
Enabling MSI by including
msi.hto architectureKbuildis just additional step which doesn't need to be done.
The patch was created based on request to enable MSI for Microblaze.Suggested-by Christoph Hellwig <[email protected]>Signed-off-by Michal Simek <[email protected]>---
https://lore.kernel.org/linux-riscv/[email protected]/
--- arch/arc/include/asm/Kbuild | 1 - arch/arm/include/asm/Kbuild | 1 - arch/arm64/include/asm/Kbuild | 1 - arch/mips/include/asm/Kbuild | 1 - arch/powerpc/include/asm/Kbuild | 1 - arch/riscv/include/asm/Kbuild | 1 - arch/sparc/include/asm/Kbuild | 1 - include/asm-generic/Kbuild | 1 + 8 files changed, 1 insertion(+), 7 deletions(-)arch/arc/include/asm/Kbuild +0
-1@@ -17,7 +17,6 @@ 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 += parport.h generic-y += percpu.h generic-y += preempt.harch/arm/include/asm/Kbuild +0
-1@@ -12,7 +12,6 @@ generic-y += local.h generic-y += local64.h generic-y += mm-arch-hooks.h generic-y += mmiowb.h -generic-y += msi.h generic-y += parport.h generic-y += preempt.h generic-y += seccomp.harch/arm64/include/asm/Kbuild +0
-1@@ -16,7 +16,6 @@ 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 += qrwlock.h generic-y += qspinlock.h generic-y += serial.harch/mips/include/asm/Kbuild +0
-1@@ -13,7 +13,6 @@ generic-y += irq_work.h generic-y += local64.h generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h -generic-y += msi.h generic-y += parport.h generic-y += percpu.h generic-y += preempt.harch/powerpc/include/asm/Kbuild +0
-1@@ -10,4 +10,3 @@ generic-y += local64.h generic-y += mcs_spinlock.h generic-y += preempt.h generic-y += vtime.h -generic-y += msi.harch/riscv/include/asm/Kbuild +0
-1@@ -22,7 +22,6 @@ 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.harch/sparc/include/asm/Kbuild +0
-1@@ -18,7 +18,6 @@ generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h generic-y += mmiowb.h generic-y += module.h -generic-y += msi.h generic-y += preempt.h generic-y += serial.h generic-y += trace_clock.hinclude/asm-generic/Kbuild +1
-1@@ -4,4 +4,5 @@ # (This file is not included when SRCARCH=um since UML borrows several # asm headers from the host architecutre.) +mandatory-y += msi.h mandatory-y += simd.h --2.17.1
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH 1/2] asm-generic: Make msi.h a mandatory include/asm header
Quoted 5 lines · Masahiro Yamada
Quoted 2 lines · Michal Simek
msi.his generic for all architectures expect of x86 which has own version.Maybe a typo? "except"
unfortunately yes.
Quoted 5 lines
Anyway, the code looks good to me.
Reviewed-by Masahiro Yamada <[email protected]>
I have sent v2.
Who should be taking these patches?
Thanks,
Michal
Re: [PATCH 1/2] asm-generic: Make msi.h a mandatory include/asm header
In reply to Michal SimekQuoted 10 lines · Michal Simek
msi.his generic for all architectures expect of x86 which has own version. Enabling MSI by includingmsi.hto architectureKbuildis just additional step which doesn't need to be done.
The patch was created based on request to enable MSI for Microblaze.Suggested-by Christoph Hellwig <[email protected]>Signed-off-by Michal Simek <[email protected]>---
[ ... ]
arch/riscv/include/asm/Kbuild generic-y += kvm_para.h · line 27
Quoted 12 lines
arch/riscv/include/asm/Kbuild +0
-1@@ -22,7 +22,6 @@ 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
Thanks Michał,
- Paul
PATCH 2/2 pci: Default to PCI_MSI_IRQ_DOMAIN
In reply to Michal SimekFrom: Palmer Dabbelt <[email protected]>
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.
---
Origin patch here:
https://lore.kernel.org/linux-pci/[email protected]/
--- drivers/pci/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/Kconfig +1 -1
@@ -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
Signature · 1 line
2.17.1
Quoted 20 lines · Michal Simek
Hi,
these two patches come from discussion with Christoph, Bjorn, Palmer and Waiman. The first patch was suggestion by Christoph here
https://lore.kernel.org/linux-riscv/[email protected]/
The second part was discussed
https://lore.kernel.org/linux-pci/mhng-5d9bcb53-225e-441f-86cc-b335624b3e7c@palmer-si-x1e/
and
https://lore.kernel.org/linux-pci/[email protected]/Thanks,
MichalMichal Simek (1):
asm-generic: Makemsi.ha mandatoryinclude/asmheaderPalmer Dabbelt (1):
pci: Default toPCI_MSI_IRQ_DOMAIN
Quoted 11 lines
arch/arc/include/asm/Kbuild | 1 - arch/arm/include/asm/Kbuild | 1 - arch/arm64/include/asm/Kbuild | 1 - arch/mips/include/asm/Kbuild | 1 - arch/powerpc/include/asm/Kbuild | 1 - arch/riscv/include/asm/Kbuild | 1 - arch/sparc/include/asm/Kbuild | 1 - drivers/pci/Kconfig | 2 +- include/asm-generic/Kbuild | 1 + 9 files changed, 2 insertions(+), 8 deletions(-)
That looks OK.