qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Artyom Tarasenko <atar4qemu@googlemail.com>
Cc: Bob Breuer <breuerr@mc.net>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: sun framebuffer selection (was option-rom)
Date: Wed, 9 Jun 2010 19:43:34 +0000	[thread overview]
Message-ID: <AANLkTimUhv4tPnOfQam6uw8HUTdtdzOF0iU9DC5etR6v@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimm3xX916cPRCUDM5ZF4QgOXwLABAYHOvrAR7sM@mail.gmail.com>

On Sun, Jun 6, 2010 at 4:28 PM, Artyom Tarasenko
<atar4qemu@googlemail.com> wrote:
> 2010/6/6 Blue Swirl <blauwirbel@gmail.com>:
>> On Sat, Jun 5, 2010 at 11:10 PM, Bob Breuer <breuerr@mc.net> wrote:
>>> Blue Swirl wrote:
>>>>  but again: should we have a new machine with cg14 or
>>>> some switch to select TCX vs. cg14?
>>>>
>
> Why not just probe for both devices? OpenBIOS has the intention
> to run one day on a real hardware, doesn't it?

I don't think it's very interesting for old hardware. Also coreboot
may be a better platform (with OpenBIOS as a payload).

>>>> Maybe the recently proposed machine subtype patches could help here.
>
> How is the graphic card different from cpu or a disk drive?

It isn't.

>>> Well, let's try to figure out a method of selecting the framebuffer
>>> type.  I'll try to list some of the options, even if they might be
>>> ridiculous.
>>>
>>> 1) Use the -vga option.  I know TCX and cg14 are not vga, but I think
>>> it's the closest existing command line option available.
>>>
>>> 2) Switch based on the -g WxH option.  At the moment, the TCX emulation
>>> doesn't really handle anything other than 1024x768, so switch to cg14
>>> for other resolutions if supported.
>>>
>>> 3) Use some other existing command line option, -device, -set or
>>> -global?  Might work, but the syntax may not be easy to remember.
>>
>> We don't have an equivalent of -chardev, -netdev and -drive for displays.
>
> I guess only cause the other emulated platforms don't have that much
> of choice (yet).
> Why not use just the generic -device option?

Then there would be two graphics devices. There should be something
like -displaydev SDL,id=1 -displaydev SDL,id=2 -device cg14,display=1
-device TCX,display=2.

>
>>> 4) Machine subtype.
>>>
>>> 5) New command line option.  Anything above might be better.
>>>
>>> 6) New machine type.  Is it a big enough feature to demand it's own
>>> machine type?  Maybe, but see next option.
>>>
>>> 7) Select as default video for SS-20.  The SS-10 and SS-600MP are
>>> already very similar.  This would allow for some differentiation between
>>> the machines, but there could still be an option to switch back to TCX.
>>> Note that TCX was really only available for the SS-4 and SS-5.
>>>
>
> They are similar in qemu. But it's rather a bug than a feature. The
> real SS-600 is much more complex VME-bus machine.
>
>>>
>>> Is there anything else that I missed?
>>
>> Combined 7 & 6: make cg14 default for SS-20, add a deprecated
>> compatibility machine for SS-20 with TCX.
>>
>>>
>>> I'm going to go ahead with option 2 in the short term.  I'm inclined to
>>> narrow it down to options 1, 4, and 7.  I know that 7 would have
>>> backwards compatibility concerns.  The cg14 seems to have at least the
>>> same capabilities as TCX so there shouldn't be any loss of
>>> functionality.  Even though SS-20 is not the default machine, do you
>>> know of any OS that works with the sun4m implementation today but
>>> doesn't have a cg14 driver?  Possible downside to cg14 for video is that
>>> any "acceleration" is handled by the SX pixel processor which has no
>>> available documentation.  TCX also has some amount of unimplemented
>>> acceleration.
>>
>> It would be nice to use some basic device with well defined
>> acceleration or just a frame buffer as default.
>>
>
> AFAIK the open source OSes don't use the cg14 acceleration anyway. So
> we'll only have potential problems with Solaris and NeXTStep here.
>
>
> --
> Regards,
> Artyom Tarasenko
>
> solaris/sparc under qemu blog: http://tyom.blogspot.com/
>

      reply	other threads:[~2010-06-09 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04 17:40 [Qemu-devel] option-rom (was cg14) Artyom Tarasenko
2010-06-04 19:28 ` [Qemu-devel] " Blue Swirl
2010-06-05 20:25   ` Bob Breuer
2010-06-05 20:35     ` Blue Swirl
2010-06-05 23:10       ` [Qemu-devel] sun framebuffer selection (was option-rom) Bob Breuer
2010-06-06  7:32         ` [Qemu-devel] " Blue Swirl
2010-06-06 16:28           ` Artyom Tarasenko
2010-06-09 19:43             ` Blue Swirl [this message]

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=AANLkTimUhv4tPnOfQam6uw8HUTdtdzOF0iU9DC5etR6v@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=atar4qemu@googlemail.com \
    --cc=breuerr@mc.net \
    --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).