mbox series

[v2,0/5] Move video memory reservation for SPL to the

Message ID 20231031131208.435268-1-devarsht@ti.com
Headers show
Series Move video memory reservation for SPL to the | expand

Message

Devarsh Thakkar Oct. 31, 2023, 1:12 p.m. UTC
Move video memory reservation for SPL at end of RAM so that it does
not interefere with reservations for next stage so that the next stage
need not have holes in between for passed regions and instead it can
maintain continuity in reservations.

Also catch the bloblist before starting reservations to avoid the same
problem.

While at it, also fill missing fields in video handoff struct before
passing it to next stage.

This is as per discussions at :
For moving SPL framebuffer reservation at end of RAM:

https://lore.kernel.org/all/CAPnjgZ3xSoe_G3yrqwuAvoiVjUfZ+YQgkOR0ZTVXGT9VK8TwJg@mail.gmail.com/

For filling missing video handoff fields :
https://lore.kernel.org/all/CAPnjgZ1Hs0rNf0JDirp6YPsOQ5=QqQSP9g9qRwLoOASUV8a4cw@mail.gmail.com/

Changelog (w.r.t previous RFC series that was sent before):
V2:
- Make a generic function to reserve video memory at SPL stage
- Add debug prints while skipping framebuffer allocation at uboot
- Correct commenting style as suggested

Previous RFC series:
https://lore.kernel.org/all/20231016160611.1353458-1-devarsht@ti.com/

Test logs (at tip of U-Boot 2024.01-rc1+ this series (with debugs)):
https://gist.github.com/devarsht/43dbcc02c585a0b18f8f99e910bf5ef9

Devarsh Thakkar (5):
  arm: mach-k3: common: Reserve video memory from end of the RAM
  board: ti: am62x: evm: Remove video_setup from spl_board_init
  common/board_f: Catch bloblist before starting resevations
  video: Skip framebuffer reservation if already reserved
  video: Fill video handoff in video post probe

 arch/arm/mach-k3/common.c    |  2 ++
 board/ti/am62x/evm.c         | 18 ------------------
 common/board_f.c             | 33 +++++++++++++++++++++++++++++---
 common/spl/spl.c             | 19 ++++++++++++++++++
 drivers/video/video-uclass.c | 37 ++++++++++++++++++++++++++----------
 include/spl.h                |  4 ++++
 6 files changed, 82 insertions(+), 31 deletions(-)