Re: 64 bit address to a pcie card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 8, 2012 at 10:39 PM, sumit chaudhary
<flyingbee.linux@xxxxxxxxx> wrote:
>  Hi Bjorn,
>
>  Device is working as expected but problem is that I want to test this
>  device  with real 64 bit addresses that lies above 4GB.
>  is there a way to allocate addresses above 4GB range ?
>  If I try to allocate BAR size more than 2GB i.e. to push allocated
>  address above 4GB, I increase resource size asked from OS
>  than host system stopped booting and hangs.
>  I also tried enumerating PCI subsystem using kernel command line
>  option pci_assign = buses, but same problem persist.
>  I also tried  Increasing RAM of my system to 4 GB but still address
>  allocation is in 32 bit range.

you can check my for-pci-res_alloc branch and attached patch.

	git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
for-pci-res-alloc

and you need to boot with pci=pref_bar. it will clear pref_bar and
assign mem64 bar to above at first.

Thanks

Yinghai

Attachment: pci_assign_pref.patch
Description: Binary data


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux