`qemu-system-sparc64 -M Niagara` Aborted (core dumped)

Bug #1670170 reported by Michal Nowak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

> qemu-system-sparc64 -M Niagara
qemu: fatal: Trap 0x0064 while trap level (6) >= MAXTL (6), Error state
pc: 0000000000004c80 npc: 0000000000004c84
%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: 00000414 ccr: 44 (icc: -Z-- xcc: -Z--) asi: 00 tl: 6 pil: 0
cansave: 6 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 6 cwp: 7
fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000

Aborted (core dumped)

> qemu-system-sparc64 -M help
Supported machines are:
Niagara Sun4v platform, Niagara
none empty machine
sun4u Sun4u platform (default)
sun4v Sun4v platform

> qemu-system-sparc64 -version
QEMU emulator version 2.8.0(Virtualization:Staging / SLE_12_SP2)

from https://build.opensuse.org/package/show/Virtualization:Staging/qemu on openSUSE Leap 42.2.

Tags: sparc
Revision history for this message
Michal Nowak (michal-nowak-b) wrote :
Revision history for this message
Artyom Tarasenko (atar4qemu) wrote : Re: [Qemu-devel] [Bug 1670170] [NEW] `qemu-system-sparc64 -M Niagara` Aborted (core dumped)
Download full text (5.1 KiB)

There was a major rework of the Niagara platform in the upcoming 2.9 release.
Please use the new version.

On Sun, Mar 5, 2017 at 7:18 PM, Michal Nowak <email address hidden> wrote:
> Public bug reported:
>
>> qemu-system-sparc64 -M Niagara
> qemu: fatal: Trap 0x0064 while trap level (6) >= MAXTL (6), Error state
> pc: 0000000000004c80 npc: 0000000000004c84
> %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: 00000414 ccr: 44 (icc: -Z-- xcc: -Z--) asi: 00 tl: 6 pil: 0
> cansave: 6 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 6 cwp: 7
> fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000
>
> Aborted (core dumped)
>
>> qemu-system-sparc64 -M help
> Supported machines are:
> Niagara Sun4v platform, Niagara
> none empty machine
> sun4u Sun4u platform (default)
> sun4v Sun4v platform
>
>> qemu-system-sparc64 -version
> QEMU emulator version 2.8.0(Virtualization:Staging / SLE_12_SP2)
>
> from https://build.opensuse.org/package/show/Virtualization:Staging/qemu
> on openSUSE Leap 42.2.
>
> ** Affects: qemu
> Importance: Undecided
> Status: New
>
>
> ** Tags: sparc
>
> ** Attachment added: "coredumpctl core dump"
> https://bugs.launchpad.net/bugs/1670170/+attachment/4831907/+files/core.qemu-system-spa.1000.79fef1d6233b4b989c19ea5c5c809627.451.1488737426000000.xz
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1670170
>
> Title:
> `qemu-system-sparc64 -M Niagara` Aborted (core dumped)
>
> Status in QEMU:
> New
>
> Bug description:
> > qemu-system-sparc64 -M Niagara
> qemu: fatal: Trap 0x0064 while trap level (6) >= MAXTL (6), Error state
> pc: 0000000000004c80 npc: 0000000000004c84
> %g0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
> %o0-3: 0000000000000000 0000000000000000 ...

Read more...

Revision history for this message
Michal Nowak (michal-nowak-b) wrote :

Retested with QEMU 2.8.90:

15:03 $ qemu-system-sparc64 -M Niagara
qemu-system-sparc64: -M Niagara: unsupported machine type
Use -machine help to list supported machines

15:03 $ qemu-system-sparc64 -M help
Supported machines are:
niagara Sun4v platform, Niagara
none empty machine
sun4u Sun4u platform (default)
sun4v Sun4v platform

15:03 $ qemu-system-sparc64 -M niagara
Could not open option rom 'nvram1': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara

Revision history for this message
Michal Nowak (michal-nowak-b) wrote :

Fixed in version 2.8.90.

Changed in qemu:
status: New → Fix Committed
Thomas Huth (th-huth)
Changed in qemu:
status: Fix Committed → Fix Released
Revision history for this message
lentilwallop@hotmail.com (lentilwallop) wrote :
Download full text (4.3 KiB)

not to pester anyone but it's back.

moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -version
QEMU emulator version 4.0.91
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom 'nvram1': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara

moo-PowerEdge-R710 Downloads # strace qemu-system-sparc64 -machine niagara
... ... ...
access("nvram1", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/share/qemu-firmware/nvram1", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/share/qemu/nvram1", R_OK) = -1 ENOENT (No such file or directory)
open("nvram1", O_RDONLY) = -1 ENOENT (No such file or directory)
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
write(2, "Could not open option rom 'nvram"..., 62Could not open option rom 'nvram1': No such file or directory
) = 62
write(2, "qemu-system-sparc64: Unable to l"..., 62qemu-system-sparc64: Unable to load a firmware for -M niagara
) = 62
exit_group(1) = ?
+++ exited with 1 +++

nvram1 isnt on my system, but i can do this to see what else isnt there:

moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/nvram1
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom '1up-md.bin': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara
moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/1up-md.bin
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom '1up-hv.bin': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara
moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/1up-hv.bin
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom 'reset.bin': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara
moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/reset.bin
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom 'q.bin': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara
moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/q.bin
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
Could not open option rom 'openboot.bin': No such file or directory
qemu-system-sparc64: Unable to load a firmware for -M niagara
moo-PowerEdge-R710 Downloads # touch /usr/local/share/qemu/openboot.bin
moo-PowerEdge-R710 Downloads # qemu-system-sparc64 -machine niagara
qemu: fatal: Trap 0x0010 while trap level (6) >= MAXTL (6), Error state
pc: 000000fff0000020 npc: 000000fff0000024
%g0-3: 0000000000000000 0000000000000000 0000000008000000 0000000000000000
%g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%o0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%o4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%l0-3: 0000000000000000 0000000000000000 0000000000000000 0...

Read more...

Revision history for this message
lentilwallop@hotmail.com (lentilwallop) wrote :

S10image directory in this archive holds the rom images in case anyone is looking....

http://download.oracle.com/technetwork/systems/opensparc/OpenSPARCT1_Arch.1.5.tar.bz2

not that it really helps for qemu-4.1.0-rc1

moo-PowerEdge-R710 qemu-4.1.0-rc1 # qemu-system-sparc64 -machine niagara
qemu: fatal: Trap 0x0032 while trap level (6) >= MAXTL (6), Error state

Revision history for this message
Mark Cave-Ayland (mark-cave-ayland) wrote :

It's difficult to tell as you haven't posted your complete command line, however it looks as if you're missing the path to the rom images:

https://qemu.weilnetz.de/doc/qemu-doc.html#Sparc64-System-emulator
https://wiki.qemu.org/Documentation/Platforms/SPARC#Compatibility

ATB,

Mark.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.