<div dir="ltr"><div><span style="font-family:monospace,monospace;font-size:12.8px">Hello Nuno,</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Very interesting use case, I should say.</span></div><b style="font-family:monospace,monospace;font-size:12.8px"><div><b style="font-family:monospace,monospace;font-size:12.8px"><br></b></div>> 1) Init:</b><br style="font-family:monospace,monospace;font-size:12.8px"><span style="font-family:monospace,monospace;font-size:12.8px">> --------</span><br style="font-family:monospace,monospace;font-size:12.8px"><span style="font-family:monospace,monospace;font-size:12.8px">> Recently I bought a refurbished x220 and flashed it with a custom BIOS (Lenovo ThinkPad</span><div><span style="font-family:monospace,monospace;font-size:12.8px">> x220_1.40-(8DET70WW)-8duj26us_</span><span style="font-family:monospace,monospace;font-size:12.8px">NWL_ADV_AES_PM_Speedo) because I wanted to unlock the RAM speed</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">> to be 1866MHz (max RAM speed is locked to 1333Mhz in official BIOS), white-list some Wi-Fi</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">> cards, Advanced Chipset Config menu, etc.</span><br style="font-family:monospace,monospace;font-size:12.8px">><br style="font-family:monospace,monospace;font-size:12.8px"><span style="font-family:monospace,monospace;font-size:12.8px">> This custom BIOS worked perfectly until I changed some settings related with Intel VT-x. If</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">> I recall correctly, I activated SR-IOV for PCI-E, saved and exited and after that x220 =</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">> BRICKED.</span><br style="font-family:monospace,monospace;font-size:12.8px">> <br style="font-family:monospace,monospace;font-size:12.8px"><span style="font-family:monospace,monospace;font-size:12.8px">> I tried every typical troubleshooting/workaround (Removing as much HW as possible, unplug</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">> BIOS battery for hours, etc), nothing worked.</span><br></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">This is peculiar... How SR-IOV feature can break the BIOS??? Never saw such or similar brick.</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Taking to account that introduced </span><span style="font-family:monospace,monospace;font-size:12.8px">custom BIOS (Lenovo ThinkPad</span><span style="font-family:monospace,monospace;font-size:12.8px"> x220_1.40-(8DET70WW)-8duj26us_</span><span style="font-family:monospace,monospace;font-size:12.8px">NWL_ADV_AES_PM_Speedo) added (probably) additional few Memory Reference Code algorithms to make DDR3 work @ </span><span style="font-family:monospace,monospace;font-size:12.8px">1866MHz</span><span style="font-family:monospace,monospace;font-size:12.8px">, I have no clue how these two parameters are connected/in relations.</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">But I'll try to investigate this use case. Not (at all) in connection with Coreboot, rather I would like to understand why SNB BIOS behaves like this? Maybe I can learn much more out of this?!</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><font face="monospace, monospace"><span style="font-size:12.8px">I'll move this to other (BIOS based) forum, and try to see if there are more experienced BIOS people to put some light on/demystify this problem?</span></font></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">It is, after all, Sandy Bridge CORe: </span><font face="monospace, monospace"><span style="font-size:12.8px"><a href="http://thinkwiki.de/X220#Technische_Daten">http://thinkwiki.de/X220#Technische_Daten</a></span></font></div><div><span style="font-size:12.8px;font-family:monospace,monospace"><a href="http://ark.intel.com/products/52229/Intel-Core-i5-2520M-Processor-3M-Cache-up-to-3_20-GHz">http://ark.intel.com/products/52229/Intel-Core-i5-2520M-Processor-3M-Cache-up-to-3_20-GHz</a></span><br></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Let me see what I can dig out of this? ;-)</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Best Regards,</span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Zoran</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 23, 2016 at 3:00 PM, Nuno Moreira <span dir="ltr"><<a href="mailto:naomoreira@gmail.com" target="_blank">naomoreira@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="ltr"><span style="font-family:monospace,monospace">Hello, everyone.<br><br>First of all, I would like to thanks and to congratulate all the community who helps to develop and to optimize this great project. Keep it up :)<br><br>I would appreciate if you can give me some opinions or point me to someone who will, regarding the Open Issues I present below (3.1 and 3.2).<br>Trying to give you a brief contextualization of my status before and after Coreboot.<br><br><b>1) Init:</b><br>--------<br>Recently I bought a refurbished x220 and flashed it with a custom BIOS (Lenovo ThinkPad x220_1.40-(8DET70WW)-8duj26us_NWL_ADV_AES_PM_Speedo) because I wanted to unlock the RAM speed to be 1866MHz (max RAM speed is locked to 1333Mhz in official BIOS), white-list some Wi-Fi cards, Advanced Chipset Config menu, etc.<br><br>This custom BIOS worked perfectly until I changed some settings related with Intel VT-x. If I recall correctly, I activated SR-IOV for PCI-E, saved and exited and after that x220 = BRICKED.<br><br>I tried every typical troubleshooting/workaround (Removing as much HW as possible, unplug BIOS battery for hours, etc), nothing worked. <br>x220 BIOS never booted again and the machine was in a constant boot loop. Don't know why/how this happened in the first place, but since it is a custom BIOS and it is very hard to reach the developer, I knew I could never get it to work without an intrusive method...   <br><br><b>2) Coreboot as Salvation:</b><br>-------------------------<br>I started to look for alternatives, and luckily, Coreboot supports x220 since a couple of months ago :) <br>After dealing with all the learning curve to understand the minimal requirements to compile and install Coreboot (tricky part is basically the need for HW flashing) I managed to get a working BIOS and x220 is now (almost 100%) operational :) <br>I've read and used the blobs from the "damaged" custom BIOS. I'm not sure if this can affect the functionality of Coreboot. Apparently, it does not.<br><i>(Let me know if anyone of you need details/help about/with the HW flashing in this type of chip (MX25L6406E/MX25L6408E)).<br></i><br><b>3) Coreboot rocks but... Current Open issues:</b><br>---------------------------------------------<br>I decided to use coreboot-4.4 release instead of git-master.<br>As payload I'm using SeaBIOS (booting Archlinux with Syslinux as bootloader).<br><br><b>3.1) RAM speed:</b><br>--------------- <br>I've 2 x 8GB DRR3-1866MHz installed. The 16GB are detected but the speed reported is just 667MHz.<br>With the official BIOS, the max speed was 1333Mhz. Don't know how Coreboot is handling this subject in this particular main-board...<br>DDR timings are a little bit confusing to me, I guess...<br><br>Before, with dmidecode -t 17 the speed was 1333Mhz and now it is just 667Mhz...<br>This 667MHz speed I get with coreboot is 2x667=1333Mhz or in reality is 2x333MHz?<br>In "northbridge/intel/sandybridge/raminit.c" we can see the following statement:<br><br>    /* Maximum supported DDR3 frequency is 1066MHz (DDR3 2133) so make sure<br>     * we cap it if we have faster DIMMs.<br>     * Then, align it to the closest JEDEC standard frequency */<br><br><b>=> So, if I'm understanding it correctly, current 667 Mhz is not the maximum </b></span><span style="font-family:monospace,monospace"><b><span style="font-family:monospace,monospace"><b>speed </b></span>supported.<br>Any idea on how I can get higher speeds?</b><br><br><b>3.2) TP-SMAPI: </b><br>--------------<br>Looks like tp-smapi is not available using Coreboot. It was OK with the official and custom BIOS before.<br>From what I've read, this is not a Coreboot limitation... Not sure if the blobs/EC are not ok for tp-smapi now...<br>I use tp-smapi for battery threshold, etc. <a href="http://linrunner.de/en/tlp/tlp.html" target="_blank">TLP </a>also uses tp-smapi. So it is kinda of important to me.<br><b><br>=> Anyone using tp-smapi with no problems out there?</b><br><br><b>3.3) Config files:</b><br>------------------<br>coreboot - <a href="http://pastebin.com/9ymtxLBW" target="_blank">http://pastebin.com/9ymtxLBW</a><br>seabios - <a href="http://pastebin.com/rUU7ajRH" target="_blank">http://pastebin.com/rUU7ajRH</a><br>cmos.default - <a href="http://pastebin.com/Pm5vS15R" target="_blank">http://pastebin.com/Pm5vS15R</a><br><br>Thanks in advance, guys.<br>All the best \o<br><br>--sigkill</span><br></div>
<br>--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/mailman/listinfo/coreboot</a><br></blockquote></div><br></div>