Skip to content

Mac Old World ROM experiment

BALATON Zoltan qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest8 patches 18 repliesIn review
  2. v611 patches 0 repliesSuperseded
  3. v511 patches 20 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v49 patches0 repliesSuperseded
v25 patches13 repliesSuperseded
v12 patches0 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mac_oldworld: Allow loading binary ROM imagehw/ppc/mac_oldworld.c+20 -95 replies
2/8mac_newworld: Allow loading binary ROM imagehw/ppc/mac.h hw/ppc/mac_newworld.c+14 -101 reply
3/8mac_oldworld: Drop a variable, use get_system_memory() directlyhw/ppc/mac_oldworld.c+2 -31 reply
4/8mac_oldworld: Drop some variableshw/ppc/mac_oldworld.c+16 -171 reply
5/8mac_oldworld: Change PCI address of macio to match real hardwarehw/ppc/mac_oldworld.c+1 -11 reply
6/8i2c: Match parameters of i2c_start_transfer and i2c_send_recvhw/display/sm501.c hw/i2c/core.c hw/i2c/ppc4xx_i2c.c +1 more+21 -210 replies
7/8WIP macio/cuda: Attempt to add i2c supporthw/misc/macio/cuda.c include/hw/misc/macio/cuda.h+76 -10 replies
8/8mac_oldworld: Add SPD data to cover RAMhw/ppc/mac_oldworld.c+18 -13 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchMark Cave-AylandPhilippe Mathieu-Daudé
1/8
2/8R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b
6/8
7/8
8/8

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

Read the v7 thread

Cover letter [PATCH v7 0/8] Mac Old World ROM experiment

This is now a minimal set of patches needed to make it possible to experiment with a firmware ROM from real hardware. After finding out that the board firmware does not probe PCI devices but expects them at known fixed addresses we only need to change the address of the macio device to get the firmware correctly map it. This allows dropping workarounds in previous versions for this and now only the minimal set of patches are included to get the firmware loaded and do something. (Also excluded the grackle revision and machine ID pathes for now that may be needed as the firmware accesses these but seems to go further without them so until we hit a problem we can live without it, although I wonder if this causes us unnecessary debugging later so unless they cause regressions they could be merged).

I still don't get video output but at least it talks to the GPU chip now so it can be debugged and improved (this will either need emulating the correct chip the firmware has a driver for or an OF compliant ROM for the emulated card).

As before the I2C part (patches 6-8) is RFC and unfinished but the first 5 patches should be good enough now. I hope someone can take care of I2C, I can look at the ati-vga side later.

Regards,
BALATON Zoltan

BALATON Zoltan (8):
mac_oldworld: Allow loading binary ROM image
mac_newworld: Allow loading binary ROM image
mac_oldworld: Drop a variable, use get_system_memory() directly
mac_oldworld: Drop some variables
mac_oldworld: Change PCI address of macio to match real hardware
i2c: Match parameters of i2c_start_transfer and i2c_send_recv WIP macio/cuda: Attempt to add i2c support
mac_oldworld: Add SPD data to cover RAM

 hw/display/sm501.c           |  2 +-
 hw/i2c/core.c                | 34 +++++++-------
 hw/i2c/ppc4xx_i2c.c          |  2 +-
 hw/misc/macio/cuda.c         | 76 ++++++++++++++++++++++++++++++-
 hw/ppc/mac.h                 |  2 -
 hw/ppc/mac_newworld.c        | 22 +++++----
 hw/ppc/mac_oldworld.c        | 86 +++++++++++++++++++++++-------------
 include/hw/i2c/i2c.h         |  4 +-
 include/hw/misc/macio/cuda.h |  1 +
 9 files changed, 167 insertions(+), 62 deletions(-)
Signature · 1 line
2.21.3