<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I keep debugging and find out the MCHBAR+0x5400 - MCHBAR+0x7FFC can be accessed. The address below 0x5400 can cause hang.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Zheng<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> coreboot <coreboot-bounces@coreboot.org> on behalf of Zheng Bao <fishbaoz@hotmail.com><br>
<b>Sent:</b> Monday, January 29, 2018 11:03 AM<br>
<b>To:</b> coreboot@coreboot.org; Matt DeVillier; Nico Huber<br>
<b>Subject:</b> [coreboot] [ haswell i7-4600] Why does accessing data in MCHBAR hang the boar?</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0"></p>
<div>
<div>After the MRC.bin is loaded and run, the board hang at  accessing data in <span>
MCHBAR32. If I move <span>MCHBAR32 backward <br>
</span></span></div>
<div><span><span>before the MRC.bin runs, it still hangs. It seems has nothing to do with MRC.bin, does it?</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span><br>
</span></span></div>
<div>   /* For reference print the System Agent version<br>
     * after executing the UEFI PEI stage.<br>
     */<br>
    post_code(0xb1);<br>
    u32 version = MCHBAR32(0x5034);  //<-------hang here<br>
    post_code(0x1b);<br>
    printk(BIOS_DEBUG, "System Agent Version %d.%d.%d Build %d\n",<br>
        version >> 24 , (version >> 16) & 0xff,<br>
        (version >> 8) & 0xff, version & 0xff);<br>
<br>
</div>
Zheng<br>
</div>
<div><br>
</div>
<div>------------------<br>
</div>
<div>coreboot-4.6-894-ga26344d-dirty Wed Jan 24 05:38:45 UTC 2018 romstage starting...<br>
Disabling Watchdog reboot... done.<br>
SMBus controller enabled.<br>
<br>
dimm: 00.0: 50<br>
00: 92 10 0b 03 03 19 00 01 03 52 01 08 0c 00 3e 00<br>
10: 69 78 69 30 69 11 20 89 00 05 3c 3c 00 f0 83 81<br>
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 11 21 00<br>
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
70: 00 00 00 00 00 01 98 04 11 41 4f 1a 2d f8 85 10<br>
80: 48 50 35 37 32 32 39 33 2d 44 38 38 2d 45 4c 43<br>
90: 57 47 00 20 02 fe 00 00 00 00 00 00 00 00 00 00<br>
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5a<br>
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
Setting up static northbridge registers... done.<br>
Initializing Graphics...<br>
Back from haswell_early_initialization()<br>
CPU id(40651) ucode:0000001c Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz<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: 'Master Header Locator' located CBFS at [300100:3fffc0)<br>
CBFS: Locating 'mrc.bin'<br>
CBFS: Found @ offset 9fec0 size 2e6e4<br>
System Agent: Starting up...<br>
System Agent: Initializing PCH<br>
install_ppi: overwrite GUID {ed097352-9041-445a-80b6-b29d509e8845}<br>
install_ppi: overwrite GUID {908c7f8b-5c48-47fb-8357-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>
<br>
<br>
</div>
<br>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>