Skip to content

Commit

Permalink
hw/display: Add basic ATI VGA emulation
Browse files Browse the repository at this point in the history
At least two machines, the PPC mac99 and MIPS fulong2e, have an ATI
gfx chip by default (Rage 128 Pro and M6/RV100 respectively) and
guests running on these and the PMON2000 firmware of the fulong2e
expect this to be available. Fortunately these are very similar chips
so they can be mostly emulated in the same device model. This patch
adds basic emulation of these ATI VGA chips.

While this is incomplete and currently only enough to run the MIPS
firmware and get framebuffer output with Linux, it allows the fulong2e
board to work more like the real hardware and having it in QEMU in
this state provides a way to experiment with it and allows others to
contribute to improve it. It is compiled for all archs but only the
fulong2e (which currently has no display output at all) is set to use
it by default (in a separate patch).

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Tested-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Message-id: 0b1b7c22873a6e37627261b04fb687412b25ff4f.1552152100.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
zbalaton authored and kraxel committed Mar 11, 2019
1 parent 0be0034 commit 862b4a2
Show file tree
Hide file tree
Showing 9 changed files with 1,861 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hw/display/Kconfig
Expand Up @@ -106,3 +106,9 @@ config VIRTIO_VGA

config DPCD
bool

config ATI_VGA
bool
default y if PCI_DEVICES
depends on PCI
select VGA
2 changes: 2 additions & 0 deletions hw/display/Makefile.objs
Expand Up @@ -51,3 +51,5 @@ virtio-gpu-3d.o-cflags := $(VIRGL_CFLAGS)
virtio-gpu-3d.o-libs += $(VIRGL_LIBS)
obj-$(CONFIG_DPCD) += dpcd.o
obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o

obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o

0 comments on commit 862b4a2

Please sign in to comment.