[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linuxbios
Subject:    [coreboot] Re: Call to FSP_FSP_INIT never returns back
From:       Wim Vervoorn <wvervoorn () eltan ! com>
Date:       2019-12-13 12:37:33
Message-ID: ffbfea6f4b3a4482b257fab7116fa618 () Eltsrv03 ! Eltan ! local
[Download RAW message or body]

Hello Naveen,

You should pass in the MRC data that was output on the first boot. Normally this is \
preserved in flash.

Best Regards,
Wim Vervoorn

Eltan B.V.
Ambachtstraat 23
5481 SM Schijndel
The Netherlands

T : +31-(0)73-594 46 64
E : wvervoorn@eltan.com
W : http://www.eltan.com<http://www.eltan.com/>

From: Naveen Chaudhary [mailto:naveenchaudhary2010@hotmail.com]
Sent: Friday, December 13, 2019 12:45 PM
To: Wim Vervoorn <wvervoorn@eltan.com>; werner.zeh@siemens.com
Cc: coreboot@coreboot.org
Subject: Re: Call to FSP_FSP_INIT never returns back

Hi,

Sorry for long pause, but back on the job.

Yes, after reading your suggestion, I reminded of reading the same thing in the FSP \
integration guide. I had : UpdData->MemFastBoot = 1;

but I also had this :
FspInitParams.NvsBufferPtr = NULL;

I believe once I pass some NVRAM buffer, it should work. But I have few doubts :

  1.  What sized-buffer should be good?
  2.  How do I refer the chunk of memory from SPI flash to act as the NvsBuffer? Any \
sample code will be appreciated. Regards,
Naveen
________________________________
From: Wim Vervoorn <wvervoorn@eltan.com<mailto:wvervoorn@eltan.com>>
Sent: Thursday, November 7, 2019 1:56 PM
To: Naveen Chaudhary \
<naveenchaudhary2010@hotmail.com<mailto:naveenchaudhary2010@hotmail.com>>; \
werner.zeh@siemens.com<mailto:werner.zeh@siemens.com> \
                <werner.zeh@siemens.com<mailto:werner.zeh@siemens.com>>
Cc: coreboot@coreboot.org<mailto:coreboot@coreboot.org> \
                <coreboot@coreboot.org<mailto:coreboot@coreboot.org>>
Subject: RE: Call to FSP_FSP_INIT never returns back


Hello Naveen,



The longer time is expected on the first boot. After that this should not take that \
long.



If every boot takes that long please check if the MRC information is preserved in \
flash and properly restored before making the FSP call.



Best Regards,

Wim Vervoorn





From: Naveen Chaudhary [mailto:naveenchaudhary2010@hotmail.com]
Sent: Thursday, November 7, 2019 7:02 AM
To: werner.zeh@siemens.com<mailto:werner.zeh@siemens.com>
Cc: coreboot@coreboot.org<mailto:coreboot@coreboot.org>
Subject: [coreboot] Re: Call to FSP_FSP_INIT never returns back



Hi fellow engineers,



I got that RAM stick working when I changed the fourth byte of SPD from from \
mini-UDIMM (0x06) to SO-DIMM (0x03) and its working fine... But still I am curious \
why mini-UDIMM didn't work out. Perhaps this form factor was not supported by FSP?



Another thing I observed that the call to FSP_FSP_INIT takes 7-8 seconds to return \
back. Is that expected? What could be the possible ways to optimize it (even an \
inflexible solution is welcome). The total boot time from power-on to loading payload \
is around 20 seconds with logs disabled.



Regards,

Naveen


[Attachment #3 (text/html)]

<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
	{mso-style-name:x_msonormal;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.xmsochpdefault, li.xmsochpdefault, div.xmsochpdefault
	{mso-style-name:x_msochpdefault;
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Times New Roman",serif;}
span.xmsohyperlink
	{mso-style-name:x_msohyperlink;
	color:#0563C1;
	text-decoration:underline;}
span.xmsohyperlinkfollowed
	{mso-style-name:x_msohyperlinkfollowed;
	color:#954F72;
	text-decoration:underline;}
span.xemailstyle18
	{mso-style-name:x_emailstyle18;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:2144350541;
	mso-list-template-ids:879382570;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
--></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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="NL" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hello \
Naveen,<o:p></o:p></span></p> <p class="MsoNormal"><span lang="NL" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">You \
should pass in the MRC data that was output on the first boot. Normally this is \
preserved in flash.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
lang="NL" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Best \
Regards,</span><span lang="NL" style="color:#1F497D"><o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Wim \
Vervoorn<o:p></o:p></span></p> <p class="MsoNormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Eltan \
B.V.</span><span lang="NL" \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Ambachtstraat \
23<o:p></o:p></span></p> <p class="MsoNormal"><span lang="DE" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">5481 \
SM Schijndel<o:p></o:p></span></p> <p class="MsoNormal"><span lang="DE" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">The \
Netherlands<o:p></o:p></span></p> <p class="MsoNormal"><span lang="DE" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span lang="DE" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">T : \
&#43;31-(0)73-594 46 64</span><span lang="DE" \
style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
 <p class="MsoNormal"><span lang="DE" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">E : \
wvervoorn@eltan.com</span><span lang="DE" \
style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D"><o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">W : \
<a href="http://www.eltan.com/"><span \
style="color:blue">http://www.eltan.com</span></a><o:p></o:p></span></p> </div>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Naveen Chaudhary \
[mailto:naveenchaudhary2010@hotmail.com] <br>
<b>Sent:</b> Friday, December 13, 2019 12:45 PM<br>
<b>To:</b> Wim Vervoorn &lt;wvervoorn@eltan.com&gt;; werner.zeh@siemens.com<br>
<b>Cc:</b> coreboot@coreboot.org<br>
<b>Subject:</b> Re: Call to FSP_FSP_INIT never returns back<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Hi,<o:p></o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Sorry for long pause, \
but back on the job.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Yes, after reading \
your suggestion, I reminded of reading the same thing in the FSP integration guide. I \
had :<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">UpdData-&gt;MemFastBoot \
= 1;<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">but I also had this \
:<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">FspInitParams.NvsBufferPtr \
= NULL;<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black"><o:p>&nbsp;</o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">I believe once I pass \
some NVRAM buffer, it should work. But I have few doubts :<o:p></o:p></span></p> \
</div> <div>
<ol start="1" type="1">
<li class="MsoNormal" \
style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 \
level1 lfo1"> <span style="font-family:&quot;Calibri&quot;,sans-serif">What \
sized-buffer should be good?<o:p></o:p></span></li><li class="MsoNormal" \
style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 \
level1 lfo1"> <span style="font-family:&quot;Calibri&quot;,sans-serif">How do I refer \
the chunk of memory from SPI flash to act as the NvsBuffer? Any sample code will be \
appreciated.<o:p></o:p></span></li></ol> <div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Regards,<o:p></o:p></span></p>
 </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Naveen<o:p></o:p></span></p>
 </div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black"> Wim \
Vervoorn &lt;<a href="mailto:wvervoorn@eltan.com">wvervoorn@eltan.com</a>&gt;<br> \
<b>Sent:</b> Thursday, November 7, 2019 1:56 PM<br> <b>To:</b> Naveen Chaudhary \
&lt;<a href="mailto:naveenchaudhary2010@hotmail.com">naveenchaudhary2010@hotmail.com</a>&gt;;
 <a href="mailto:werner.zeh@siemens.com">werner.zeh@siemens.com</a> &lt;<a \
href="mailto:werner.zeh@siemens.com">werner.zeh@siemens.com</a>&gt;<br> <b>Cc:</b> <a \
href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a> &lt;<a \
href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a>&gt;<br> <b>Subject:</b> \
RE: Call to FSP_FSP_INIT never returns back</span> <o:p></o:p></p> <div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hello \
Naveen,</span><o:p></o:p></p> <p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">The \
longer time is expected on the first boot. After that this should not take that \
long.</span><o:p></o:p></p> <p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">If \
every boot takes that long please check if the MRC information is preserved in flash \
and properly restored before making the FSP call.</span><o:p></o:p></p> <p \
class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <div>
<p class="xmsonormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Best \
Regards,</span><o:p></o:p></p> <p class="xmsonormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">Wim \
Vervoorn</span><o:p></o:p></p> <p class="xmsonormal"><span lang="NL" \
style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 </div>
<p class="xmsonormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
 <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="xmsonormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Naveen Chaudhary \
[<a href="mailto:naveenchaudhary2010@hotmail.com">mailto:naveenchaudhary2010@hotmail.com</a>]
 <br>
<b>Sent:</b> Thursday, November 7, 2019 7:02 AM<br>
<b>To:</b> <a href="mailto:werner.zeh@siemens.com">werner.zeh@siemens.com</a><br>
<b>Cc:</b> <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<b>Subject:</b> [coreboot] Re: Call to FSP_FSP_INIT never returns \
back</span><o:p></o:p></p> </div>
</div>
<p class="xmsonormal">&nbsp;<o:p></o:p></p>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Hi fellow \
engineers,</span><o:p></o:p></p> </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">&nbsp;</span><o:p></o:p></p>
 </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">I got that RAM stick \
working when I changed the fourth byte of SPD from from mini-UDIMM (0x06) to SO-DIMM \
(0x03) and its working fine... But still I am curious why mini-UDIMM didn't  work \
out. Perhaps this form factor was not supported by FSP? </span><o:p></o:p></p> </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">&nbsp;</span><o:p></o:p></p>
 </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Another thing I \
observed that the call to FSP_FSP_INIT takes 7-8 seconds to return back. Is that \
expected? What could be the possible ways to optimize it (even an inflexible solution \
is welcome). The total boot time from power-on to loading payload is around 20 \
seconds with logs disabled.</span><o:p></o:p></p> </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">&nbsp;</span><o:p></o:p></p>
 </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Regards,</span><o:p></o:p></p>
 </div>
<div>
<p class="xmsonormal"><span \
style="font-family:&quot;Calibri&quot;,sans-serif;color:black">Naveen</span><o:p></o:p></p>
 </div>
<p class="xmsonormal">&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>



_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-leave@coreboot.org

--===============5343638154381669314==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic