Misc Fixes for VGA BIOS Emulation
Get series with b4
b4 am 20261017-aspeed_vbios_fixes-v3-0-961124989594@oss.tenstorrent.com change-id 20260718-aspeed_vbios_fixes-d4890ce2587cVersions newest first
- v3 Latest5 patches 5 repliesIn review
- v25 patches 7 repliesSuperseded
- v18 patches 10 repliesSuperseded
Changes in v3 from the cover letter
- Cleaned up code/comments around freeing memory for allocated BIOS Image
- Added a vga_port_active() helper to besys.c to allow the handling of monochrome/color VGA ports in a shared code path
- Reads to 0x3DA status bits are updated to use this helper, so it doesn't decode in monochrome mode any more
- Link to v2: https://patch.msgid.link/20261003-aspeed_vbios_fixes-v2-0-f8e593f024ab@oss.tenstorrent.com
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | bios_emulator: select X86EMU_RAW_IO only on x86drivers/ | +2 | 0 replies | |
| 2/5 | bios_emulator: Don't free a caller's BIOS imagedrivers/ | +1 | 1 reply | |
| 3/5 | bios_emulator: use driver-model functions for PCI config accesesdrivers/ | +7 | 0 replies | |
| 4/5 | bios_emulator: support 16-bit reads on VGA portdrivers/ | +3 | 0 replies | |
| 5/5 | bios_emulator: extend VGA I/O ports to include ports 0x3B4-0x3DAdrivers/ | +41 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/5] Misc Fixes for VGA BIOS Emulation
This series contains a bunch of mischallaneous fixes to the BIOSEMU codebase to get display output working in u-boot using an Aspeed AST2600 PCIE VGA card on a RISC-V system that doesn't support I/O ports. This was tested by passing the card through to a qemu riscv64 VM, but should work on any board supporting PCIe in u-boot.
v2 of this series only contains the first 5 patches from v1, which are misc fixes to drivers/bios_emulator. Based on the feedback from v1, the last 3 patches implementing a aspeed_video driver/overriding the biosemu functionality in a hacky manner have been dropped. This will be implemented in a manner where the video driver can provide custom ops that override biosemu's read/write calls, and will be sent in the future.
There some checkpatch warnings, but these are from existing pieces of code that I've copied/refer to, so I haven't tried fixing/changing them.
---
Changes in v3:
- Cleaned up code/comments around freeing memory for allocated BIOS Image
- Added a vga_port_active() helper to besys.c to allow the handling of monochrome/color VGA ports in a shared code path
- Reads to 0x3DA status bits are updated to use this helper, so it doesn't decode in monochrome mode any more
- Link to v2: https://patch.msgid.link/20261003-aspeed_vbios_fixes-v2-0-f8e593f024ab@oss.tenstorrent.com
Changes in v2:
- Dropped patches 6-8. Those will be implemented using custom ops for reads/writes that the driver can override (like Simon suggested) and be sent at a later date
- Cleaned up typos based on Simon's feedback
- Changed BE_inw to use 2 BE_inb calls instead of VGA_inb
- Link to v1: https://patch.msgid.link/20260719-aspeed_vbios_fixes-v1-0-c94026f28250@oss.tenstorrent.com
---
Anirudh Srinivasan (5):
bios_emulator: select X86EMU_RAW_IO only on x86
bios_emulator: Don't free a caller's BIOS image
bios_emulator: use driver-model functions for PCI config acceses
bios_emulator: support 16-bit reads on VGA port
bios_emulator: extend VGA I/O ports to include ports 0x3B4-0x3DA
drivers/bios_emulator/Kconfig | 4 +-- drivers/bios_emulator/atibios.c | 3 +- drivers/bios_emulator/besys.c | 68 ++++++++++++++++++++++++++++++----------- 3 files changed, 54 insertions(+), 21 deletions(-)
---
base-commit: a6ab6a66146ed0bf1420db0ee858b49005783222
change-id: 20260718-aspeed_vbios_fixes-d4890ce2587c
Best regards,
Signature · 1 line
Anirudh Srinivasan <[email protected]>