qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] hw/display: Add basic ATI VGA emulation
Date: Wed, 20 Feb 2019 08:29:28 +0100	[thread overview]
Message-ID: <20190220072928.mci7urfyfqwg55fg@sirius.home.kraxel.org> (raw)
In-Reply-To: <alpine.BSF.2.21.9999.1902191449400.24309@zero.eik.bme.hu>

  Hi,

> > So it could be tested with linux guests on x86 too I guess?
> > Can the radeon drm driver handle the devices too?
> 
> Yes you can try with x86 guests, I haven't tested that yet. The radeon
> driver only supports RV100 and up I think so may only work with the 0x5159
> variant not with Rage 128 Pro which had another driver r128 but not sure
> that still exists. Although these two chips are similar, Rage 128 Pro is a
> bit simpler that's why I'm targeting it first and also that's what the
> PowerMac3,1 (the ppc mac99 machine is converging to) has. The R128Pro is the
> last of the previous generation before Radeon, while RV100 is the stripped
> down simplest version of the R100 family which has some more 3D capability).
> But even if the DRM driver loads, probably only the mode setting part is
> useful at the moment as 3D is not implemented yet by this device model.

Chances are not too bad that it'll be good enough to bring up a linux
console.

> > I'd also use model=<name> instead of device_id=... to switch between
> > different devices.
> 
> The only problem with that is that there are this many versions with
> confusing names (and maybe different device ids for different versions):
> 
> https://www.x.org/wiki/RadeonFeature/#index5h2

Do we want emulate them all?
I'd guess picking a few models would be more useful ...

> so the only really good way to identify a chip is via device_id. This is not
> user friendly but at this stage probably will do and we can add alternative
> model property later which aliases some device ids (like it's done for CPU

Ok, I'd suggest to rename it to x-device-id (to indicate that it may go
away later) if you want stick with device id for now.

> OK I thought those are related but if adding it to the default_list[] won't
> automatically add a -vga option then that's a good idea. I'll do that and
> also move the config lines to pci.mak in next version but wait for a few
> more days for more comments.

One thing I've noticed is that you use the vbe registers internally.
I'd suggest to not do that, I suspect it will only get into the way
latter on.  Better register your own GraphicsHwOps, then go call the vga
ops in vga mode and your ati modesetting code in extended mode.
virtio-vga does it that way if you want look at some sample code.  Also
looking at bochs-display.c is probably more helpful than looking at
vga.c when figuring how to handle display updates.

cheers,
  Gerd

  reply	other threads:[~2019-02-20  7:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11  3:19 [Qemu-devel] [PATCH] hw/display: Add basic ATI VGA emulation BALATON Zoltan
2019-02-12  0:24 ` Philippe Mathieu-Daudé
2019-02-12 23:59   ` BALATON Zoltan
2019-02-13  7:06     ` Mark Cave-Ayland
2019-02-13 11:52       ` BALATON Zoltan
2019-02-19  9:57     ` Peter Maydell
2019-02-19 12:11       ` BALATON Zoltan
2019-02-20 23:24       ` BALATON Zoltan
2019-02-21  0:50         ` BALATON Zoltan
2019-02-21  9:14           ` Peter Maydell
2019-02-19  9:22 ` Gerd Hoffmann
2019-02-19 12:00   ` BALATON Zoltan
2019-02-19 12:30     ` Gerd Hoffmann
2019-02-19 15:11       ` BALATON Zoltan
2019-02-20  7:29         ` Gerd Hoffmann [this message]
2019-02-20 12:13           ` BALATON Zoltan
2019-02-21 11:44           ` BALATON Zoltan
2019-02-21 12:36             ` Gerd Hoffmann
2019-02-21 15:24               ` BALATON Zoltan

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=20190220072928.mci7urfyfqwg55fg@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=balaton@eik.bme.hu \
    --cc=peter.maydell@linaro.org \
    --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).