public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 00/67] upl: Align with the updated spec
@ 2025-01-01 22:08 Simon Glass
  2025-01-01 22:08 ` [PATCH 01/67] bloblist: Make BLOBLIST_ALLOC the default Simon Glass
                   ` (67 more replies)
  0 siblings, 68 replies; 76+ messages in thread
From: Simon Glass @ 2025-01-01 22:08 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Simon Glass, Ahelenia Ziemiańska, Alexander Dahl,
	Alexander Graf, Alper Nebi Yasak, Anand Moon, Anatolij Gustschin,
	Caleb Connolly, Chen-Yu Tsai, Dmitry Gerasimov, Heiko Schocher,
	Heinrich Schuchardt, Hou Zhiqiang, Hugo Cornelis, Igor Opaniuk,
	Ilias Apalodimas, Jagan Teki, Janne Grunau, Jerry Van Baren,
	Jiaxun Yang, Jonas Karlman, Leo Yu-Chi Liang, Lukas Funke,
	Marek Mojík, Masahisa Kojima, Mattijs Korpershoek,
	Maxim Moskalets, Michal Simek, Miquel Raynal, Neil Armstrong,
	Nikhil M Jain, Patrick Delaunay, Pavel Herrmann, Peter Robinson,
	Philip Oberfichtner, Rasmus Villemoes, Raymond Mao, Sean Anderson,
	Stefano Babic

The current UPL spec[1] has been tidied up and improved over the last
year, since U-Boot's original UPL support was written.

This series addresses various issues, with a goal of having U-Boot boot
EDK2.

There is still more work to do, but this series gets to the point (on
QEMU) where the ACPI tables are required. Further work will be needed to
relocate the tables out of the QEMU firmware-filesystem.

[1] git@github.com:UniversalPayload/spec.git commit 3f1450d


