All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Adding resolutions to the VGA driver
@ 2016-09-15 17:21 Programmingkid
  2016-09-15 22:06 ` Benjamin Herrenschmidt
  2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
  0 siblings, 2 replies; 13+ messages in thread
From: Programmingkid @ 2016-09-15 17:21 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

There has been talk about what resolutions to add support for in the VGA driver. What do you think of this list:

512x342
640x400
640x480
800x600
1024x600
1024x640
1152x864
1200x700
1280x720
1280x768
1280x800
1366x768
1440x900
1920x1200
2304x1440
2560x1080
2560x1600
2880x1800
4096x2304 
4096x3072
8192x4608

From MacPlus size to 8k. 

This is a list of all common resolutions: https://en.wikipedia.org/wiki/List_of_common_resolutions

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-15 17:21 [Qemu-devel] Adding resolutions to the VGA driver Programmingkid
@ 2016-09-15 22:06 ` Benjamin Herrenschmidt
  2016-09-16 10:58   ` Gerd Hoffmann
  2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
  1 sibling, 1 reply; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2016-09-15 22:06 UTC (permalink / raw)
  To: Programmingkid; +Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Thu, 2016-09-15 at 13:21 -0400, Programmingkid wrote:
> There has been talk about what resolutions to add support for in the
> VGA driver. What do you think of this list:

We should add check for the vram amount. There's only 16M emulated
iirc, we need to check the combination resolution/depth fits.

> 512x342
> 640x400
> 640x480
> 800x600
> 1024x600
> 1024x640
> 1152x864
> 1200x700
> 1280x720
> 1280x768
> 1280x800
> 1366x768
> 1440x900
> 1920x1200
> 2304x1440
> 2560x1080
> 2560x1600
> 2880x1800
> 4096x2304 
> 4096x3072
> 8192x4608
> 
> From MacPlus size to 8k. 
> 
> This is a list of all common resolutions: https://en.wikipedia.org/wi
> ki/List_of_common_resolutions

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-15 17:21 [Qemu-devel] Adding resolutions to the VGA driver Programmingkid
  2016-09-15 22:06 ` Benjamin Herrenschmidt
