[coreboot] Coreboot hangs during SYS_RESET

Antony AbeePrakash X V AntonyAbee.PrakashXV at LntTechservices.com
Mon Nov 12 13:49:22 CET 2018


Hi All,

Could you please help us on the below queries:

  1.  How to issue soft reset from coreboot source ?
  2.  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.

outb(RST_CPU | SYS_RST, RST_CNT);

                while (1)

                                __asm__(“hlt”);

             Is the above method is correct way for issuing soft reset ?

Please provide feedback on this.

Thanks & Regards,
Antony
From: Naresh G. Solanki [mailto:naresh.solanki.2011 at gmail.com]
Sent: Wednesday, November 07, 2018 11:09 PM
To: Aaron Durbin <adurbin at google.com>
Cc: Antony AbeePrakash X V <AntonyAbee.PrakashXV at LntTechservices.com>; coreboot <coreboot at coreboot.org>; Dinesh Kumar <DINESHKUMAR.VARADARAJAN at LNTTECHSERVICES.COM>
Subject: Re: [coreboot] Coreboot hangs during SYS_RESET

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/..
Select CBFS GENERATE and specify CPU UCODE BINARIES path.

2. Can you provide complete log and config(after adding microcode into cbfs) if you still see sys_reset issue.

Regards,
Naresh

On Wed 7 Nov, 2018, 8:56 PM Aaron Durbin via coreboot <coreboot at coreboot.org<mailto:coreboot at coreboot.org> wrote:
On Wed, Nov 7, 2018 at 6:47 AM Antony AbeePrakash X V
<AntonyAbee.PrakashXV at lnttechservices.com<mailto:AntonyAbee.PrakashXV at lnttechservices.com>> wrote:
>
> Hi,
>
>
>
> 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.
>
>
>
> Observations:
>
> 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.)
> When the SYS_RESET is pressed again the board boots and hangs at same POST code 0x38.
>
>
>
> Please provide feedback and help us to resolve this issue.
>

I'm confused by the following logs in romstage:

CBFS @ 0 size 70000
CBFS: Locating 'romstage.rel'
CBFS: Found @ offset 64c0 size 480
romstage is relocated from fef40054 to 0x7abf1000

I'm not familiar where this code is coming from.  Are you carrying
external patches or have I forgotten what is going on here?

>
>
> Currently our coreboot build does not include any microcode (CPU_MICROCODE_CBFS_NONE). We tried to change it as “Generate from tree” in memuconfig.
>
> But the build fails with fatal error saying no microcode/microcode.h file.
>
>
>
> Whether the CPU by default have microcode ? or we need to build the microcode in coreboot ?
>
> Please advise on this.
>
>
>
> Thanks & Regards,
>
> Antony
>
>
>
> L&T Technology Services Ltd
>
> www.LntTechservices.com<http://www.LntTechservices.com>
>
> 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.

--
coreboot mailing list: coreboot at coreboot.org<mailto:coreboot at coreboot.org>
https://mail.coreboot.org/mailman/listinfo/coreboot

L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot/attachments/20181112/02eb902b/attachment.html>


More information about the coreboot mailing list