Skip to contentSkip to conversation

Sparc sun4v machine currently broken?

Qemu-devel Thomas Huth 2 participants 4 messages Feb 10, 2017

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 24 lines · Thomas Huth

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
Quoted 8 lines

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

#2 lore raw
Quoted 30 lines · Thomas Huth
Quoted 29 lines · Thomas Huth

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

Quoted 6 lines
Quoted 3 lines

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.

Signature · 4 lines
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu
#3 lore raw
Quoted 9 lines · Artyom Tarasenko
Quoted 8 lines · Thomas Huth
Quoted 7 lines · Thomas Huth

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

[...]

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

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

Quoted 8 lines

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