qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381
@ 2009-08-27 12:58 Artyom Tarasenko
  2009-08-27 18:22 ` [Qemu-devel] " Blue Swirl
  0 siblings, 1 reply; 4+ messages in thread
From: Artyom Tarasenko @ 2009-08-27 12:58 UTC (permalink / raw)
  To: qemu-devel, Blue Swirl, Robert Reif

qemu-0.10.{5,6} start OBP tests with ss5/170 rom, and master doesn't.
I'm not sure if it is a real regression (don't know if a real ss5/170
would start these tests), but it definitely looks like a regression to
me.
It would be nice to have a way for starting OBP tests (ss5/170 is the
largest test set for SS machines I have seen).

The regression comes with the commit
513f789f6b187faf1fd533dc6972bbfa021c4381 "Use firmware configuration
instead of NVRAM".

Would it be possible to introduce a switch simulating old behavior?

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

* [Qemu-devel] Re: sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381
  2009-08-27 12:58 [Qemu-devel] sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381 Artyom Tarasenko
@ 2009-08-27 18:22 ` Blue Swirl
  2009-08-28 12:44   ` Artyom Tarasenko
  0 siblings, 1 reply; 4+ messages in thread
From: Blue Swirl @ 2009-08-27 18:22 UTC (permalink / raw)
  To: Artyom Tarasenko; +Cc: qemu-devel, Robert Reif

On Thu, Aug 27, 2009 at 3:58 PM, Artyom
Tarasenko<atar4qemu@googlemail.com> wrote:
> qemu-0.10.{5,6} start OBP tests with ss5/170 rom, and master doesn't.
> I'm not sure if it is a real regression (don't know if a real ss5/170
> would start these tests), but it definitely looks like a regression to
> me.
> It would be nice to have a way for starting OBP tests (ss5/170 is the
> largest test set for SS machines I have seen).
>
> The regression comes with the commit
> 513f789f6b187faf1fd533dc6972bbfa021c4381 "Use firmware configuration
> instead of NVRAM".
>
> Would it be possible to introduce a switch simulating old behavior?
>

Before the commit, we used to put a structure which describes the
hardware at the beginning of NVRAM and after this OpenBIOS partitions.
The commit moved the HW information to firmware configuration device
and relocated the partitions to start of NVRAM. QEMU uses the
partitions to pass variables to OpenBIOS, for example -prom-env
'auto-boot?=false' prevents automatic boot.

Neither the HW structure nor OpenBIOS partitions are designed to be
compatible with Sun OBP format (which is not documented), the previous
layout just happened to work somehow.

It should be easy to prevent QEMU from using NVRAM with a switch (or
new machine type), but my estimate on the number of users for the
switch is about two. Maybe this can be done some day more discreetly
with qdev, like -device-config 'sun4m.m48t59.format=sun'.

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

* [Qemu-devel] Re: sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381
  2009-08-27 18:22 ` [Qemu-devel] " Blue Swirl
@ 2009-08-28 12:44   ` Artyom Tarasenko
  2009-08-28 19:28     ` Blue Swirl
  0 siblings, 1 reply; 4+ messages in thread
From: Artyom Tarasenko @ 2009-08-28 12:44 UTC (permalink / raw)
  To: Blue Swirl; +Cc: qemu-devel, Robert Reif

2009/8/27 Blue Swirl <blauwirbel@gmail.com>:
> On Thu, Aug 27, 2009 at 3:58 PM, Artyom
> Tarasenko<atar4qemu@googlemail.com> wrote:
>> qemu-0.10.{5,6} start OBP tests with ss5/170 rom, and master doesn't.
>> I'm not sure if it is a real regression (don't know if a real ss5/170
>> would start these tests), but it definitely looks like a regression to
>> me.
>> It would be nice to have a way for starting OBP tests (ss5/170 is the
>> largest test set for SS machines I have seen).
>>
>> The regression comes with the commit
>> 513f789f6b187faf1fd533dc6972bbfa021c4381 "Use firmware configuration
>> instead of NVRAM".
>>
>> Would it be possible to introduce a switch simulating old behavior?
>>
>
> Before the commit, we used to put a structure which describes the
> hardware at the beginning of NVRAM and after this OpenBIOS partitions.
> The commit moved the HW information to firmware configuration device
> and relocated the partitions to start of NVRAM. QEMU uses the
> partitions to pass variables to OpenBIOS, for example -prom-env
> 'auto-boot?=false' prevents automatic boot.
>
> Neither the HW structure nor OpenBIOS partitions are designed to be
> compatible with Sun OBP format (which is not documented), the previous
> layout just happened to work somehow.

