Re: dynamic BAR

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

 



On Thu, 23 Jun 2011 23:16:57 -0500
Xianghua Xiao <xiaoxianghua@xxxxxxxxx> wrote:

> We're using a ARM that only has 256MB PCI space, however I have a PCI
> device that has a BAR(for its own memory) that is 512MB, for ARM to
> allocate it I modified the BAR size on the device to 128MB(there are
> other PCI devices to use portion of the rest 128MB)
> 
> I can modify the BAR at run time, is it ok for me to change the BAR
> address to address all the 512MB on PCI device? The PCI memory address
> ARM allocates at boot time can stay the same, but the BAR will be
> changed to re-map to all the 512MB space on the PCI device(each time
> for 128M), is this do-able?

Sounds pretty hackish, but as long as you can deal with the decode
priorities for the address space on your platform (e.g. make sure your
512M device doesn't start decoding cycles meant for RAM or some other
fixed resource region) then doing the above should be possible.

-- 
Jesse Barnes, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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