All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Sparc sun4v machine currently broken?
@ 2017-02-10 13:49 Thomas Huth
  2017-02-10 17:29 ` Thomas Huth
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2017-02-10 13:49 UTC (permalink / raw)
  To: Artyom Tarasenko, QEMU Developers; +Cc: Mark Cave-Ayland, Richard Henderson

 Hi,

is it just me, or could it be that the sun4v machine is currently broken?
I get the following error when I try to run QEMU with this machine:

qemu-system-sparc64 -nographic -M sun4v
qemu: fatal: Trap 0x0010 while trap level (6) >= MAXTL (6), Error state
pc: 0000000000000200  npc: 0000000000000204
%g0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%o0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
%o4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
%l0-3: 0000000007f00000 000001ff00000000 000001fff0080000 0000000000000000 
%l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
%i0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
%i4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
%f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f32:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f40:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f48:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f56:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
pstate: 00000014 ccr: 44 (icc: -Z-- xcc: -Z--) asi: 00 tl: 6 pil: 0 gl: 8
tbr: 0000000000000000 hpstate: 0000000000000004 htba: 0000000000000000
cansave: 6 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 6 cwp: 7
fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000

Aborted (core dumped)


It works for when I use an older version of QEMU (version 2.7)...

 Thomas

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

* Re: [Qemu-devel] Sparc sun4v machine currently broken?
  2017-02-10 13:49 [Qemu-devel] Sparc sun4v machine currently broken? Thomas Huth
@ 2017-02-10 17:29 ` Thomas Huth
  2017-02-10 17:43   ` Artyom Tarasenko
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2017-02-10 17:29 UTC (permalink / raw)
  To: Artyom Tarasenko, QEMU Developers; +Cc: Mark Cave-Ayland, Richard Henderson

On 10.02.2017 14:49, Thomas Huth wrote:
>  Hi,
> 
> is it just me, or could it be that the sun4v machine is currently broken?
> I get the following error when I try to run QEMU with this machine:
> 
> qemu-system-sparc64 -nographic -M sun4v
> qemu: fatal: Trap 0x0010 while trap level (6) >= MAXTL (6), Error state
> pc: 0000000000000200  npc: 0000000000000204
> %g0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %o0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> %o4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> %l0-3: 0000000007f00000 000001ff00000000 000001fff0080000 0000000000000000 
> %l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> %i0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> %i4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
> %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f32:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f40:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f48:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %f56:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> pstate: 00000014 ccr: 44 (icc: -Z-- xcc: -Z--) asi: 00 tl: 6 pil: 0 gl: 8
> tbr: 0000000000000000 hpstate: 0000000000000004 htba: 0000000000000000
> cansave: 6 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 6 cwp: 7
> fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000
> 
> Aborted (core dumped)
> 
> It works for when I use an older version of QEMU (version 2.7)...

FWIW, it's also still working when I use QEMU 2.8, so this must be a
recent regression...

 Thomas

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

* Re: [Qemu-devel] Sparc sun4v machine currently broken?
  2017-02-10 17:29 ` Thomas Huth
@ 2017-02-10 17:43   ` Artyom Tarasenko
  2017-02-10 17:51     ` Thomas Huth
  0 siblings, 1 reply; 4+ messages in thread
From: Artyom Tarasenko @ 2017-02-10 17:43 UTC (permalink / raw)
  To: Thomas Huth; +Cc: QEMU Developers, Mark Cave-Ayland, Richard Henderson

On Fri, Feb 10, 2017 at 6:29 PM, Thomas Huth <thuth@redhat.com> wrote:
> On 10.02.2017 14:49, Thomas Huth wrote:
>>  Hi,
>>
>> is it just me, or could it be that the sun4v machine is currently broken?
>> I get the following error when I try to run QEMU with this machine:
>>
>> qemu-system-sparc64 -nographic -M sun4v
>> qemu: fatal: Trap 0x0010 while trap level (6) >= MAXTL (6), Error state
>> pc: 0000000000000200  npc: 0000000000000204
>> %g0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %o0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %o4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %l0-3: 0000000007f00000 000001ff00000000 000001fff0080000 0000000000000000
>> %l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %i0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %i4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f00:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f08:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f16:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f24:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f32:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f40:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f48:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> %f56:  0000000000000000 0000000000000000 0000000000000000 0000000000000000
>> pstate: 00000014 ccr: 44 (icc: -Z-- xcc: -Z--) asi: 00 tl: 6 pil: 0 gl: 8
>> tbr: 0000000000000000 hpstate: 0000000000000004 htba: 0000000000000000
>> cansave: 6 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 6 cwp: 7
>> fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000
>>
>> Aborted (core dumped)
>>
>> It works for when I use an older version of QEMU (version 2.7)...
>
> FWIW, it's also still working when I use QEMU 2.8, so this must be a
> recent regression...

Oh. This is surprising. Sun4v practically wasn't implemented before my
niagara series.
So, OpenBIOS worked because -M sun4v was like -M sun4u with some sun4v
instructions.
Now sun4v is closer to a real sun4v - it has sun4v MMU, so OpenBIOS is
not compatible with it anymore.
The proper fix would be adding sun4v support to OpenBIOS, but it may
take some time.


-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu

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

* Re: [Qemu-devel] Sparc sun4v machine currently broken?
  2017-02-10 17:43   ` Artyom Tarasenko
@ 2017-02-10 17:51     ` Thomas Huth
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2017-02-10 17:51 UTC (permalink / raw)
  To: Artyom Tarasenko; +Cc: QEMU Developers, Mark Cave-Ayland, Richard Henderson

On 10.02.2017 18:43, Artyom Tarasenko wrote:
> On Fri, Feb 10, 2017 at 6:29 PM, Thomas Huth <thuth@redhat.com> wrote:
>> On 10.02.2017 14:49, Thomas Huth wrote:
>>>  Hi,
>>>
>>> is it just me, or could it be that the sun4v machine is currently broken?
>>> I get the following error when I try to run QEMU with this machine:
>>>
>>> qemu-system-sparc64 -nographic -M sun4v
>>> qemu: fatal: Trap 0x0010 while trap level (6) >= MAXTL (6), Error state
[...]
>>> It works for when I use an older version of QEMU (version 2.7)...
>>
>> FWIW, it's also still working when I use QEMU 2.8, so this must be a
>> recent regression...
> 
> Oh. This is surprising. Sun4v practically wasn't implemented before my
> niagara series.
> So, OpenBIOS worked because -M sun4v was like -M sun4u with some sun4v
> instructions.
> Now sun4v is closer to a real sun4v - it has sun4v MMU, so OpenBIOS is
> not compatible with it anymore.
> The proper fix would be adding sun4v support to OpenBIOS, but it may
> take some time.

Ah, ok, thanks for the explanation! I was considering to finally enable
the prom-env-test for sparc64 (since the 32-bit TCG problem was solved
at one point in time, IIRC) when I ran into this problem. So I guess I
should only enable it for the sun4u machine initially...

 Thomas

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

end of thread, other threads:[~2017-02-10 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-10 13:49 [Qemu-devel] Sparc sun4v machine currently broken? Thomas Huth
2017-02-10 17:29 ` Thomas Huth
2017-02-10 17:43   ` Artyom Tarasenko
2017-02-10 17:51     ` Thomas Huth

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.