Simon Glass (67):
  bloblist: Make BLOBLIST_ALLOC the default
  abuf: Provide a way to get the buffer address
  abuf: Allow use in host tools
  abuf: Provide a constant buffer
  cpu: Provide a way to get the physical-address size
  serial: Support info() method in ns16550 xPL with UPL
  mkimage: Update map_to_sysmem() to match its prototype
  x86: Emable meminfo command
  x86: Show the timestamp counter with bdinfo
  ofnode: Use 4K for a default tree-size
  ofnode: Indicate when out of space in a few places
  ofnode: Update of_add_subnode() to indicate name is alloced
  boot: Rename fit_image_get_data()
  boot: Rename fit_image_get_data_and_size()
  boot: Update fit_image_get_emb_data to use abuf
  boot: Use fit_image_get_data() to get data
  boot: Update fit_image_get_data() to use abuf
  test: Fix inpected typo in upl test
  emulation: fdt: Relax condition for OF_HAS_PRIOR_STAGE
  emulation: Use bloblist to hold tables
  x86: Create more space for SPL with qemu-x86_64
  upl: Create a function to create a memory node
  upl: Update add_upl_memmap() to use write_mem_node()
  upl: Update add_upl_memres() to use write_mem_node()
  upl: Support writing a UPL only for testing
  upl: Drop enum upl_serial_access_type
  upl: Init serial and graphics alists in upl_init()
  upl: Move serial and graphics addition-code to upl_common
  pci: video: Set up the pixel-format field
  x86: Show an error if video fails
  x86: Support jumping to a UPL image
  x86: Enable UPL handoff for SPL
  x86: Align the SMBIOS table to a 4K boundary
  upl: Require OFNODE_MULTI_TREE when writing a UPL handoff
  upl: Drop the argument to spl_write_upl_handoff()
  x86: emulation: Enable UPL
  upl: Correct comment and condition in add_upl_memres()
  upl: Add addr/size tags in the reserved-memory node
  upl: Update upl_add_graphics() to return framebuffer
  upl: Add a function to write a UPL handoff to an abuf
  upl: Use a 64-bit value for a memregion base-address
  upl: Set bit 32 of the address when using ISA
  upl: Add RAM to the memory region
  upl: Add a compatible string for the upl-params node
  upl: Move buffer_addr_size() higher and rename
  upl: Factor out part of encode_reg() to new function
  upl: Move decode_addr_size() higher and rename
  upl: Factor out part of decode_reg() to new function
  upl: Correct name of upl-images
  dm: core: Clarify behaviour of ofnode_name_eq()
  dm: core: Allow ofnode_name_eq() to accept a unit address
  dm: core: Rewrite ofnode_find_subnode() to use ofnode API
  upl: test: Show the handoff FDT when debugging
  upl: Use a reg property to specify the FIT address and size
  upl: Update and tidy writing of images
  upl: Make use of alist_for_each()
  upl: Correct use of sizeof()
  upl: Drop acpi_nvs_size
  upl: Improve uniqueness of log_msg_ret() strings
  upl: Add PCI information
  upl: Handle serial on an ISA bus with /chosen node
  upl: Add missing word in comment for upl_write_handoff()
  upl: Add a command to execute a UPL payload
  scripts: Update qemu script to use 64-bit on x86 always
  scripts: Update qemu script to support specifying a UPL
  upl: Add reserved memory for the ACPI and SMBIOS tables
  upl: Add an 'addr' property for Tianocore

 arch/Kconfig                           |   2 +
 arch/arm/cpu/armv8/sec_firmware.c      |  13 +-
 arch/arm/mach-k3/r5/sysfw-loader.c     |  11 +-
 arch/x86/include/asm/cpu.h             |   9 -
 arch/x86/lib/bdinfo.c                  |   3 +
 arch/x86/lib/bootm.c                   |  18 +-
 arch/x86/lib/spl.c                     |  12 +-
 arch/x86/lib/tables.c                  |   9 +-
 boot/Kconfig                           |   9 +
 boot/Makefile                          |   1 +
 boot/image-board.c                     |  11 +-
 boot/image-fit.c                       |  98 ++----
 boot/upl_common.c                      | 191 ++++++++++
 boot/upl_exec.c                        | 130 +++++++
 boot/upl_read.c                        | 220 ++++++------
 boot/upl_write.c                       | 464 ++++++++++++++++---------
 cmd/upl.c                              |  36 +-
 cmd/ximg.c                             |  14 +-
 common/Kconfig                         |  15 +-
 common/spl/spl.c                       |   2 +-
 common/spl/spl_fit.c                   |   8 +-
 common/spl/spl_upl.c                   | 114 +-----
 common/splash_source.c                 |  18 +-
 common/update.c                        |   7 +-
 configs/chromebook_bob_defconfig       |   1 +
 configs/chromebook_coral_defconfig     |   1 +
 configs/chromebook_kevin_defconfig     |   1 +
 configs/chromebook_samus_tpl_defconfig |   1 +
 configs/qemu-x86_64_defconfig          |   9 +-
 configs/qemu-x86_defconfig             |   2 +
 configs/qemu_arm64_defconfig           |   2 +
 configs/qemu_arm_defconfig             |   2 +
 drivers/core/ofnode.c                  |  57 +--
 drivers/misc/qfw_acpi.c                |  37 +-
 drivers/misc/qfw_smbios.c              |  45 ++-
 drivers/pci/pci_rom.c                  |   3 +
 drivers/serial/ns16550.c               |   2 +-
 drivers/video/bochs.c                  |   1 +
 drivers/video/video-uclass.c           |   1 +
 dts/Kconfig                            |   2 +-
 include/abuf.h                         |  25 ++
 include/alist.h                        |   2 +-
 include/cpu.h                          |  14 +
 include/dm/ofnode.h                    |  15 +-
 include/image.h                        |  39 ++-
 include/spl.h                          |   3 +-
 include/upl.h                          | 211 +++++++++--
 include/video.h                        |   2 +
 lib/Kconfig                            |   1 +
 lib/Makefile                           |   5 +
 lib/abuf.c                             |  21 +-
 lib/alist.c                            |   2 +-
 scripts/build-qemu.sh                  |  28 +-
 test/boot/upl.c                        |  72 ++--
 test/common/Makefile                   |   4 +
 test/dm/core.c                         |   5 +
 test/dm/ofnode.c                       |  19 +
 test/lib/abuf.c                        |  27 +-
 test/py/tests/test_upl.py              |   2 +-
 tools/Makefile                         |   3 +-
 tools/fit_image.c                      |   8 +-
 tools/image-host.c                     |  23 +-
 tools/mkimage.h                        |   2 +-
 63 files changed, 1445 insertions(+), 670 deletions(-)
 create mode 100644 boot/upl_exec.c

-- 
2.43.0


^ permalink raw reply	[flat|nested] 76+ messages in thread

end of thread, other threads:[~2025-01-04 20:04 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-01 22:08 [PATCH 00/67] upl: Align with the updated spec Simon Glass
2025-01-01 22:08 ` [PATCH 01/67] bloblist: Make BLOBLIST_ALLOC the default Simon Glass
2025-01-01 22:08 ` [PATCH 02/67] abuf: Provide a way to get the buffer address Simon Glass
2025-01-01 22:08 ` [PATCH 03/67] abuf: Allow use in host tools Simon Glass
2025-01-01 22:08 ` [PATCH 04/67] abuf: Provide a constant buffer Simon Glass
2025-01-01 22:08 ` [PATCH 05/67] cpu: Provide a way to get the physical-address size Simon Glass
2025-01-01 22:08 ` [PATCH 06/67] serial: Support info() method in ns16550 xPL with UPL Simon Glass
2025-01-01 22:08 ` [PATCH 07/67] mkimage: Update map_to_sysmem() to match its prototype Simon Glass
2025-01-01 22:08 ` [PATCH 08/67] x86: Emable meminfo command Simon Glass
2025-01-03 14:51   ` Heinrich Schuchardt
2025-01-04 19:30     ` Simon Glass
2025-01-01 22:08 ` [PATCH 09/67] x86: Show the timestamp counter with bdinfo Simon Glass
2025-01-01 22:08 ` [PATCH 10/67] ofnode: Use 4K for a default tree-size Simon Glass
2025-01-01 22:08 ` [PATCH 11/67] ofnode: Indicate when out of space in a few places Simon Glass
2025-01-01 22:08 ` [PATCH 12/67] ofnode: Update of_add_subnode() to indicate name is alloced Simon Glass
2025-01-01 22:08 ` [PATCH 13/67] boot: Rename fit_image_get_data() Simon Glass
2025-01-03 14:55   ` Heinrich Schuchardt
2025-01-01 22:09 ` [PATCH 14/67] boot: Rename fit_image_get_data_and_size() Simon Glass
2025-01-01 22:09 ` [PATCH 15/67] boot: Update fit_image_get_emb_data to use abuf Simon Glass
2025-01-01 22:09 ` [PATCH 16/67] boot: Use fit_image_get_data() to get data Simon Glass
2025-01-01 22:09 ` [PATCH 17/67] boot: Update fit_image_get_data() to use abuf Simon Glass
2025-01-01 22:09 ` [PATCH 18/67] test: Fix inpected typo in upl test Simon Glass
2025-01-01 22:09 ` [PATCH 19/67] emulation: fdt: Relax condition for OF_HAS_PRIOR_STAGE Simon Glass
2025-01-01 22:09 ` [PATCH 20/67] emulation: Use bloblist to hold tables Simon Glass
2025-01-01 22:09 ` [PATCH 21/67] x86: Create more space for SPL with qemu-x86_64 Simon Glass
2025-01-01 22:09 ` [PATCH 22/67] upl: Create a function to create a memory node Simon Glass
2025-01-01 22:09 ` [PATCH 23/67] upl: Update add_upl_memmap() to use write_mem_node() Simon Glass
2025-01-01 22:09 ` [PATCH 24/67] upl: Update add_upl_memres() " Simon Glass
2025-01-01 22:09 ` [PATCH 25/67] upl: Support writing a UPL only for testing Simon Glass
2025-01-01 22:09 ` [PATCH 26/67] upl: Drop enum upl_serial_access_type Simon Glass
2025-01-01 22:09 ` [PATCH 27/67] upl: Init serial and graphics alists in upl_init() Simon Glass
2025-01-01 22:09 ` [PATCH 28/67] upl: Move serial and graphics addition-code to upl_common Simon Glass
2025-01-01 22:09 ` [PATCH 29/67] pci: video: Set up the pixel-format field Simon Glass
2025-01-01 22:09 ` [PATCH 30/67] x86: Show an error if video fails Simon Glass
2025-01-01 22:09 ` [PATCH 31/67] x86: Support jumping to a UPL image Simon Glass
2025-01-01 22:09 ` [PATCH 32/67] x86: Enable UPL handoff for SPL Simon Glass
2025-01-01 22:09 ` [PATCH 33/67] x86: Align the SMBIOS table to a 4K boundary Simon Glass
2025-01-03 15:10   ` Heinrich Schuchardt
2025-01-01 22:09 ` [PATCH 34/67] upl: Require OFNODE_MULTI_TREE when writing a UPL handoff Simon Glass
2025-01-01 22:09 ` [PATCH 35/67] upl: Drop the argument to spl_write_upl_handoff() Simon Glass
2025-01-01 22:09 ` [PATCH 36/67] x86: emulation: Enable UPL Simon Glass
2025-01-01 22:09 ` [PATCH 37/67] upl: Correct comment and condition in add_upl_memres() Simon Glass
2025-01-01 22:09 ` [PATCH 38/67] upl: Add addr/size tags in the reserved-memory node Simon Glass
2025-01-01 22:09 ` [PATCH 39/67] upl: Update upl_add_graphics() to return framebuffer Simon Glass
2025-01-01 22:09 ` [PATCH 40/67] upl: Add a function to write a UPL handoff to an abuf Simon Glass
2025-01-01 22:09 ` [PATCH 41/67] upl: Use a 64-bit value for a memregion base-address Simon Glass
2025-01-01 22:09 ` [PATCH 42/67] upl: Set bit 32 of the address when using ISA Simon Glass
2025-01-01 22:09 ` [PATCH 43/67] upl: Add RAM to the memory region Simon Glass
2025-01-01 22:09 ` [PATCH 44/67] upl: Add a compatible string for the upl-params node Simon Glass
2025-01-01 22:09 ` [PATCH 45/67] upl: Move buffer_addr_size() higher and rename Simon Glass
2025-01-01 22:09 ` [PATCH 46/67] upl: Factor out part of encode_reg() to new function Simon Glass
2025-01-01 22:09 ` [PATCH 47/67] upl: Move decode_addr_size() higher and rename Simon Glass
2025-01-01 22:09 ` [PATCH 48/67] upl: Factor out part of decode_reg() to new function Simon Glass
2025-01-01 22:09 ` [PATCH 49/67] upl: Correct name of upl-images Simon Glass
2025-01-01 22:09 ` [PATCH 50/67] dm: core: Clarify behaviour of ofnode_name_eq() Simon Glass
2025-01-01 22:09 ` [PATCH 51/67] dm: core: Allow ofnode_name_eq() to accept a unit address Simon Glass
2025-01-01 22:09 ` [PATCH 52/67] dm: core: Rewrite ofnode_find_subnode() to use ofnode API Simon Glass
2025-01-01 22:09 ` [PATCH 53/67] upl: test: Show the handoff FDT when debugging Simon Glass
2025-01-01 22:09 ` [PATCH 54/67] upl: Use a reg property to specify the FIT address and size Simon Glass
2025-01-01 22:09 ` [PATCH 55/67] upl: Update and tidy writing of images Simon Glass
2025-01-01 22:09 ` [PATCH 56/67] upl: Make use of alist_for_each() Simon Glass
2025-01-01 22:09 ` [PATCH 57/67] upl: Correct use of sizeof() Simon Glass
2025-01-01 22:09 ` [PATCH 58/67] upl: Drop acpi_nvs_size Simon Glass
2025-01-01 22:09 ` [PATCH 59/67] upl: Improve uniqueness of log_msg_ret() strings Simon Glass
2025-01-01 22:09 ` [PATCH 60/67] upl: Add PCI information Simon Glass
2025-01-01 22:09 ` [PATCH 61/67] upl: Handle serial on an ISA bus with /chosen node Simon Glass
2025-01-01 22:09 ` [PATCH 62/67] upl: Add missing word in comment for upl_write_handoff() Simon Glass
2025-01-01 22:09 ` [PATCH 63/67] upl: Add a command to execute a UPL payload Simon Glass
2025-01-01 22:09 ` [PATCH 64/67] scripts: Update qemu script to use 64-bit on x86 always Simon Glass
2025-01-01 22:09 ` [PATCH 65/67] scripts: Update qemu script to support specifying a UPL Simon Glass
2025-01-01 22:09 ` [PATCH 66/67] upl: Add reserved memory for the ACPI and SMBIOS tables Simon Glass
2025-01-01 22:09 ` [PATCH 67/67] upl: Add an 'addr' property for Tianocore Simon Glass
2025-01-02 14:44 ` [PATCH 00/67] upl: Align with the updated spec Tom Rini
2025-01-02 23:45   ` Simon Glass
2025-01-03 14:26     ` Tom Rini
2025-01-04 19:32       ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox