large PCIe BARs

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Sat Mar 25 04:31:37 UTC 2017


> 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

Are you on amd64?  You should be able to map that much as the other reply
posted, but I do not see a uname -a here to tell what your really running,
just that your on FreeBSD 11.0.

Also it would help to get the 'pciconf -l -b' output to see just how
the pci information is being presented.

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the freebsd-hackers mailing list