Skip to content

x86: Various minor enhancements for coreboot

Simon Glass u-boot 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest16 patches 3 repliesIn review
  2. v316 patches 15 repliesSuperseded
  3. v216 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v113 patches27 repliesSuperseded

Changes in v4 from the cover letter

- Split out patch to enable bus mastering
- Drop unnecessary CONFIG options
- Drop patch to allow locating UARTs by device ID

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16mtrr: Don't show an invalid CPU numbercmd/x86/mtrr.c+2 -10 replies
2/16x86: Adjust search range for sysinfo tablearch/x86/cpu/cpu.c+2 -20 replies
3/16input: Flush the keyboard buffer before resetting itdrivers/input/i8042.c+19 -00 replies
4/16acpi: Create a new Kconfig for ACPIarch/Kconfig cmd/Kconfig cmd/acpi.c +4 more+22 -30 replies
5/16acpi: Move the table-finding functions into the libarycmd/acpi.c include/acpi/acpi_table.h lib/acpi/Makefile +1 more+56 -390 replies
6/16x86: coreboot: Collect the address of the ACPI tablesarch/x86/include/asm/cb_sysinfo.h arch/x86/include/asm/coreboot_tables.h arch/x86/lib/coreboot/cb_sysinfo.c +2 more+18 -20 replies
7/16x86: Allow locating the UART from ACPI tablesdrivers/serial/Kconfig drivers/serial/serial_coreboot.c+116 -80 replies
8/16pci: coreboot: Don't read regions when bootingdrivers/pci/pci-uclass.c+4 -00 replies
9/16x86: coreboot: Use a memory-mapped UARTconfigs/coreboot64_defconfig configs/coreboot_defconfig+0 -20 replies
10/16x86: coreboot: Document how to enable the debug UARTdoc/board/coreboot/coreboot.rst+29 -00 replies
11/16x86: coreboot: Scan PCI after relocationconfigs/coreboot_defconfig+1 -00 replies
12/16x86: coreboot: Log function names and line numbersconfigs/coreboot_defconfig+4 -00 replies
13/16x86: coreboot: Show unimplemented sysinfo tagsarch/x86/include/asm/cb_sysinfo.h arch/x86/lib/coreboot/cb_sysinfo.c cmd/x86/cbsysinfo.c+16 -00 replies
14/16nvme: Enable PCI bus masteringdrivers/nvme/nvme_pci.c+5 -01 reply
15/16x86: nvme: coreboot: Enable NVMeconfigs/coreboot_defconfig+1 -01 reply
16/16coreboot: Enable ms commandconfigs/coreboot_defconfig+1 -00 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchBin MengChristian Gmeiner
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b
8/16R-b T-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/16] x86: Various minor enhancements for coreboot

This series includes some patches generated while getting U-Boot to boot more nicely on Brya, an Adler Lake Chromebook.

This includes:
- show the ACPI tables with 'acpi list'
- get the UART to work even if coreboot doesn't enable it
- show unimplemented sysinfo tags
- fix for keyboard not working
- fix for trying to set up PCI regions when the info is not available
- fix for looking at inaccessible memory to find the sysinfo table

Changes in v4:
- Split out patch to enable bus mastering
- Drop unnecessary CONFIG options
- Drop patch to allow locating UARTs by device ID

Changes in v3:
- Don't enable ACPI by default except on x86 and sandbox
- Avoid a build error with the ASL compiler
- Disable for coreboot64 since ACPI is not available

Changes in v2:
- Don't show an invalid CPU number on error
- Update commit message with more detail
- Update code comment to mention that addresses <1KB are ignored
- Flush the buffer instead of skipping the reset
- Add new patch to create a new Kconfig for ACPI
- Add new patch to move acpi-table-finding functions into the library
- Use tab instead of space in header file
- Refactor two patches into one
- Add new patch to allow locating the UART from ACPI tables
- Expand commit message to explain this is for the debug UART
- Update the defconfig instead
- Drop patch 'usb: Quieten a debug message' since it was fixed elsewhere
- Drop patch 'x86: coreboot: Use a memory-mapped UART' (not needed)
- Add new patch to enable ms command

Simon Glass (16):
mtrr: Don't show an invalid CPU number
x86: Adjust search range for sysinfo table
input: Flush the keyboard buffer before resetting it
acpi: Create a new Kconfig for ACPI
acpi: Move the table-finding functions into the libary
x86: coreboot: Collect the address of the ACPI tables
x86: Allow locating the UART from ACPI tables
pci: coreboot: Don't read regions when booting
x86: coreboot: Use a memory-mapped UART
x86: coreboot: Document how to enable the debug UART
x86: coreboot: Scan PCI after relocation
x86: coreboot: Log function names and line numbers
x86: coreboot: Show unimplemented sysinfo tags
nvme: Enable PCI bus mastering
x86: nvme: coreboot: Enable NVMe
coreboot: Enable ms command

 arch/Kconfig                           |   2 +
 arch/x86/cpu/cpu.c                     |   4 +-
 arch/x86/include/asm/cb_sysinfo.h      |   8 ++
 arch/x86/include/asm/coreboot_tables.h |   2 +
 arch/x86/lib/coreboot/cb_sysinfo.c     |  13 +++
 cmd/Kconfig                            |   2 +-
 cmd/acpi.c                             |  44 ++--------
 cmd/x86/cbsysinfo.c                    |   9 ++
 cmd/x86/mtrr.c                         |   3 +-
 configs/coreboot64_defconfig           |   1 -
 configs/coreboot_defconfig             |   8 +-
 doc/board/coreboot/coreboot.rst        |  29 +++++++
 drivers/core/Kconfig                   |   1 +
 drivers/input/i8042.c                  |  19 +++++
 drivers/nvme/nvme_pci.c                |   5 ++
 drivers/pci/pci-uclass.c               |   4 +
 drivers/serial/Kconfig                 |  10 +++
 drivers/serial/serial_coreboot.c       | 114 +++++++++++++++++++++++--
 include/acpi/acpi_table.h              |   8 ++
 include/asm-generic/global_data.h      |   4 +-
 lib/Kconfig                            |  10 ++-
 lib/Makefile                           |   2 +-
 lib/acpi/Makefile                      |   6 ++
 lib/acpi/acpi.c                        |  45 ++++++++++
 24 files changed, 296 insertions(+), 57 deletions(-)
 create mode 100644 lib/acpi/acpi.c
Signature · 1 line
2.40.1.521.gf1e218fcd8-goog