<div>Kumar, thanks a lot for your prompt and clear answers. But I still have a couple questions about the BARs.<br> </div>
<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The PCI resources are used for any PCI devices that need memory<br>mapped space allocated to them. What devices are you connecting over
<br>PCI?</blockquote>
<div> </div>
<div><font color="#996633">I am connecting Broadcom BCM56502 controllers over PCI.</font></div><br>
<div>The region was large since the reference board has general purpose<br>PCI slots for any number of various cards. We provide a large space<br>to allow for those cards to be allocated into. Depending on your<br>application you can adjust this as you need.
</div>
<div> </div>
<div><font color="#996633">I'm a bit confused here. If the host bridge is ignored/excluded, then the region size in BARs will not be allocated corresponding resource by the PCI subsystem, then how would other PCI devices in the slots could be allocated in the BAR's range? If I understand correctly, the PCI devices's resources are allocated based on the bridge resource, which is assigned statically by PCI subsystem using hose->mem_space and hose->io_space instead of reading it from the BARs. Maybe you are saying in the case the CPU is in agent mode and its PCI host bridge is functioning as a PCI-PCI bridge?
</font><br> </div>
<div>You are not leaving any memory space for any of the onchip devices,<br>the error messages are because the regions of memory that the devices<br>are expected to be at are already occupied by the PCI space.<br> </div>
<div>Isn't it the PCI IO and PCI MEM space are separated from local memory space? I believe I see the global io_resource and mem_resource have the range of 0x0 - 0xFFFFFFFF. </div>
<div><br>I appreciate your help,</div>
<div> </div>
<div>Thanks,</div>
<div>Luong Ngo<br><br> </div></div><br>