Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 5f6142ce8c2459672ae89c879856d5d8834e839f
      
https://github.com/tianocore/edk2/commit/5f6142ce8c2459672ae89c879856d5d8834e839f
  Author: Dongyan Qian <[email protected]>
  Date:   2026-05-25 (Mon, 25 May 2026)

  Changed paths:
    M 
OvmfPkg/LoongArchVirt/Library/EarlyFdtSerialPortLib16550/EarlyFdtSerialPortLib16550.c

  Log Message:
  -----------
  OvmfPkg/LoongArchVirt: Cache early serial base in KS1

EarlyFdtSerialPortLib16550 resolves the UART base from the device
tree every time GetSerialRegisterBase() is called. This path is used
by early debug output, so repeated FDT lookups add noticeable boot
time overhead in DEBUG builds.

Reuse LOONGARCH_CSR_KS1 as the cache location for the UART base. This
matches the LoongArchVirt serial hook handoff path: use a non-zero KS1
value when available, otherwise resolve the base from FDT and save it
back to KS1 for later calls.

Local QEMU LoongArch virt DEBUG A/B testing, measured from QEMU launch
to the [Bds] Entry... serial marker, showed the median time reduced
from about 2.30s to about 1.27s.

Signed-off-by: Dongyan Qian <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to