<div dir="ltr"><div><div>I have enabled CSM in the vendor BIOS and booted a "combined" 
(UEFI+MBR) live Linux in MBR mode which actually helped to get 
the PIRQ table. So far so good. :)<br></div><div><br></div><div>Seems like this board has 9 IRQ slots and a somewhat different PIRQ table compared to the one your board has.</div><div><br></div><div></div>Thanks
 a lot for your assistance, I'm going to try building Coreboot with verbose debugging enabled and flash it to see how well it performs.</div><div><br></div><div>Hopefully the on-board serial port will work with the current SIO code. Looks like the internals of the serial interface are quite similar (identical?) for all ITE chips so maybe I can make it work without the datasheet.<br></div><div><br></div><div>Regards,<br></div>Gergely<div class="gmail_extra"><br><div class="gmail_quote">On 29 November 2017 at 16:05, Sergej Ivanov <span dir="ltr"><<a href="mailto:getinaks@gmail.com" target="_blank">getinaks@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">Try to boot linux in legacy mode(enable CSM and set all boot options to legacy mode), and run getpir, i've made my table this way. I also recommend to enable AGESA debug output to serial port, it can help you with ddr training problems.</div></div><div class="gmail_extra"><br><div class="gmail_quote">29 нояб. 2017 г. 12:40 пользователь "Gergely Kiss" <<a href="mailto:mail.gery@gmail.com" target="_blank">mail.gery@gmail.com</a>> написал:<div><div class="h5"><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Sergej,<br><br></div>thanks a lot for your feedback, it's much appreciated.<br><br></div>As far as I can tell, my board only has 8 IRQ slots while the one you ported has 10. I believe this is (partially) due to the number of PCI-e slots does not match (the Biostar board has one extra PCI-e x16 slot) so there definitely is a difference regardless of sharing the same chipset.<br><br></div>Can you please share some information on how you fetched the PIRQ table from the vendor firmware? I have tried the (now deprecated) getpir utility but it could not find a PIRQ table neither in the vendor firmware nor in the memory.<br><br></div>Is there some other tool I could use?<br><br></div>Thanks,<br></div>Gergely<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2017 at 19:59, Sergej Ivanov <span dir="ltr"><<a href="mailto:getinaks@gmail.com" target="_blank">getinaks@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">Almost everyone socket AM1 boards have same PIRQ tables. While porting Biostar AM1ML i've dumped this table from vendor UEFI (using old method, that was depricated long time ago). BTW don't forget to remove additional SIO config code from romstage. </div></div><div class="gmail_extra"><br><div class="gmail_quote">28 нояб. 2017 г. 19:16 пользователь "Gergely Kiss" <<a href="mailto:mail.gery@gmail.com" target="_blank">mail.gery@gmail.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_4747967374631763454m_-7068063016873335979h5"><div dir="ltr"><div><div><div><div><div><div>Hi<span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"> All,<br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">my name is Gergely Kiss and I'm currently </span><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">working on porting Coreboot to the ASUS AM1I-A board.</span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">I'm a great fan of open source software, I've contributed a few times to some well-known projects like Squid, Monodevelop and Openwrt, just to name a few.<br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">I would need a little bit of help from the devs about how to create the PCI IRQ routing table for my board (the easiest way possible).</span><br><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"></span></div></div></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">I'm using the Biostar AM1ML board as a template as it looks to be a very similar board as the one I have. The only differences I can see is the SuperIO (ITE 8623E) & the audio chip (Realtek ALC887-VD) and also some minor things with the board layout so I'm not expecting to have too much difficulties.<br></span></div></div><div><br><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">Looking at the file <a href="https://review.coreboot.org/cgit/coreboot.git/tree/src/mainboard/biostar/am1ml/irq_tables.c" target="_blank">https://review.coreboot.org/cg<wbr>it/coreboot.git/tree/src/mainb<wbr>oard/biostar/am1ml/irq_tables.<wbr>c</a>, the following questions came to my mind:<br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">* Do I really have to follow the "long way" as outlined in the Wiki page at <a href="https://www.coreboot.org/Creating_Valid_IRQ_Tables" target="_blank">https://www.coreboot.org/Creat<wbr>ing_Valid_IRQ_Tables</a>? Couldn't I just fetch the routing table from the OEM BIOS somehow and implement it in the source?<br></span></div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">*
 What's the meaning of the fields "link" & "bitmap"? Are these common 
for all boards with the same chipset? Where should I look up this information?<br></span></div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">* I believe I have to create as many entries within the struct as many IRQ slots exist for the board. Am I right?<br></span><div><div><div><br></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">I found a table in the board's manual (attached) which looks useful but I'm afraid it might not contain all the information I need to construct a valid routing table.</span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">As for the SuperIO chip, I think I won't have too much issues getting it to work as it looks like ITE SIO chips are quite similar from the developer's perspective but I still miss having a datasheet available. I'll try to reach out to the vendor to see if they are willing to share a datasheet with me.<br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">Any help from you guys is much appreciated.<br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"></span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">Thanks & Regards,</span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c">Gergely</span></div><div><span class="m_4747967374631763454m_-7068063016873335979m_9206917722784311107m_-7594730641901630234gmail-pl-c"><br></span></div></div></div></div>
<br></div></div><span class="m_4747967374631763454m_-7068063016873335979HOEnZb"><font color="#888888">--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/mail<wbr>man/listinfo/coreboot</a><br></font></span></blockquote></div></div>
</blockquote></div><br></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div></div>