<div dir="ltr"><span style="font-size:12.8px">> I use “pm-suspend” to go to S3, but “systemctl suspend” works exactly the same. USB wakeup doesn't work at all for me. I wake system with power button.</span><br style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I myself will check what is going on with my HP EliteBook 840 G1 (HSW i5-4300U) upon my return to Munich (on my bare metal Fedora 26). I have to. If it works (and I remember that it works, not ideally, as I recall), there is something awry with Coreboot S3 state (ACPI tables) settings, for sure.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Please, stay tuned!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Zoran</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 31, 2017 at 10:36 AM, Аладышев Константин <span dir="ltr"><<a href="mailto:aladyshev@nicevt.ru" target="_blank">aladyshev@nicevt.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don’t think that the problem is connected to operating system version as both Windows 7 and Ubuntu 16.04 act the same for me:<br>
- for S3 time less than ~15s, resume works ok<br>
- for S3 time longer than ~15s, Coreboot won't resume with quick_ram_check error<br>
<br>
I use “pm-suspend” to go to S3, but “systemctl suspend” works exactly the same. USB wakeup doesn't work at all for me. I wake system with power button.<br>
<br>
<br>
From: Zoran Stojsavljevic [mailto:<a href="mailto:zoran.stojsavljevic@gmail.com">zoran.stojsavljevic@<wbr>gmail.com</a>]<br>
Sent: Tuesday, October 31, 2017 10:19 AM<br>
To: Аладышев Константин<br>
Cc: Coreboot<br>
Subject: Re: [coreboot] Does S3 work on Haswell boards?<br>
<div class="HOEnZb"><div class="h5"><br>
Hello Kostja,<br>
<br>
Since presently I am not in Munich/Germany (I am in front of my HSW notebook in my apartment in Belgrade), I have limited abilities to test your question, since I do not have native/bare metal Fedora on my SSD (I have in safe box HDD with dual boot: WIN10 and Fedora 26 in Munich).<br>
<br>
Here, I have my notebook (HP EliteBook 840 G1) with SSD, bare metal WIN10 64 PRO and VMWare reader with Fedora 26 VM. IT is based on HSW i5-4300:<br>
[user@192 ~]$ dmesg | grep 4300<br>
[    0.097524] smpboot: CPU0: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (family: 0x6, model: 0x45, stepping: 0x1)<br>
[user@192 ~]$<br>
<br>
Here is the pointer to <a href="http://ark.intel.com" rel="noreferrer" target="_blank">ark.intel.com</a> for this CPU: <a href="https://ark.intel.com/products/76308/Intel-Core-i5-4300U-Processor-3M-Cache-up-to-2_90-GHz" rel="noreferrer" target="_blank">https://ark.intel.com/<wbr>products/76308/Intel-Core-i5-<wbr>4300U-Processor-3M-Cache-up-<wbr>to-2_90-GHz</a><br>
<br>
The current BSP used is UEFI: BIOS 01.39 Rev.A (08 Nov 2016) -> sp77791.exe (12.7 MB)<br>
_______<br>
<br>
Being in WIN10, suspend works when I simply press <F3>, but resume works ONLY while I press muse buttons - keyboard <ANY KEY> does not work, although it should?!<br>
<br>
I did several attempts to suspend and resume using Fedora 26 VM, but I did not have success. I do remember that this does work with my bare metal Fedora 26:<br>
Kernel used for Fedora26 VM: uname -r -> 4.13.9-200.fc26.x86_64 .<br>
<br>
I would strongly suggest to use two methods to check S3 on Linux bare metal:<br>
[1] To use systemctl suspend and systemctl resume commands;<br>
[2] To install on your HSW platform the following package: <a href="http://www.linuxfromscratch.org/blfs/view/cvs/general/pm-utils.html" rel="noreferrer" target="_blank">http://www.linuxfromscratch.<wbr>org/blfs/view/cvs/general/pm-<wbr>utils.html</a><br>
      so you can try the following two commands: pm-suspend and pm-hibernate (wakeup should work using keyboard/mouse)!<br>
