Bug 15122 - [XvMC] switch VT crash X when play video with XvMC
Summary: [XvMC] switch VT crash X when play video with XvMC
Status: VERIFIED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 23:12 UTC by WuNian
Modified: 2008-07-29 20:03 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg config file (3.85 KB, text/plain)
2008-03-18 23:12 UTC, WuNian
no flags Details
xorg log file (76.33 KB, text/plain)
2008-03-18 23:13 UTC, WuNian
no flags Details

Description WuNian 2008-03-18 23:12:47 UTC
Created attachment 15288 [details]
xorg config file

source:
2D driver: xvmc branch - 03ccffd5b9b8108166ea143884a1a0a6417f3236
xserver: master tip
drm: master - d18c2c684229ec6923e1a578ae837f34e6b97422

platform: G945 (64 bit system)

When play video with xvmc, then switch VT to text console, back to X, X will crashed.
If play video with XV, switch VT smoothly.

Reproduce steps:
1, Xorg &
2, xterm &
3, mplayer -vo xvmc -vc ffmpeg12mc VTS_01_0.VOB
4, chvt 1
5, chvt 7

Following is the error info and backtrace:

[root@x-945g home]# mplayer -vo xvmc -vc ffmpeg12mc VTS_01_0.VOB
MPlayer 1.0rc2-4.1.0 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) D  CPU 2.66GHz (Family: 15, Model: 4, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing VTS_01_0.VOB.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  7000.0 kbps (875.0 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
==========================================================================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:672:(snd_func_card_driver) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_concat returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:1072:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_refer returned error: No such device
[AO_ALSA] alsa-lib: conf.c:3961:(snd_config_expand) Evaluate error: No such device
[AO_ALSA] alsa-lib: pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such device
[AO ARTS] can't connect to aRts soundserver
ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3961:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
[AO ESD] esd_open_sound failed: Connection refused
[AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: confmisc.c:672:(snd_func_card_driver) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_concat returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:1072:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3492:(_snd_config_evaluate) function snd_func_refer returned error: No such device
[AO_ALSA] alsa-lib: conf.c:3961:(snd_config_expand) Evaluate error: No such device
[AO_ALSA] alsa-lib: pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3961:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device
open /dev/[sound/]dsp: No such file or directory
[OpenAL] could not open device
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 720 x 576 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x576 => 768x576 MPEG1/2 Motion Compensation
vo_xvmc: Port 88 grabed
vo_xvmc: Found matching surface with id=32315659 on 88 port at 0 adapter
[intel_xvmc] info: decoder type is i915/945 MPEG2 MC decoder
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=0 unsigned_intra=0
vo_xvmc: looking for OSD support
vo_xvmc: No OSD support for this mode
chosen: dotclock 145920 vco 1459200 ((m 76, m1 11, m2 9), n 3, (p 10, p1 1, p2 10))
intelWaitIrq: drmI830IrqWait: -16
[root@x-945g home]# Error in I830WaitLpRing(), timeout for 2 seconds
pgetbl_ctl: 0x1ffc0001 getbl_err: 0x00000000
ipeir: 0x00000000 iphdr: 0x00ffffff
LP ring tail: 0x00000160 head: 0x00000100 len: 0x0001f001 start 0x00000000
eir: 0x0000 esr: 0x0001 emr: 0xffff
instdone: 0xffc1 instpm: 0x0000
memmode: 0x00000108 instps: 0x800f0040
hwstam: 0xeffe ier: 0x0002 imr: 0x0000 iir: 0x0080
Ring at virtual 0x2b8bc7c84000 head 0x100 tail 0x160 count 24
        00000080: 10800001
        00000084: 00000014
        00000088: 00004ed5
        0000008c: 00000000
        00000090: 02000011
        00000094: 00000000
        00000098: 10800001
        0000009c: 00000014
        000000a0: 00004ed6
        000000a4: 00000000
        000000a8: 10800001
        000000ac: 00000014
        000000b0: 00004ed7
        000000b4: 00000000
        000000b8: 00000000
        000000bc: 01000000
        000000c0: 02000011
        000000c4: 00000000
        000000c8: 02000011
        000000cc: 00000000
        000000d0: 54f00006
        000000d4: 03cc2000
        000000d8: 00ed01c8
        000000dc: 032d04c8
        000000e0: 04000000
        000000e4: 00000000
        000000e8: 00000c00
        000000ec: 0aff5000
        000000f0: 02000011
        000000f4: 00000000
        000000f8: 18800080
        000000fc: 04008001
        00000100: 10800001
Ring end
space: 130968 wanted 131064

Fatal server error:
lockup


Backtrace:
0: X(xf86SigHandler+0x65) [0x476365]
1: /lib64/libc.so.6 [0x388272f7c0]
2: /opt/X11R7/lib/xorg/modules/extensions//libdri.so(DRILock+0x49) [0x2b8bc7095889]
3: /opt/X11R7/lib/xorg/modules/drivers//intel_drv.so [0x2b8bc72c7a55]
4: X(AbortDDX+0x88) [0x45ec88]
5: X(AbortServer+0x18) [0x4ea288]
6: X(FatalError+0xd5) [0x4ea865]
7: /opt/X11R7/lib/xorg/modules/drivers//intel_drv.so(I830WaitLpRing+0x165) [0x2b8bc72bc175]
8: /opt/X11R7/lib/xorg/modules/drivers//intel_drv.so(I830Sync+0x1a7) [0x2b8bc72bc557]
9: /opt/X11R7/lib/xorg/modules//libexa.so(exaWaitSync+0x6f) [0x2b8bc7b37bbf]
10: /opt/X11R7/lib/xorg/modules//libexa.so(ExaDoPrepareAccess+0x90) [0x2b8bc7b389e0]
11: /opt/X11R7/lib/xorg/modules//libexa.so [0x2b8bc7b3c799]
12: /opt/X11R7/lib/xorg/modules//libexa.so [0x2b8bc7b3c9cc]
13: /opt/X11R7/lib/xorg/modules//libexa.so(exaDoMigration+0x687) [0x2b8bc7b3d527]
14: /opt/X11R7/lib/xorg/modules//libexa.so(exaFillRegionTiled+0x307) [0x2b8bc7b3a587]
15: /opt/X11R7/lib/xorg/modules//libexa.so [0x2b8bc7b3abf6]
16: X [0x522406]
17: X(miPaintWindow+0x1e2) [0x4c1bb2]
18: X(miWindowExposures+0xc0) [0x4c1ec0]
19: /opt/X11R7/lib/xorg/modules/extensions//libdri.so(DRIWindowExposures+0xc0) [0x2b8bc7096ba0]
20: X [0x488a9e]
21: X(miHandleValidateExposures+0x2b) [0x4d90eb]
22: X(UnmapWindow+0x206) [0x431d06]
23: X(DeleteWindow+0x1c) [0x4350bc]
24: X(FreeClientResources+0xc2) [0x42f482]
25: X(CloseDownClient+0xf1) [0x43ffe1]
26: X(Dispatch+0x40f) [0x44565f]
27: X(main+0x43a) [0x42d22a]
28: /lib64/libc.so.6(__libc_start_main+0xf4) [0x388271d084]
29: X(FontFileCompleteXLFD+0x99) [0x42c629]

FatalError re-entered, aborting
Caught signal 11.  Server aborting

xterm:  fatal IO error 104 (Connection reset by peer) or KillClient on X server ":0.0"
Comment 1 WuNian 2008-03-18 23:13:41 UTC
Created attachment 15289 [details]
xorg log file
Comment 2 Wang Zhenyu 2008-03-18 23:30:09 UTC
This should only happen with ttm drm, and it looks something need to be fixed for xvmc buffer handling after we move to ttm for xvmc also.
Comment 3 WuNian 2008-04-08 23:13:22 UTC
Now only play video with xvmc driver will cause X crashed. The backtrace info is the same with before.
Comment 4 Michael Fu 2008-07-28 19:07:50 UTC
Nian, Is this bug still there?
Comment 5 lin, jiewen 2008-07-29 20:02:52 UTC
No TTM no this bug.
Because we will not use TTM, so close this bug.
we will test XVMC against GEM later.


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.