riscv: enable generic PCI resource mapping
PATCH RESEND 1/1 riscv: enable generic PCI resource mapping
From: Stanislaw Kardach <[email protected]>
Enable the PCI resource mapping on RISC-V using the generic framework. This allows userspace applications to mmap PCI resources using /sys/devices/pci*/*/resource* interface.
The mmap has been tested with Intel x520-DA2 NIC card on a HiFive Unmatched board (SiFive FU740 SoC).
Signed-off-by Stanislaw Kardach <[email protected]>
Signed-off-by Palmer Dabbelt <[email protected]>
---
David, who was CC'd on the original patch, pointed out I missed this one. For some reason it's not in my inbox, I'm not entirely sure why as it landed on lore:
https://lore.kernel.org/linux-riscv/[email protected]/ . Given the discrepency I thought it would be best to just send this out again.
I've put this on for-next.
Thanks!
--- arch/riscv/include/asm/pci.h | 2 ++ 1 file changed, 2 insertions(+)
arch/riscv/include/asm/pci.h +2 -0
@@ -18,6 +18,8 @@/* RISC-V shim does not initialize PCI bus */ #define pcibios_assign_all_busses () 1 +#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 +extern int isa_dma_bridge_buggy;#ifdef CONFIG_PCI
Signature · 7 lines
2.31.1.818.g46aad6cb9e-goog _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv