Bug 76173

Summary: [NVAC] xbmc failure with vdpau enabled
Product: Mesa Reporter: Martin Bednar <martin>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: idl0r
Version: 10.3   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xbmc log excerpt with vdpau enabled
xbmc stdout on first crash

Description Martin Bednar 2014-03-14 13:54:15 UTC
When using xbmc with vdpau acceleration enabled, I get a green screen (audio works), and this appears in the kernel log : 
nouveau E[   PFIFO][0000:03:00.0] DMA_PUSHER - ch 6 [xbmc.bin[22420]] get 0x00200f06c8 put 0x00200f0770 ib_get 0x000000db ib_put 0x000000dc state 0x80000000 (err: INVALID_CMD) push 0x00400040

Sometimes it makes xbmc crash completely.

This is on an nv50 (Chipset: MCP79/MCP7A (NVAC) ) : VGA compatible controller: NVIDIA Corporation ION VGA (rev b1)

Mesa 10.1
libdrm 2.4.52

It works all right using mplayer.
Just a wild guess : something to do with GL_NV_vdpau_interop?

If you need any more information, I'd be happy to provide it.
Comment 1 Martin Bednar 2014-03-14 13:55:10 UTC
Created attachment 95806 [details]
xbmc log excerpt with vdpau enabled
Comment 2 Ilia Mirkin 2014-03-14 13:59:41 UTC
Yep, it has to do with vdpau interop. I think that the DMA_PUSHER error is unrelated, but not sure. There were some patches to make it work better on nouveau, not sure if they made it to 10.1 -- try 10.2?

mplayer should work fine.
Comment 3 Martin Bednar 2014-03-14 14:59:49 UTC
Created attachment 95811 [details]
xbmc stdout on first crash

I just installed mesa from git [Mesa 10.2.0-devel (git-f9901f1)] and while the green display is gone, yet xbmc still crashes.

relevant dmesg output : 
Crash 1 : 
[106884.734647] nouveau E[xbmc.bin[31002]] multiple instances of buffer 10 on validation list
[106884.734665] nouveau E[xbmc.bin[31002]] validate_init
[106884.734673] nouveau E[xbmc.bin[31002]] validate: -22
[106884.739268] nouveau E[xbmc.bin[31002]] multiple instances of buffer 10 on validation list
[106884.739287] nouveau E[xbmc.bin[31002]] validate_init
[106884.739315] nouveau E[xbmc.bin[31002]] validate: -22

crash 2 : 
[107027.343245] nouveau E[  PGRAPH][0000:03:00.0] DATA_ERROR INVALID_BITFIELD
[107027.343270] nouveau E[  PGRAPH][0000:03:00.0]  DATA_ERROR
[107027.343290] nouveau E[  PGRAPH][0000:03:00.0] ch 5 [0x001f7f4000 xbmc.bin[31256]] subc 3 class 0x8397 mthd 0x1b0c data 0x00000004
Comment 4 Ilia Mirkin 2014-03-14 15:39:57 UTC
Does it work fine until it crashes, or does it crash too fast for you to tell?

Those errors are fairly non-sensical, at least the first, which leads me to believe that it's a fallout from sharing the screen among multiple contexts. There are lots of bugs in that area, it's something I plan on looking at over the weekend.
Comment 5 Martin Bednar 2014-03-14 17:44:03 UTC
(In reply to comment #4)
> Does it work fine until it crashes, or does it crash too fast for you to
> tell?

Yes, it seems to work fine. I got to watch a record 20 seconds of video, and it appeared to work fine. Mind you, it wasn't a FullHD video. I'm open to patch testing ;)
Comment 6 Martin Bednar 2015-01-10 09:45:55 UTC
Still happens with mesa 10.3 and xbmc 13.2. 
Any news?
Comment 7 GitLab Migration User 2019-09-18 20:39:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1060.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.