large PCIe BARs

Conrad Meyer cem at freebsd.org
Sat Mar 25 01:30:59 UTC 2017


Hi Christopher,

Yeah, FreeBSD can easily map BARs that large.  I've personally mapped
a 512GB BAR, although I don't recommend it.  We regularly use 32GB
BARs.

This might just be a driver bug.

Best,
Conrad



On Fri, Mar 24, 2017 at 5:38 PM, Christopher Bowman <crb at chrisbowman.com> wrote:
> I have an FPGA PCIe device and driver I designing.  I think my driver is trying to map the PCIe address space for one of the BARs and it’s failing.  My guess is that it’s failing due to the size.  The board has 2G of onboard memory that I’d like to present as one large BAR.  Does FreeBSD (11.0 release) allow for mapping PCIe resources that larger?  If not is there a limit?  If so any one have any comments?
> Thanks,
> Christopher
>
> sp6050: probing for SP605
> sp6050: <Xilinx SP605 board> at device 0.0 on pci3
> sp6050: attach of SP605
> sp6050: 0x40000000 bytes of rid 0x10 res 3 failed (0, 0xffffffffffffffff).
> sp6050: Could not map memory
> device_attach: sp6050 attach returned 6
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list