tpm: Check for TPM related ACPI tables before attempting hw probe
Signed-off-by: Stephen Douthit <stephend@silicom-usa.com>
pvscsi: ring_desc do not have to be page aligned
In contrast to other allocations made by pvscsi_init_rings(), ring_desc is only used internally by SeaBIOS (not passed to device-controller) and there is not restriction which force it to be page aligned. Reviewed-by: Mark Kanda <mark.kanda@oracle.com> Signed-off-by: Liran Alon <liran.alon@oracle.com>
qemu: avoid debug prints if debugcon is not enabled
In order to speed up the boot phase, we can check the QEMU debugcon device, and disable the writes if it is not recognized. This patch allow us to save around 10 msec (time measured between SeaBIOS entry point and "linuxboot" entry point) when CONFIG_DEBUG_LEVEL=1 and debugcon is not enabled. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
output: Avoid thunking to 16bit mode in printf() if no vgabios
It is not necessary to call the vgabios if no vgabios has been installed. This reduces the amount of hardware accesses on qemu when the bios is not initializing the display hardware, and it can reduce the boot time by a couple of milliseconds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
docs: Update mailing list archive links
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
docs: Fix cut-and-paste error in Mailinglist.md archive link
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
bootsplash: Added support for 16/24/32bpp in one function
Specifically added support for 16 and 32bpp files, in addition to 24bpp. The function bmp_show() in bmp.c has had the hardcoded check for 24bpp replaced with a general bpp check that uses a % to check for remainder, and returns 1 if the remainder is >0. The previous method for adjusting the BMP data (raw_data_format_adjust_24bpp) relied on a preset 3*bytes_per_line_src, this has been changed and the multiplication is now performed in the function's arguments. This change still allows someone else to reuse the same function for 1/2/4bpp support if necessary. The file util.h has been modified to reflect this decision. The changes to raw_data_format_adjust() is based on an abandoned patch by Gert Menke (submitted March 14, 2017), credit to them for that change and the addition of *bpp to bmp_get_info(). Signed-off-by: Joseph S. Pacheco-Corwin <hammersamatom@gmail.com>
usb-ehci: Clear pipe token on pipe reallocate
Make sure to clear the token before reuse as it may otherwise have an incorrect toggle setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
tcgbios: Use table to convert hash to buffer size
Use a table to convert the hash to the buffer size it needs. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
tcgbios: Implement TPM 2.0 menu item to activate and deactivate PCR b…
…anks Implement a TPM 2.0 menu item that allows a user to toggle the activation of PCR banks of the TPM 2.0. After successful activation we shut down the TPM 2.0 and reset the machine. Background: A TPM 2.0 may have multiple PCR banks, such as for SHA1, SHA256, SHA384, SHA512, and SM3-256. One or multiple of those banks may be active (by factory for example) and modifying the set of active PCR banks is only possible while in the firmware since it requires platform authorization. Platform authorization is not possible for a user when in the OS since the firmware generates a random password for the platform authorization before booting the system and it throws that password away. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
vga: move modelist from bochsvga.c to new svgamodes.c
So other drivers can simply use the same list too. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
vga: make memcpy_high() public
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Supports qemu emulated ati cards. They have been added in qemu 4.0. Acceleration support (in qemu) is pretty rough still. A simple framebuffer works fine though. Available models: * ati rage 128 pro * ati rv100 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Needed to make drivers happy which try to gather informations from these tables. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
CHANGELOG.md: add rel-1.12.1.1 release info
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
src/hw/sdcard.c: increase SD PIO timeout for SD 3.0 mode
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
src/hw/usb-xhci.c: lower the hub detect debug level
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
src/block.c: initialize SD card later
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
src/boot.c: Add fallback boot function
Do not boot secondary payloads from CBFS unless at least one HDD/USB/SD card is present. Allow booting next hard disk devices according to bootorder when previous device fails. This mechanism works only if MBR signature is not valid (no partitions on the disk). If MBR has valid signature, but contains garbage, SeaBIOS will execute it and get stuck (as it was up till now) due to legacy BIOS and MBR limitation (cannot verify if MBR code is valid). As a solution one may clear the first 512 bytes of HDD to clear MBR of the unused devices. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Merge pull request #43 from pcengines/harddisk_fallback_boot
src/boot.c: Add fallback boot function
src/hw/sdcard.c: wait for card presence
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Merge pull request #42 from pcengines/sd3_0_pio_timeout_
src/hw/sdcard.c: increase SD PIO timeout for SD 3.0 mode
CHANGELOG.md: add rel-1.12.1.2 release info
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Merge pull request #44 from pcengines/changelog_update
CHANGELOG.md: add rel-1.12.1.2 release info
CHANGELOG.md: fix release link
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>