@ 2016-09-16  8:37 ` Michael Fritscher
  2016-09-16  8:56   ` Benjamin Herrenschmidt
                     ` (2 more replies)
  1 sibling, 3 replies; 13+ messages in thread
From: Michael Fritscher @ 2016-09-16  8:37 UTC (permalink / raw)
  To: Programmingkid, Benjamin Herrenschmidt
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 1671 bytes --]

Am 15.09.2016 um 19:21 schrieb Programmingkid:
> There has been talk about what resolutions to add support for in the VGA driver. What do you think of this list:
>
> 512x342
> 640x400
> 640x480
> 800x600
> 1024x600
> 1024x640
> 1152x864
> 1200x700
> 1280x720
> 1280x768
> 1280x800
> 1366x768
> 1440x900
> 1920x1200
> 2304x1440
> 2560x1080
> 2560x1600
> 2880x1800
> 4096x2304
> 4096x3072
> 8192x4608
>
> From MacPlus size to 8k.
>
> This is a list of all common resolutions: https://en.wikipedia.org/wiki/List_of_common_resolutions
>

Hi,

Following resolutions are also quite common:

1280x960
1280x1024 (Most LCD-Monitors in the 15-17 zoll range had this for a long 
time, also a standard VESA Resolution)
1400x1050
1600x1200 (Many LCD-Monitors in the 20-21 zoll range had this for a long 
time, rather "common" resolution)
1920x1080 (the standard full HD resolution)
2560x1440 (the common "next step" after 1920x1080)
3840×2160 (the standard 4k resolution, also known as 2160(p) or UHDTV)
7680x4320 (the standard 8k resolution, also known as 4320p, is also 
defined as UHDTV)

I assume that you left out the common CGA/EGA resolution intentionally?

Best regards,
Michael Fritscher

-- 
ZfT - Zentrum für Telematik e.V.
Michael Fritscher
Magdalene-Schoch-Straße 5
97074 Würzburg
Tel: +49 (931) 615 633 - 57
Fax: +49 (931) 615 633 - 11
Email: michael.fritscher@telematik-zentrum.de
Web: http://www.telematik-zentrum.de

Vorstand:
Prof. Dr. Klaus Schilling, Hans-Joachim Leistner
Sitz: Gerbrunn
USt.-ID Nr.: DE 257 244 580, Steuer-Nr.:  257/111/70203
Amtsgericht Würzburg, Vereinsregister-Nr.: VR 200 167

[-- Attachment #1.2: michael_fritscher.vcf --]
[-- Type: text/x-vcard, Size: 352 bytes --]

begin:vcard
fn:Michael Fritscher
n:Fritscher;Michael
org;quoted-printable:Zentrum f=C3=BCr Telematik
adr:;;Allesgrundweg 12;Gerbrunn;Bayern;97218;Deutschland
email;internet:michael.fritscher@telematik-zentrum.de
tel;work:+49 (931) 3 29 29 54 - 21
tel;fax:+49 (931) 3 29 29 54 - 11
url:http://www.telematik-zentrum.de
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4423 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
@ 2016-09-16  8:56   ` Benjamin Herrenschmidt
  2016-09-16 10:13     ` Michael Fritscher
  2016-09-16 11:32   ` G 3
  2016-09-17  7:59   ` Michael Tokarev
  2 siblings, 1 reply; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2016-09-16  8:56 UTC (permalink / raw)
  To: Michael Fritscher, Programmingkid
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Fri, 2016-09-16 at 10:37 +0200, Michael Fritscher wrote:
> 
> I assume that you left out the common CGA/EGA resolution
> intentionally?

It's not because a resolution exists somewhere that we need it in the
driver's menu :-)

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16  8:56   ` Benjamin Herrenschmidt
@ 2016-09-16 10:13     ` Michael Fritscher
  2016-09-16 12:25       ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Fritscher @ 2016-09-16 10:13 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Programmingkid
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 978 bytes --]

Am 16.09.2016 um 10:56 schrieb Benjamin Herrenschmidt:
> On Fri, 2016-09-16 at 10:37 +0200, Michael Fritscher wrote:
>>
>> I assume that you left out the common CGA/EGA resolution
>> intentionally?
>
> It's not because a resolution exists somewhere that we need it in the
> driver's menu :-)
>
> Cheers,
> Ben.
>

Hi,

at least in Windows, the GUI doesn't display the CGA/EGA resolution, but 
the driver supports them and can be accessed via API. Some (rather old) 
games used that for example.

Best regards,
Michael
-- 
ZfT - Zentrum für Telematik e.V.
Michael Fritscher
Magdalene-Schoch-Straße 5
97074 Würzburg
Tel: +49 (931) 615 633 - 57
Fax: +49 (931) 615 633 - 11
Email: michael.fritscher@telematik-zentrum.de
Web: http://www.telematik-zentrum.de

Vorstand:
Prof. Dr. Klaus Schilling, Hans-Joachim Leistner
Sitz: Gerbrunn
USt.-ID Nr.: DE 257 244 580, Steuer-Nr.:  257/111/70203
Amtsgericht Würzburg, Vereinsregister-Nr.: VR 200 167

[-- Attachment #1.2: michael_fritscher.vcf --]
[-- Type: text/x-vcard, Size: 352 bytes --]

begin:vcard
fn:Michael Fritscher
n:Fritscher;Michael
org;quoted-printable:Zentrum f=C3=BCr Telematik
adr:;;Allesgrundweg 12;Gerbrunn;Bayern;97218;Deutschland
email;internet:michael.fritscher@telematik-zentrum.de
tel;work:+49 (931) 3 29 29 54 - 21
tel;fax:+49 (931) 3 29 29 54 - 11
url:http://www.telematik-zentrum.de
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4423 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-15 22:06 ` Benjamin Herrenschmidt
@ 2016-09-16 10:58   ` Gerd Hoffmann
  2016-09-16 12:26     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 13+ messages in thread
From: Gerd Hoffmann @ 2016-09-16 10:58 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Programmingkid, list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Fr, 2016-09-16 at 08:06 +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2016-09-15 at 13:21 -0400, Programmingkid wrote:
> > There has been talk about what resolutions to add support for in the
> > VGA driver. What do you think of this list:

Which driver?

Linux kernel driver just uses the kernel's internal mode database,
beside that you can add anything you want (for example via xrandr).

> We should add check for the vram amount. There's only 16M emulated
> iirc, we need to check the combination resolution/depth fits.

Yes, vram size should be checked, at runtime.  16M is just the default,
you can have anything from 1M to 256M.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
  2016-09-16  8:56   ` Benjamin Herrenschmidt
@ 2016-09-16 11:32   ` G 3
  2016-09-17  7:59   ` Michael Tokarev
  2 siblings, 0 replies; 13+ messages in thread
From: G 3 @ 2016-09-16 11:32 UTC (permalink / raw)
  To: Michael Fritscher
  Cc: Benjamin Herrenschmidt, list@suse.de:PowerPC list:PowerPC,
	qemu-devel qemu-devel

  On 9/16/16 4:37 AM, Michael Fritscher wrote:
> Am 15.09.2016 um 19:21 schrieb Programmingkid:
>> There has been talk about what resolutions to add support for in the 
>> VGA driver. What do you think of this list:
>>
>> 512x342
>> 640x400
>> 640x480
>> 800x600
>> 1024x600
>> 1024x640
>> 1152x864
>> 1200x700
>> 1280x720
>> 1280x768
>> 1280x800
>> 1366x768
>> 1440x900
>> 1920x1200
>> 2304x1440
>> 2560x1080
>> 2560x1600
>> 2880x1800
>> 4096x2304
>> 4096x3072
>> 8192x4608
>>
>> From MacPlus size to 8k.
>>
>> This is a list of all common resolutions: 
>> https://en.wikipedia.org/wiki/List_of_common_resolutions
>>
>
> Hi,
>
> Following resolutions are also quite common:
>
> 1280x960
> 1280x1024 (Most LCD-Monitors in the 15-17 zoll range had this for a 
> long time, also a standard VESA Resolution)
> 1400x1050
> 1600x1200 (Many LCD-Monitors in the 20-21 zoll range had this for a 
> long time, rather "common" resolution)
> 1920x1080 (the standard full HD resolution)
> 2560x1440 (the common "next step" after 1920x1080)
> 3840×2160 (the standard 4k resolution, also known as 2160(p) or UHDTV)
> 7680x4320 (the standard 8k resolution, also known as 4320p, is also 
> defined as UHDTV)
>
> I assume that you left out the common CGA/EGA resolution intentionally?
Thank you for the additional resolutions.

The VGA driver we are talking about is going to work on qemu-system-ppc. 
CGA/EGA resolutions are more PC. But is a possibility.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16 10:13     ` Michael Fritscher
@ 2016-09-16 12:25       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2016-09-16 12:25 UTC (permalink / raw)
  To: Michael Fritscher, Programmingkid
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Fri, 2016-09-16 at 12:13 +0200, Michael Fritscher wrote:
> at least in Windows, the GUI doesn't display the CGA/EGA resolution, but 
> the driver supports them and can be accessed via API. Some (rather old) 
> games used that for example.

For MacOS I wouldn't fret it. A lot of Apple monitors had a very
limited set of resolutions when they weren't single-sync to begin
with, so SW had adapted.

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16 10:58   ` Gerd Hoffmann
@ 2016-09-16 12:26     ` Benjamin Herrenschmidt
  2016-09-17  2:53       ` [Qemu-devel] VGA driver debug output G 3
  0 siblings, 1 reply; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2016-09-16 12:26 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Programmingkid, list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Fri, 2016-09-16 at 12:58 +0200, Gerd Hoffmann wrote:
> On Fr, 2016-09-16 at 08:06 +1000, Benjamin Herrenschmidt wrote:
> > 
> > On Thu, 2016-09-15 at 13:21 -0400, Programmingkid wrote:
> > > 
> > > There has been talk about what resolutions to add support for in the
> > > VGA driver. What do you think of this list:
> 
> Which driver?

The MacOS 9 guest driver I put together for qemu vga ;-)

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Qemu-devel] VGA driver debug output
  2016-09-16 12:26     ` Benjamin Herrenschmidt
@ 2016-09-17  2:53       ` G 3
  2016-09-17  3:30         ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 13+ messages in thread
From: G 3 @ 2016-09-17  2:53 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