<br>
First, you should do all these tests with UEFI BIOS for your platform, record the results, and then switch to Coreboot, than repeat all use cases, and cross compare.<br>
<br>
If you do, please, post your kernel version and results here.<br>
<br>
Hope this helps.<br>
<br>
Best Regards,<br>
Zoran Stojsavljevic<br>
_______<br>
<br>
On Mon, Oct 30, 2017 at 4:49 PM, Аладышев Константин <<a href="mailto:aladyshev@nicevt.ru">aladyshev@nicevt.ru</a>> wrote:<br>
I have problem with S3 mode on Haswell board. Everything is fine if S3 time<br>
is very small (<15 seconds), but if it is longer, coreboot won't resume. It<br>
fails on quick_ram_check.<br>
<br>
I've enabled mrc.cache and ME in coreboot. I use ME binary from original<br>
board and MRC.bin from Google Panther.<br>
<br>
Log from S3 resume:<br>
<br>
"""<br>
Disabling Watchdog reboot... done.<br>
SMBus controller enabled.<br>
Setting up static northbridge registers... done.<br>
Initializing Graphics...<br>
Back from haswell_early_initialization()<br>
Resume from S3 detected.<br>
CPU id(40651) ucode:0000001c Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz<br>
AES supported, TXT supported, VT supported<br>
PCH type: LP Premium, device id: 9c43, rev id 4<br>
Starting UEFI PEI System Agent<br>
CBFS: CBFS_HEADER_ROM_ADDRESS: 0xfffff7d0/0x1000000<br>
CBFS: CBFS location: 0xf00000~0xfff7c0, align: 64<br>
CBFS: Looking for 'mrc.cache' starting from 0xf00000.<br>
CBFS:  - load entry 0xf00000 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf00000: bootsplash.jpg)<br>
CBFS:  - load entry 0xf187c0 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf187c0: bootorder)<br>
CBFS:  - load entry 0xf18b80 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf18b80: cmos_layout.bin)<br>
CBFS:  - load entry 0xf19040 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf19040: pci8086,0a26.rom)<br>
CBFS:  - load entry 0xf29080 file name (72 bytes)...<br>
CBFS:  (unmatched file @0xf29080: cpu_microcode_blob.bin)<br>
CBFS:  - load entry 0xf2e100 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf2e100: etc/usb-time-sigatt)<br>
CBFS:  - load entry 0xf2e140 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2e140: config)<br>
CBFS:  - load entry 0xf2fa00 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2fa00: revision)<br>
CBFS:  - load entry 0xf2fc80 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2fc80: )<br>
CBFS:  - load entry 0xf2ff80 file name (76 bytes)...<br>
CBFS:  (unmatched file @0xf2ff80: fallback/romstage)<br>
CBFS:  - load entry 0xf38f00 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf38f00: fallback/ramstage)<br>
CBFS:  - load entry 0xf4d0c0 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf4d0c0: fallback/payload)<br>
CBFS:  - load entry 0xf5e8c0 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf5e8c0: pci8086,1521.rom)<br>
CBFS:  - load entry 0xf6e900 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf6e900: )<br>
CBFS:  - load entry 0xf9ffc0 file name (40 bytes)...<br>
CBFS:  (unmatched file @0xf9ffc0: mrc.bin)<br>
CBFS:  - load entry 0xfceb40 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xfceb40: )<br>
CBFS:  - load entry 0xfdffc0 file name (40 bytes)...<br>
CBFS: Found file (offset=0xfe0000, len=65536).<br>
find_current_mrc_cache_local: picked entry 0 from cache block<br>
prepare_mrc_cache: at fffe0010, size fe0 checksum 9771<br>
CBFS: CBFS_HEADER_ROM_ADDRESS: 0xfffff7d0/0x1000000<br>
CBFS: CBFS location: 0xf00000~0xfff7c0, align: 64<br>
CBFS: Looking for 'mrc.bin' starting from 0xf00000.<br>
CBFS:  - load entry 0xf00000 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf00000: bootsplash.jpg)<br>
CBFS:  - load entry 0xf187c0 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf187c0: bootorder)<br>
CBFS:  - load entry 0xf18b80 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf18b80: cmos_layout.bin)<br>
CBFS:  - load entry 0xf19040 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf19040: pci8086,0a26.rom)<br>
CBFS:  - load entry 0xf29080 file name (72 bytes)...<br>
CBFS:  (unmatched file @0xf29080: cpu_microcode_blob.bin)<br>
CBFS:  - load entry 0xf2e100 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf2e100: etc/usb-time-sigatt)<br>
CBFS:  - load entry 0xf2e140 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2e140: config)<br>
CBFS:  - load entry 0xf2fa00 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2fa00: revision)<br>
CBFS:  - load entry 0xf2fc80 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf2fc80: )<br>
CBFS:  - load entry 0xf2ff80 file name (76 bytes)...<br>
CBFS:  (unmatched file @0xf2ff80: fallback/romstage)<br>
CBFS:  - load entry 0xf38f00 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf38f00: fallback/ramstage)<br>
CBFS:  - load entry 0xf4d0c0 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf4d0c0: fallback/payload)<br>
CBFS:  - load entry 0xf5e8c0 file name (32 bytes)...<br>
CBFS:  (unmatched file @0xf5e8c0: pci8086,1521.rom)<br>
CBFS:  - load entry 0xf6e900 file name (16 bytes)...<br>
CBFS:  (unmatched file @0xf6e900: )<br>
CBFS:  - load entry 0xf9ffc0 file name (40 bytes)...<br>
CBFS: Found file (offset=0xfa0000, len=191236).<br>
System Agent: Starting up...<br>
System Agent: S3 resume detected<br>
System Agent: Initializing PCH<br>
install_ppi: overwrite GUID {ed097352-9041-445a-80b6-<wbr>b29d509e8845}<br>
install_ppi: overwrite GUID {908c7f8b-5c48-47fb-8357-<wbr>f5fd4e235276}<br>
System Agent: Initializing PCH (SMBUS)<br>
System Agent: Initializing PCH (USB)<br>
System Agent: Initializing PCH (SA Init)<br>
System Agent: Initializing PCH (Me UMA)<br>
System Agent: Initializing Memory<br>
System Agent: Done.<br>
Sanity checking heap.<br>
System Agent Version 1.6.1 Build 2<br>
memcfg DDR3 clock 1600 MHz<br>
memcfg channel assignment: A: 0, B  1, C  2<br>
memcfg channel[0] config (00600010):<br>
   ECC inactive<br>
   enhanced interleave mode on<br>
   rank interleave on<br>
   DIMMA 4096 MB width x8 or x32 single rank, selected<br>
   DIMMB 0 MB width x8 or x32 single rank<br>
memcfg channel[1] config (00600000):<br>
   ECC inactive<br>
   enhanced interleave mode on<br>
   rank interleave on<br>
   DIMMA 0 MB width x8 or x32 single rank, selected<br>
   DIMMB 0 MB width x8 or x32 single rank<br>
ME: FW Partition Table      : OK<br>
ME: Bringup Loader Failure  : NO<br>
ME: Firmware Init Complete  : NO<br>
ME: Manufacturing Mode      : YES<br>
ME: Boot Options Present    : NO<br>
ME: Update In Progress      : NO<br>
ME: Current Working State   : Initializing<br>
ME: Current Operation State : Bring up<br>
ME: Current Operation Mode  : Normal<br>
ME: Error Code              : Debug Failure<br>
ME: Progress Phase          : BUP Phase<br>
ME: Power Management Event  : Clean global reset<br>
ME: Progress Phase State    : 0x7b<br>
before quick_ram_check<br>
RAM INIT FAILURE!<br>
""""<br>
<br>
It seems like DRAM controller and ME are initialized correctly (like in<br>
normal boot), what can be wrong?<br>
<br>
Does S3 work on Haswell boards?<br>
<br>
<br>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://mail.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://mail.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>