Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-27-10, 05:10 AM   #1
Maniac2
Registered User
 
Join Date: Jul 2010
Posts: 2
Default Deadlock on modeline change

Hi,

i'm currently developing a patch for vdr-xineliboutput to switch the X-server modeline according to the frame rate of the currently played stream.
The switching is done using xrandr or Xf86VidModeExtension, both with the same results.

With the option "Composite On" in the xorg.conf everything works as expected, but tearing on the top of the screen appears.
The following happens if i switch the modeline:
- playback in xine is paused
- disable video in xine-lib is set
- Modeline switches to another
- a preemption callback in the driver is generated
- xine-lib recognize the callback and set reinit_needed to true
- enable video in xine-lib
- continue playback
- vdpau gets reinitialized
- picture appears on screen and everything is fine

With composite disabled, a deadlock in the driver occurs.
Only the following is happen:
- playback in xine is paused
- disable video in xine-lib is set
- Modeline switches to another, this takes much longer
- deadlock, no preemption callback is generated, so xine-lib doesn't realize that it has to reinit vdpau. The last shown picture stays on the screen.

I've tested this behaviour with vdr-sxfe, xine-ui and mplayer. They all behave the same.

My system setup:
Kernel 2.6.34 32 Bit
NVidia driver 256.35 and 190.30 tested
newest xine-lib from git
newest vdr-xineliboutput from cvs
Maniac2 is offline   Reply With Quote
Old 07-28-10, 12:18 PM   #2
Maniac2
Registered User
 
Join Date: Jul 2010
Posts: 2
Default Re: Deadlock on modeline change

With
Code:
export VDPAU_TRACE=1
export VDPAU_NVIDIA_DEBUG=3
i get the following output. Maybe this helps to track down the issue.

Code:
vdp_video_surface_put_bits_y_cb_cr(4, 1, {0xa9315020, 0x8f31a10, 0x8ed3de0}, {1920, 960, 960}, )
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  195.30  Fri Dec 18 14:22:27 PST 2009
VDPAU nvidia: Error detected 0 208
VDPAU nvidia: Backtrace:
--: /usr/lib/libvdpau_nvidia.so [0xb7166000] DSO load base
00: /usr/lib/libvdpau_nvidia.so [0xb716b778]
01: /usr/lib/libvdpau_nvidia.so [0xb716b8c7]
02: /usr/lib/libvdpau_nvidia.so [0xb716fe16]
Maniac2 is offline   Reply With Quote
Old 12-08-10, 09:46 AM   #3
crisalide
Registered User
 
Join Date: Dec 2008
Posts: 173
Default Re: Deadlock on modeline change

Add "VDPAU" in your thread title and it should get more attention.
crisalide is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.