From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Aleksandar Markovic <amarkovic@wavecomp.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Aleksandar Rikalo <arikalo@wavecomp.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
BALATON Zoltan <balaton@eik.bme.hu>
Subject: [Qemu-devel] [PULL 2/5] mips_fulong2e: Add on-board graphics chip
Date: Fri, 8 Mar 2019 13:39:34 +0100 [thread overview]
Message-ID: <20190308123937.2346-3-kraxel@redhat.com> (raw)
In-Reply-To: <20190308123937.2346-1-kraxel@redhat.com>
From: BALATON Zoltan <balaton@eik.bme.hu>
Add (partial) emulation of the on-board GPU of the machine. This
allows the PMON2000 firmware to run and should also work with Linux
console but probably not with X yet.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <12a45041a9a5ae863bf04edf3875aa9d25c481a3.1551902740.git.balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/mips/mips_fulong2e.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c
index fbbc543eede5..f87769376608 100644
--- a/hw/mips/mips_fulong2e.c
+++ b/hw/mips/mips_fulong2e.c
@@ -287,6 +287,7 @@ static void mips_fulong2e_init(MachineState *machine)
I2CBus *smbus;
MIPSCPU *cpu;
CPUMIPSState *env;
+ DeviceState *dev;
/* init CPUs */
cpu = MIPS_CPU(cpu_create(machine->cpu_type));
@@ -347,6 +348,11 @@ static void mips_fulong2e_init(MachineState *machine)
vt82c686b_southbridge_init(pci_bus, FULONG2E_VIA_SLOT, env->irq[5],
&smbus, &isa_bus);
+ /* GPU */
+ dev = DEVICE(pci_create(pci_bus, -1, "ati-vga"));
+ qdev_prop_set_uint16(dev, "x-device-id", 0x5159);
+ qdev_init_nofail(dev);
+
/* Populate SPD eeprom data */
spd_data = spd_data_generate(DDR, ram_size, &err);
if (err) {
--
2.18.1
next prev parent reply other threads:[~2019-03-08 12:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-08 12:39 [Qemu-devel] [PULL 0/5] Vga 20190308 patches Gerd Hoffmann
2019-03-08 12:39 ` [Qemu-devel] [PULL 1/5] hw/display: Add basic ATI VGA emulation Gerd Hoffmann
2019-03-08 16:16 ` BALATON Zoltan
2019-03-08 12:39 ` Gerd Hoffmann [this message]
2019-03-08 12:39 ` [Qemu-devel] [PULL 3/5] virtio: add class_size to VirtioPCIDeviceTypeInfo Gerd Hoffmann
2019-03-08 12:39 ` [Qemu-devel] [PULL 4/5] virtio-vga: fix reset Gerd Hoffmann
2019-03-08 12:39 ` [Qemu-devel] [PULL 5/5] virtio-gpu: make virtio_gpu_reset static Gerd Hoffmann
2019-03-09 14:42 ` [Qemu-devel] [PULL 0/5] Vga 20190308 patches Peter Maydell
2019-03-11 13:33 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190308123937.2346-3-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=amarkovic@wavecomp.com \
--cc=arikalo@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=balaton@eik.bme.hu \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).