Skip to contentSkip to conversation

New: Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

Bug 104291 [email protected] 1 participant 13 messages Dec 16, 2017 – Apr 30, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=104291

Bug ID: 104291
Summary: Virgl broken on current mesa (17.4+), with
nouveau/nv50 as host
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: [email protected]
Reporter: randrik-JGs/[email protected]
QA Contact: [email protected]

Hello.

Sorry for possibly irrelevant bug report, but I just tested virgl and found it broken - glxinfo works, but glxgears or any gl program segfaults.

On both host and guest (self-assembled live DVD) I have mesa Mesa 17.4.0-devel (git-96fc5fbf23), X server 1.19.5. Host kernel - Linux slax 4.14.3-x64 #18 SMP Sun Dec 3 09:13:07 MSK 2017 x86_64 AMD FX(tm)-4300 Quad-Core Processor AuthenticAMD GNU/Linux, guest kernel - 4.12.0-x64.

Qemu - 2.11. Launch command and output:

qemu-system-x86_64 -M q35 -enable-kvm -cdrom /dev/shm/slax_16_12_2017_test.iso -m 512 -display sdl,gl=on -soundhw es1370 -smp 4 -vga virtio -usbdevice mouse
qemu-system-x86_64: -usbdevice mouse: '-usbdevice' is deprecated, please use '-device usb-...' instead
gl_version 33 - core profile enabled

startx inside guest works, glxinfo shows virgl as renderer, but glxgears or any gl program (chromium BSU [old arcade game], glblur from xscreensavers) segfaults.

At some point it was working better, but it was long ago .... (16.02.2016, to be prescie).

I also run into assertion on qemu side, described here:
https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg05461.html

Because I had only dvd image connected as dvd rom - nothing bad happened, but be aware about this abort if you connect real hard disk ....

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #1 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- One more comment - while both kernels are 64-bit - whole userspace for guest and host are just 32-bit binaries. It may play some role.

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #2 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- If you can capture an apitrace of qemu that replays incorrectly on nouveau but correctly on other hardware, then this is a nouveau bug.

If virgl / virglrenderer code crashes (or generates an incorrect GL operation sequence), then it's a virgl bug.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #3 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Created attachment 136219
--> https://bugs.freedesktop.org/attachment.cgi?id=136219&action=edit
glxinfo -l from inside guest

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #4 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Created attachment 136220
--> https://bugs.freedesktop.org/attachment.cgi?id=136220&action=edit
gdb log

Unfortunately, I stripped debug symbols for smaller file sizes. I can recompile mesa with debug symbols, but it will take some time.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #5 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- If it crashes inside the guest, then it's nothing to do with nouveau. Most likely.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #6 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- (In reply to Ilia Mirkin from comment #5)

Quoted 2 lines

If it crashes inside the guest, then it's nothing to do with nouveau. Most likely.

ya, but I was unable to find virgl as specific component in bugzilla, so I just added bug to nouveau. Don't feel blamed. (and after swithcing virtual desktops whole image inside qemu just become real black ..I killed this VM)

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #7 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- It also doesn't work with LIBGL_ALWAYS_SOFTWARE=1 (llvmpipe). So, yes, not nouveau bug....

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

Andrew Randrianasulu <randrik-JGs/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #136220|0                           |1

is obsolete| |

--- Comment #8 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Created attachment 136221
--> https://bugs.freedesktop.org/attachment.cgi?id=136221&action=edit
slightly better gdb log

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #9 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Created attachment 136222
--> https://bugs.freedesktop.org/attachment.cgi?id=136222&action=edit
X log (from guest, of course)

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #10 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Created attachment 136223
--> https://bugs.freedesktop.org/attachment.cgi?id=136223&action=edit
apitrace

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

--- Comment #11 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- I tried few older mesa releases (17.1.10 - without llvm, 17.2.7 and 17.3.0 - with llvm 5.0.0), and they all segfaults :/

This is kinda strange, because according to this bugreport it was working in 17.1-dev era:

https://bugzilla.redhat.com/show_bug.cgi?id=1426549

I tried disabling PageFlipping (not sure if it makes any sense for VM), and switching dri mode to dri3. Nothing helped :/

Signature · 3 lines
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 104291] Virgl broken on current mesa (17.4+), with nouveau/nv50 as host

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104291

Andrew Randrianasulu <randrik-JGs/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #12 from Andrew Randrianasulu <randrik-JGs/[email protected]> --- Sorry, it works now (Mesa 18.2.0-devel (git-96ed3714fc) for both guest and host). Apparently, I just forgot to mount /dev/shm in initscripts in guest, and dri3 failed.

Signature · 3 lines
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau