[systemd-devel] firmware times reported were incorrect.

Mantas Mikulėnas grawity at gmail.com
Wed Oct 13 12:33:11 UTC 2021


Looks like boot-timestamps.c first tries to read the ACPI FPDT table (it
seems acpi-fpdt.c uses the "OS Loader StartImage Start" and
"ExitBootServices Exit" fields), but if that's unavailable, then it uses
timestamps stored by systemd-boot in EFI variables
(/sys/firmware/efi/efivars/LoaderTime*). The latter seems to be estimating
it from RDTSC (src/boot/efi/util.c).

On Wed, Oct 13, 2021 at 3:05 PM jiansong Xu <jiansong.xu at oracle.com> wrote:

> *This is bios from oracle, we noticed that the firmware times reported
> were incorrect.*
>
> *Startup finished in** 59min 7.944s** (firmware) + 33.051s (loader) +
> 4.428s*
> *(kernel) + 1min 18.870s (initrd) + 44.494s (userspace) = 1h 1min 48.789s*
>
>
>
> *May I ask what is the source of the **firmware** ?  is it read from acpi
> table? *
>
>
>


-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20211013/84e6c849/attachment.htm>


More information about the systemd-devel mailing list