Date: Fri, 24 Mar 2017 21:31:29 -0700 (PDT) From: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> To: Christopher Bowman <crb@chrisbowman.com> Cc: freebsd-hackers@freebsd.org Subject: Re: large PCIe BARs Message-ID: <201703250431.v2P4VTRa088886@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <21FF81F3-D290-4682-AB88-5769C52499C3@chrisbowman.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703250431.v2P4VTRa088886>