
From: Simon Glass <sjg@chromium.org> When running under QEMU U-Boot obtains its ACPI tables from QEMU, since it has the require information. This works well in most cases. QEMU also provides SMBIOS tables, but U-Boot doesn't currently use those on x86. This creates problems if a VM environment is expecting to see particular values (e.g. those which it passed to QEMU!) when booting. So this series switches QEMU on x86 to use those SMBIOS tables. Finally, there is a facility in EFI for showing a boot logo, via a BGRT table. QEMU does not provide this itself, so this series augments the ACPI tables with a new BGRT table containing a suitable logo. Simon Glass (20): scripts: build-qemu: Support a random-number generator efi_loader: Use the first random-number-generator device event: Mark test_event_probe() as sandbox-only hooks: x86: Enable support for a random-number generator x86: Enable random-number support for QEMU acpi: Move calculation of RSDP checksum into a function acpi: Update acpi_find_table() to verify checksums x86: Use the existing function to find the FACP emulation: Simplify write_acpi_tables() acpi: Pull out setup code from acpi_find_table() acpi: Move code table-writing code to lib/acpi/acpi.c acpi Adjust dm_test_acpi_find_table() to use a fixed buffer acpi: Allow finding the RSDT or XSDT acpi: Provide a way to locate the end of the ACPI tables qemu: Use SMBIOS tables from QEMU scripts: Make the build rule for the logo more specific acpi: Provide a way to build in a boot logo acpi: Support a boot logo (BGRT) emulation: Drop computing the ACPI checksum emulation: Add the BGRT on the end of the QEMU tables arch/Kconfig | 2 +- arch/x86/lib/acpi.c | 51 +--- configs/qemu-x86_64_defconfig | 1 + drivers/qfw/qfw_acpi.c | 74 +++--- include/acpi/acpi_table.h | 30 ++- lib/acpi/Makefile | 3 + lib/acpi/acpi.c | 242 ++++++++++++++++++- lib/acpi/acpi_extra.c | 103 ++++++++ lib/acpi/acpi_table.c | 133 +--------- lib/acpi/base.c | 17 +- lib/acpi/bgrt_image.bmp | Bin 0 -> 43926 bytes lib/efi_loader/efi_rng.c | 10 +- scripts/Makefile.lib | 30 ++- scripts/build_helper.py | 7 + test/common/event.c | 5 +- test/dm/acpi.c | 121 +++++++++- test/hooks/bin/travis-ci/conf.qemu-x86_64_na | 5 +- 17 files changed, 584 insertions(+), 250 deletions(-) create mode 100644 lib/acpi/acpi_extra.c create mode 100644 lib/acpi/bgrt_image.bmp -- 2.43.0 base-commit: 7f32b8d7f91652e3bdfe31f2a10f194b7afa1200 branch: qemi