From owner-freebsd-hackers@freebsd.org Sat Mar 25 04:31:37 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB58ED1DAAE for ; Sat, 25 Mar 2017 04:31:37 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B6271EB1 for ; Sat, 25 Mar 2017 04:31:37 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id v2P4VVw1088887; Fri, 24 Mar 2017 21:31:31 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id v2P4VTRa088886; Fri, 24 Mar 2017 21:31:29 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201703250431.v2P4VTRa088886@pdx.rh.CN85.dnsmgr.net> Subject: Re: large PCIe BARs In-Reply-To: <21FF81F3-D290-4682-AB88-5769C52499C3@chrisbowman.com> To: Christopher Bowman Date: Fri, 24 Mar 2017 21:31:29 -0700 (PDT) CC: freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Sat, 25 Mar 2017 11:25:23 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2017 04:31:37 -0000 > 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: 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