Layout for sun4u is sort of described here:
http://www.openbios.org/viewvc/obp/pkg/confvar/hashdevice.fth?revision=1&root=OpenBOOT

Does OpenBIOS have other structure? Or is sun4u structure not
compatible with sun4m?

>It should be easy to prevent QEMU from using NVRAM with a switch (or
new machine type), but my estimate on the number of users for the
switch is about two.

Is 'eeprom' utility in *BSD compatible with OpenBIOS layout? Or does
it just call firmware, so it's layout independant?

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

* [Qemu-devel] Re: sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381
  2009-08-28 12:44   ` Artyom Tarasenko
@ 2009-08-28 19:28     ` Blue Swirl
  0 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2009-08-28 19:28 UTC (permalink / raw)
  To: Artyom Tarasenko; +Cc: qemu-devel, Robert Reif

On Fri, Aug 28, 2009 at 3:44 PM, Artyom
Tarasenko<atar4qemu@googlemail.com> wrote:
> 2009/8/27 Blue Swirl <blauwirbel@gmail.com>:
>> On Thu, Aug 27, 2009 at 3:58 PM, Artyom
>> Tarasenko<atar4qemu@googlemail.com> wrote:
>>> qemu-0.10.{5,6} start OBP tests with ss5/170 rom, and master doesn't.
>>> I'm not sure if it is a real regression (don't know if a real ss5/170
>>> would start these tests), but it definitely looks like a regression to
>>> me.
>>> It would be nice to have a way for starting OBP tests (ss5/170 is the
>>> largest test set for SS machines I have seen).
>>>
>>> The regression comes with the commit
>>> 513f789f6b187faf1fd533dc6972bbfa021c4381 "Use firmware configuration
>>> instead of NVRAM".
>>>
>>> Would it be possible to introduce a switch simulating old behavior?
>>>
>>
>> Before the commit, we used to put a structure which describes the
>> hardware at the beginning of NVRAM and after this OpenBIOS partitions.
>> The commit moved the HW information to firmware configuration device
>> and relocated the partitions to start of NVRAM. QEMU uses the
>> partitions to pass variables to OpenBIOS, for example -prom-env
>> 'auto-boot?=false' prevents automatic boot.
>>
>> Neither the HW structure nor OpenBIOS partitions are designed to be
>> compatible with Sun OBP format (which is not documented), the previous
>> layout just happened to work somehow.
>
> Layout for sun4u is sort of described here:
> http://www.openbios.org/viewvc/obp/pkg/confvar/hashdevice.fth?revision=1&root=OpenBOOT
>
> Does OpenBIOS have other structure? Or is sun4u structure not
> compatible with sun4m?

The OpenBIOS structure can be found here:
http://tracker.coreboot.org/trac/openbios/browser/trunk/openbios-devel/modules/nvram.c

>>It should be easy to prevent QEMU from using NVRAM with a switch (or
> new machine type), but my estimate on the number of users for the
> switch is about two.
>
> Is 'eeprom' utility in *BSD compatible with OpenBIOS layout? Or does
> it just call firmware, so it's layout independant?
>

Like http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/eeprom/main.c?rev=1.18

Lines like
#if defined(__sparc__) && !defined(__sparc64__)
tell that the formats should be similar.

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

end of thread, other threads:[~2009-08-28 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27 12:58 [Qemu-devel] sparc32 potential regression in 513f789f6b187faf1fd533dc6972bbfa021c4381 Artyom Tarasenko
2009-08-27 18:22 ` [Qemu-devel] " Blue Swirl
2009-08-28 12:44   ` Artyom Tarasenko
2009-08-28 19:28     ` Blue Swirl

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).