Is there a way to make the VGA driver print information? I tried  
building the debug settings in CodeWarrior but it ends with an error.  
I'm trying to add a feature to the driver that will allow the user to  
add resolutions via the command-line. With the debug output I can  
test this driver out.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] VGA driver debug output
  2016-09-17  2:53       ` [Qemu-devel] VGA driver debug output G 3
@ 2016-09-17  3:30         ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 13+ messages in thread
From: Benjamin Herrenschmidt @ 2016-09-17  3:30 UTC (permalink / raw)
  To: G 3; +Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

On Fri, 2016-09-16 at 22:53 -0400, G 3 wrote:
> Is there a way to make the VGA driver print information? I tried  
> building the debug settings in CodeWarrior but it ends with an error.  
> I'm trying to add a feature to the driver that will allow the user to  
> add resolutions via the command-line. With the debug output I can  
> test this driver out.

Yes but you need a patch in qemu that implements the MOL OSI debug
output, it's in my branch.

Then you should be able to build the debug target.

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
  2016-09-16  8:56   ` Benjamin Herrenschmidt
  2016-09-16 11:32   ` G 3
@ 2016-09-17  7:59   ` Michael Tokarev
  2016-09-17 21:28     ` G 3
  2 siblings, 1 reply; 13+ messages in thread
From: Michael Tokarev @ 2016-09-17  7:59 UTC (permalink / raw)
  To: Michael Fritscher, Programmingkid, Benjamin Herrenschmidt
  Cc: list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel

16.09.2016 11:37, Michael Fritscher wrote:
> Am 15.09.2016 um 19:21 schrieb Programmingkid:
> Following resolutions are also quite common:
>
> 1280x960
> 1280x1024 (Most LCD-Monitors in the 15-17 zoll range had this for a long
> time, also a standard VESA Resolution)
> 1400x1050
> 1600x1200 (Many LCD-Monitors in the 20-21 zoll range had this for a long
> time, rather "common" resolution)
> 1920x1080 (the standard full HD resolution)
> 2560x1440 (the common "next step" after 1920x1080)
> 3840×2160 (the standard 4k resolution, also known as 2160(p) or UHDTV)
> 7680x4320 (the standard 8k resolution, also known as 4320p, is also
> defined as UHDTV)

Please note that resolutions those pixel counts don't divide to 8
wont work with qemu.  In the past that was lead to crashes, now
just garbled guest display.

Or maybe even 16, memory is failing.

/mjt

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Qemu-devel] Adding resolutions to the VGA driver
  2016-09-17  7:59   ` Michael Tokarev
@ 2016-09-17 21:28     ` G 3
  0 siblings, 0 replies; 13+ messages in thread
From: G 3 @ 2016-09-17 21:28 UTC (permalink / raw)
  To: Michael Tokarev
  Cc: Michael Fritscher, Benjamin Herrenschmidt,
	list@suse.de:PowerPC list:PowerPC, qemu-devel qemu-devel


On Sep 17, 2016, at 3:59 AM, Michael Tokarev wrote:

> 16.09.2016 11:37, Michael Fritscher wrote:
>> Am 15.09.2016 um 19:21 schrieb Programmingkid:
>> Following resolutions are also quite common:
>>
>> 1280x960
>> 1280x1024 (Most LCD-Monitors in the 15-17 zoll range had this for  
>> a long
>> time, also a standard VESA Resolution)
>> 1400x1050
>> 1600x1200 (Many LCD-Monitors in the 20-21 zoll range had this for  
>> a long
>> time, rather "common" resolution)
>> 1920x1080 (the standard full HD resolution)
>> 2560x1440 (the common "next step" after 1920x1080)
>> 3840×2160 (the standard 4k resolution, also known as 2160(p) or  
>> UHDTV)
>> 7680x4320 (the standard 8k resolution, also known as 4320p, is also
>> defined as UHDTV)
>
> Please note that resolutions those pixel counts don't divide to 8
> wont work with qemu.  In the past that was lead to crashes, now
> just garbled guest display.
>
> Or maybe even 16, memory is failing.
>
> /mjt

Thank you very much for the info. This would explain why 1366x768 was  
all messed up in Mac OS X.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-17 21:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 17:21 [Qemu-devel] Adding resolutions to the VGA driver Programmingkid
2016-09-15 22:06 ` Benjamin Herrenschmidt
2016-09-16 10:58   ` Gerd Hoffmann
2016-09-16 12:26     ` Benjamin Herrenschmidt
2016-09-17  2:53       ` [Qemu-devel] VGA driver debug output G 3
2016-09-17  3:30         ` Benjamin Herrenschmidt
2016-09-16  8:37 ` [Qemu-devel] Adding resolutions to the VGA driver Michael Fritscher
2016-09-16  8:56   ` Benjamin Herrenschmidt
2016-09-16 10:13     ` Michael Fritscher
2016-09-16 12:25       ` Benjamin Herrenschmidt
2016-09-16 11:32   ` G 3
2016-09-17  7:59   ` Michael Tokarev
2016-09-17 21:28     ` G 3

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.