<br><br><div class="gmail_quote">On Mon, Aug 17, 2009 at 9:51 AM, ron minnich <span dir="ltr"><<a href="mailto:rminnich@gmail.com" target="_blank">rminnich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On Mon, Aug 17, 2009 at 8:28 AM, Myles Watson<<a href="mailto:mylesgw@gmail.com" target="_blank">mylesgw@gmail.com</a>> wrote:<br>
<br>
</div><div>> The correct way to do this is to add the functionality to the chipset init<br>
> function.  It should check the bit that was set in the device structure and<br>
> write the correct thing to the PCI configuration space.<br>
<br>
</div>How about we go through this step by step, and then Arnaud gets stuck<br>
with writing up what we figure out.</blockquote><div>Yes.  I'm frequently guilty of skipping steps.<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


So, Arnaud, tell me more. I'm utterly ignorant of the chipset here.<br>
<br>
As I learn more, we can fill this out and, hopefully, have something<br>
others can use later to know what to do.<br>
<br>
(calling from auto.c is bad form :-)<br>
<br>
What chipset needs to have a config register setting done?<br>
(assuming you don't know what to do from IRC already :-)<font color="#888888"></font></blockquote><div><br>Setting up VGA for PCI: 07:00.0<br>
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 03:04.0<br>
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 02:00.0<br>
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 00:03.0<br>
Setting PCI_BRIDGE_CTL_VGA for bridge PCI_DOMAIN: 0000<br>
Setting PCI_BRIDGE_CTL_VGA for bridge Root Device<br>
Allocating resources...<br><br>For me the steps would be:<br>1. Make sure that the device that needs the config writes is in the above list.<br><br>2. Add code like this:<br>     if (dev->link[link].bridge_ctrl & PCI_BRIDGE_CTL_VGA) {<br>
          /* Add your code from auto.c here */<br>     }<br>to the .init function of the bridge.<br><br>For example, assuming that the i3100 PCIe port needs the configuration, I would add the code in:<br><br>src/northbridge/intel/i3100/pciexp_porta.c<br>
</div></div><br>In the existing pcie_init function.<br><br>Thanks,<br>Myles<br><br>