<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1073284100;
        mso-list-type:hybrid;
        mso-list-template-ids:382613568 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please help us on the below queries:<o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">How to issue soft reset from coreboot source ?<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">We issued soft reset using outb command from a sample Elf payload. The board boots to payload through coreboot, sends POST codes from 0x8 to 0x0f for two iterations and then the payload
 will trigger soft reset. After about 20 mins the board gets hang. Below is the code we are using for soft reset from payload.<o:p></o:p></li></ol>
<p class="MsoListParagraph"><i>outb(RST_CPU | SYS_RST, RST_CNT);<o:p></o:p></i></p>
<p class="MsoListParagraph"><i>                while (1)<o:p></o:p></i></p>
<p class="MsoListParagraph"><i>                                __asm__(“hlt”);<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">             Is the above method is correct way for issuing soft reset ?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please provide feedback on this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks & Regards,<o:p></o:p></p>
<p class="MsoNormal">Antony<o:p></o:p></p>
<p class="MsoNormal"><b>From:</b> Naresh G. Solanki [mailto:naresh.solanki.2011@gmail.com]
<br>
<b>Sent:</b> Wednesday, November 07, 2018 11:09 PM<br>
<b>To:</b> Aaron Durbin <adurbin@google.com><br>
<b>Cc:</b> Antony AbeePrakash X V <AntonyAbee.PrakashXV@LntTechservices.com>; coreboot <coreboot@coreboot.org>; Dinesh Kumar <DINESHKUMAR.VARADARAJAN@LNTTECHSERVICES.COM><br>
<b>Subject:</b> Re: [coreboot] Coreboot hangs during SYS_RESET<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">1. Can you make sure right microcode based on the CPUID is added. This is must. Based on CPUID(I guess 506cX for APL), you can locate them at 3rdparty/blobs/..<o:p></o:p></p>
<div>
<p class="MsoNormal">Select CBFS GENERATE and specify CPU UCODE BINARIES path.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">2. Can you provide complete log and config(after adding microcode into cbfs) if you still see sys_reset issue.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Naresh<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed 7 Nov, 2018, 8:56 PM Aaron Durbin via coreboot <<a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On Wed, Nov 7, 2018 at 6:47 AM Antony AbeePrakash X V<br>
<<a href="mailto:AntonyAbee.PrakashXV@lnttechservices.com" target="_blank">AntonyAbee.PrakashXV@lnttechservices.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
><br>
><br>
> We are developing coreboot (with Intel FSP) for apollo lake platform custom board. We are facing a hang issue during the SYS_RESET button press.<br>
><br>
><br>
><br>
> Observations:<br>
><br>
> With soft reset the board gets hang(occurs within 2 or 3 reboot) with POST code 0x38 and the coreboot log stops during the romstage relocation. (Logs attached for Ref.)<br>
> When the SYS_RESET is pressed again the board boots and hangs at same POST code 0x38.<br>
><br>
><br>
><br>
> Please provide feedback and help us to resolve this issue.<br>
><br>
<br>
I'm confused by the following logs in romstage:<br>
<br>
CBFS @ 0 size 70000<br>
CBFS: Locating 'romstage.rel'<br>
CBFS: Found @ offset 64c0 size 480<br>
romstage is relocated from fef40054 to 0x7abf1000<br>
<br>
I'm not familiar where this code is coming from.  Are you carrying<br>
external patches or have I forgotten what is going on here?<br>
<br>
><br>
><br>
> Currently our coreboot build does not include any microcode (CPU_MICROCODE_CBFS_NONE). We tried to change it as “Generate from tree” in memuconfig.<br>
><br>
> But the build fails with fatal error saying no microcode/microcode.h file.<br>
><br>
><br>
><br>
> Whether the CPU by default have microcode ? or we need to build the microcode in coreboot ?<br>
><br>
> Please advise on this.<br>
><br>
><br>
><br>
> Thanks & Regards,<br>
><br>
> Antony<br>
><br>
><br>
><br>
> L&T Technology Services Ltd<br>
><br>
> <a href="http://www.LntTechservices.com" target="_blank">www.LntTechservices.com</a><br>
><br>
> This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.<br>
<br>
-- <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" target="_blank">https://mail.coreboot.org/mailman/listinfo/coreboot</a><o:p></o:p></p>
</blockquote>
</div>
</div>
<p><strong>L&T Technology Services Ltd</strong></p>
<p><a href="http://www.lnttechservices.com/" target="_blank">www.LntTechservices.com</a></p>
<p>This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.</p>
</body>
</html>