VAAPI crashes X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 24, 2012 at 10:19:45AM +0100, Angela Schmid wrote:
> Hello
> 
> I switched to Mythtv 0.25 using VAAPI and playing a recording crashes X immediately, I see following messages, see run.log:
> 
> OpenGL: Could not determine whether Sync to VBlank is enabled.
> 
> libva: VA-API version 0.32.0
> libva: va_getDriverName() returns 0
> libva: Trying to open /usr/lib/dri/i965_drv_video.so
> libva: va_openDriver() returns 0
> 
> (WW) intel(0): flip queue failed: Input/output error
> (WW) intel(0): Page flip failed: Input/output error
> (WW) intel(0): divisor 0 get vblank counter failed: Invalid argument
> (EE) intel(0): Detected a hung GPU, disabling acceleration.
> (EE) intel(0): When reporting this, please include i915_error_state from debugfs and the full dmesg.
> intel_do_flush_locked failed: Input/output error
> /usr/bin/xinit: connection to X server lost
> 
> 
> [  663.812879] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
> [  663.815205] [drm] capturing error event; look for more information in /debug/dri/0/i915_error_state
> [  663.821719] [drm:i915_wait_request] *ERROR* i915_wait_request returns -11 (awaiting 791 at 785, next 792)
> [  663.825652] HDMI hot plug event: Codec=3 Pin=7 Presence_Detect=0 ELD_Valid=1
> [  663.825690] HDMI status: Codec=3 Pin=7 Presence_Detect=0 ELD_Valid=0
> [  664.037996] ------------[ cut here ]------------
> [  664.038016] WARNING: at drivers/gpu/drm/i915/i915_gem.c:2397 i915_gem_object_put_fence+0xab/0xc0 [i915]()
> [  664.038018] Hardware name: System Product Name
> [  664.038019] Modules linked in: dvbloopback(O) rfcomm bnep bluetooth parport_pc ppdev binfmt_misc dm_crypt ipt_MASQUERADE
> iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables snd_hda_codec_hdmi
> snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi tda18271c2dd(O) snd_rawmidi arc4 ath9k
> snd_seq_midi_event mac80211 snd_seq drxk(O) snd_timer snd_seq_device snd ddbridge(O) dvb_core(O) ath9k_common psmouse ath9k_hw ath
> eeepc_wmi asus_wmi sparse_keymap soundcore serio_raw snd_page_alloc cxd2099(O) mei(C) cfg80211 lp parport usbhid hid usb_storage uas
> 8139too mxm_wmi 8139cp firewire_ohci firewire_core crc_itu_t i915 ahci libahci drm_kms_helper xhci_hcd e1000e drm i2c_algo_bit video
> wmi
> [  664.038054] Pid: 3156, comm: Xorg Tainted: G         C O 3.3.0-rc2-angela2+ #1
> [  664.038055] Call Trace:
> [  664.038061]  [<ffffffff8104d21f>] warn_slowpath_common+0x7f/0xc0
> [  664.038064]  [<ffffffff8104d27a>] warn_slowpath_null+0x1a/0x20
> [  664.038072]  [<ffffffffa00db45b>] i915_gem_object_put_fence+0xab/0xc0 [i915]
> [  664.038079]  [<ffffffffa00dce93>] i915_gem_object_unbind+0xa3/0x2d0 [i915]
> [  664.038090]  [<ffffffffa002a117>] ? drm_mode_object_put+0x47/0x60 [drm]
> [  664.038097]  [<ffffffffa00dd0f4>] i915_gem_free_object_tail+0x34/0x150 [i915]
> [  664.038105]  [<ffffffffa00dff61>] i915_gem_free_object+0x51/0x60 [i915]
> [  664.038112]  [<ffffffffa001fc9a>] drm_gem_object_free+0x2a/0x30 [drm]
> [  664.038121]  [<ffffffffa00ed970>] intel_user_framebuffer_destroy+0x70/0x80 [i915]
> [  664.038129]  [<ffffffffa002e613>] drm_fb_release+0x83/0xb0 [drm]
> [  664.038136]  [<ffffffffa001f810>] drm_release+0x5e0/0x6e0 [drm]
> [  664.038139]  [<ffffffff811753ca>] fput+0xea/0x220
> [  664.038141]  [<ffffffff81171b36>] filp_close+0x66/0x90
> [  664.038143]  [<ffffffff81050d38>] put_files_struct+0x88/0xf0
> [  664.038145]  [<ffffffff81050e64>] exit_files+0x54/0x70
> [  664.038147]  [<ffffffff8105134a>] do_exit+0x19a/0x8c0
> [  664.038150]  [<ffffffff81051dd4>] do_group_exit+0x44/0xa0
> [  664.038152]  [<ffffffff81051e47>] sys_exit_group+0x17/0x20
> [  664.038155]  [<ffffffff816195e9>] system_call_fastpath+0x16/0x1b
> [  664.038156] ---[ end trace 5bed8a9786c4dd85 ]---
> 
> 
> cat /sys/kernel/debug/dri/0/i915_error_state
> cat: /sys/kernel/debug/dri/0/i915_error_state: Cannot allocate memory

We're dumping a few megabytes of data through that file, and because we're
using simple helper routines we need to allocate all that data as a
contigious chunk. Which can easily fail if you're system has been up for a
longer time. Kill all applications and then retrying to grab the
error_state helps sometimes.

Fixing that is on our todo, albeit quite a bit down ...

Yours, Daniel
> 
> I googled, but didn't find a solution. What is wrong here ?
> 
> --------------------------------------
> I don't have an xorg.conf. Have updated xorg-edgers intel drivers.
> 
> pkg-config --modversion libdrm
> 2.4.32
> 
> A kernel 3.3.0-rc2, with interlaced patches, from 14.02.2012.
> 
> 
> 


>                     PGETBL_CTL: 0x00000000
>                GEN6_INSTDONE_1: 0x8989ff6f
>                GEN6_INSTDONE_2: 0xbffffffe
>                   CPU_VGACNTRL: 0x80000000 (disabled)
>     DIGITAL_PORT_HOTPLUG_CNTRL: 0x00000000
>                      RR_HW_CTL: 0x00000000 (low 0, high 0)
>                 FDI_PLL_BIOS_0: 0xffffffff
>                 FDI_PLL_BIOS_1: 0xffffffff
>                 FDI_PLL_BIOS_2: 0xffffffff
>        DISPLAY_PORT_PLL_BIOS_0: 0xffffffff
>        DISPLAY_PORT_PLL_BIOS_1: 0xffffffff
>        DISPLAY_PORT_PLL_BIOS_2: 0xffffffff
>               FDI_PLL_FREQ_CTL: 0xffffffff
>                      PIPEACONF: 0x00600000 (disabled, inactive, 8bpc)
>                       HTOTAL_A: 0x0a4f077f (1920 active, 2640 total)
>                       HBLANK_A: 0x0a4f077f (1920 start, 2640 end)
>                        HSYNC_A: 0x09bb098f (2448 start, 2492 end)
>                       VTOTAL_A: 0x04630437 (1080 active, 1124 total)
>                       VBLANK_A: 0x04630437 (1080 start, 1124 end)
>                        VSYNC_A: 0x0445043b (1084 start, 1094 end)
>                   VSYNCSHIFT_A: 0x00000468
>                       PIPEASRC: 0x077f0437 (1920, 1080)
>                  PIPEA_DATA_M1: 0x7e1b30f0 (TU 64, val 0x1b30f0 1782000)
>                  PIPEA_DATA_N1: 0x0020f580 (val 0x20f580 2160000)
>                  PIPEA_DATA_M2: 0x00000000 (TU 1, val 0x0 0)
>                  PIPEA_DATA_N2: 0x00000000 (val 0x0 0)
>                  PIPEA_LINK_M1: 0x0001220a (val 0x1220a 74250)
>                  PIPEA_LINK_N1: 0x00041eb0 (val 0x41eb0 270000)
>                  PIPEA_LINK_M2: 0x00000000 (val 0x0 0)
>                  PIPEA_LINK_N2: 0x00000000 (val 0x0 0)
>                       DSPACNTR: 0x58004000 (disabled)
>                       DSPABASE: 0x00000000
>                     DSPASTRIDE: 0x00001e00 (120)
>                       DSPASURF: 0x00064000
>                    DSPATILEOFF: 0x00000000 (0, 0)
>                      PIPEBCONF: 0x00000000 (disabled, inactive, 8bpc)
>                       HTOTAL_B: 0x00000000 (1 active, 1 total)
>                       HBLANK_B: 0x00000000 (1 start, 1 end)
>                        HSYNC_B: 0x00000000 (1 start, 1 end)
>                       VTOTAL_B: 0x00000000 (1 active, 1 total)
>                       VBLANK_B: 0x00000000 (1 start, 1 end)
>                        VSYNC_B: 0x00000000 (1 start, 1 end)
>                   VSYNCSHIFT_B: 0x00000000
>                       DSPBCNTR: 0x00004000 (disabled)
>                       DSPBBASE: 0x00000000
>                     DSPBSTRIDE: 0x00000000 (0)
>                       DSPBSURF: 0x00000000
>                    DSPBTILEOFF: 0x00000000 (0, 0)
>                       PIPEBSRC: 0x00000000 (1, 1)
>                  PIPEB_DATA_M1: 0x00000000 (TU 1, val 0x0 0)
>                  PIPEB_DATA_N1: 0x00000000 (val 0x0 0)
>                  PIPEB_DATA_M2: 0x00000000 (TU 1, val 0x0 0)
>                  PIPEB_DATA_N2: 0x00000000 (val 0x0 0)
>                  PIPEB_LINK_M1: 0x00000000 (val 0x0 0)
>                  PIPEB_LINK_N1: 0x00000000 (val 0x0 0)
>                  PIPEB_LINK_M2: 0x00000000 (val 0x0 0)
>                  PIPEB_LINK_N2: 0x00000000 (val 0x0 0)
>                      PFA_CTL_1: 0x00000000 (disable, auto_scale yes, auto_scale_cal no, v_filter enable, vadapt disable, mode least, filter_sel programmed,chroma pre-filter disable, vert3tap auto, v_inter_invert field 1)
>                      PFA_CTL_2: 0x00007ef2 (vscale 0.991760)
>                      PFA_CTL_3: 0x00003f79 (vscale initial phase 0.495880)
>                      PFA_CTL_4: 0x00007c40 (hscale 0.970703)
>                    PFA_WIN_POS: 0x00000000 (0, 0)
>                   PFA_WIN_SIZE: 0x00000000 (0, 0)
>                      PFB_CTL_1: 0x00000000 (disable, auto_scale yes, auto_scale_cal no, v_filter enable, vadapt disable, mode least, filter_sel programmed,chroma pre-filter disable, vert3tap auto, v_inter_invert field 1)
>                      PFB_CTL_2: 0x00000000 (vscale 0.000000)
>                      PFB_CTL_3: 0x00000000 (vscale initial phase 0.000000)
>                      PFB_CTL_4: 0x00000000 (hscale 0.000000)
>                    PFB_WIN_POS: 0x00000000 (0, 0)
>                   PFB_WIN_SIZE: 0x00000000 (0, 0)
>               PCH_DREF_CONTROL: 0x00000400 (cpu source disable, ssc_source disable, nonspread_source enable, superspread_source disable, ssc4_mode downspread, ssc1 disable, ssc4 disable)
>                PCH_RAWCLK_FREQ: 0x0000007d (FDL_TP1 timer 0.5us, FDL_TP2 timer 1.5us, freq 125)
>               PCH_DPLL_TMR_CFG: 0x0271186a
>                 PCH_SSC4_PARMS: 0x01204860
>             PCH_SSC4_AUX_PARMS: 0x000029c5
>                   PCH_DPLL_SEL: 0x00000000 (TransA DPLL disable (DPLL (null)), TransB DPLL disable (DPLL (null)))
>            PCH_DPLL_ANALOG_CTL: 0x00008000
>                     PCH_DPLL_A: 0x44080008 (disable, sdvo high speed yes, mode (null), p2 (null), FPA0 P1 4, FPA1 P1 4, refclk default 120Mhz, sdvo/hdmi mul 1)
>                     PCH_DPLL_B: 0x04800080 (disable, sdvo high speed no, mode (null), p2 (null), FPA0 P1 8, FPA1 P1 8, refclk default 120Mhz, sdvo/hdmi mul 1)
>                       PCH_FPA0: 0x00021007 (n = 2, m1 = 16, m2 = 7)
>                       PCH_FPA1: 0x00021007 (n = 2, m1 = 16, m2 = 7)
>                       PCH_FPB0: 0x00030d07 (n = 3, m1 = 13, m2 = 7)
>                       PCH_FPB1: 0x00030d07 (n = 3, m1 = 13, m2 = 7)
>                 TRANS_HTOTAL_A: 0x0a4f077f (1920 active, 2640 total)
>                 TRANS_HBLANK_A: 0x0a4f077f (1920 start, 2640 end)
>                  TRANS_HSYNC_A: 0x09bb098f (2448 start, 2492 end)
>                 TRANS_VTOTAL_A: 0x04630437 (1080 active, 1124 total)
>                 TRANS_VBLANK_A: 0x04630437 (1080 start, 1124 end)
>                  TRANS_VSYNC_A: 0x0445043b (1084 start, 1094 end)
>             TRANS_VSYNCSHIFT_A: 0x00000468
>                 TRANSA_DATA_M1: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSA_DATA_N1: 0x00000000 (val 0x0 0)
>                 TRANSA_DATA_M2: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSA_DATA_N2: 0x00000000 (val 0x0 0)
>              TRANSA_DP_LINK_M1: 0x00000000 (val 0x0 0)
>              TRANSA_DP_LINK_N1: 0x00000000 (val 0x0 0)
>              TRANSA_DP_LINK_M2: 0x00000000 (val 0x0 0)
>              TRANSA_DP_LINK_N2: 0x00000000 (val 0x0 0)
>                 TRANS_HTOTAL_B: 0x00000000 (1 active, 1 total)
>                 TRANS_HBLANK_B: 0x00000000 (1 start, 1 end)
>                  TRANS_HSYNC_B: 0x00000000 (1 start, 1 end)
>                 TRANS_VTOTAL_B: 0x00000000 (1 active, 1 total)
>                 TRANS_VBLANK_B: 0x00000000 (1 start, 1 end)
>                  TRANS_VSYNC_B: 0x00000000 (1 start, 1 end)
>             TRANS_VSYNCSHIFT_B: 0x00000000
>                 TRANSB_DATA_M1: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSB_DATA_N1: 0x00000000 (val 0x0 0)
>                 TRANSB_DATA_M2: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSB_DATA_N2: 0x00000000 (val 0x0 0)
>              TRANSB_DP_LINK_M1: 0x00000000 (val 0x0 0)
>              TRANSB_DP_LINK_N1: 0x00000000 (val 0x0 0)
>              TRANSB_DP_LINK_M2: 0x00000000 (val 0x0 0)
>              TRANSB_DP_LINK_N2: 0x00000000 (val 0x0 0)
>                 TRANS_HTOTAL_C: 0x00000000 (1 active, 1 total)
>                 TRANS_HBLANK_C: 0x00000000 (1 start, 1 end)
>                  TRANS_HSYNC_C: 0x00000000 (1 start, 1 end)
>                 TRANS_VTOTAL_C: 0x00000000 (1 active, 1 total)
>                 TRANS_VBLANK_C: 0x00000000 (1 start, 1 end)
>                  TRANS_VSYNC_C: 0x00000000 (1 start, 1 end)
>             TRANS_VSYNCSHIFT_C: 0x00000000
>                 TRANSC_DATA_M1: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSC_DATA_N1: 0x00000000 (val 0x0 0)
>                 TRANSC_DATA_M2: 0x00000000 (TU 1, val 0x0 0)
>                 TRANSC_DATA_N2: 0x00000000 (val 0x0 0)
>              TRANSC_DP_LINK_M1: 0x00000000 (val 0x0 0)
>              TRANSC_DP_LINK_N1: 0x00000000 (val 0x0 0)
>              TRANSC_DP_LINK_M2: 0x00000000 (val 0x0 0)
>              TRANSC_DP_LINK_N2: 0x00000000 (val 0x0 0)
>                     TRANSACONF: 0x00600000 (disable, inactive)
>                     TRANSBCONF: 0x00000000 (disable, inactive)
>                     TRANSCCONF: 0x00000000 (disable, inactive)
>                    FDI_TXA_CTL: 0x00040000 (disable, train pattern pattern_1, voltage swing 0.4V,pre-emphasis 0dB, port width X1, enhanced framing enable, FDI PLL disable, scrambing enable, master mode disable)
>                    FDI_TXB_CTL: 0x00040000 (disable, train pattern pattern_1, voltage swing 0.4V,pre-emphasis 0dB, port width X1, enhanced framing enable, FDI PLL disable, scrambing enable, master mode disable)
>                    FDI_TXC_CTL: 0x00000000 (disable, train pattern pattern_1, voltage swing 0.4V,pre-emphasis 0dB, port width X1, enhanced framing disable, FDI PLL disable, scrambing enable, master mode disable)
>                    FDI_RXA_CTL: 0x00000040 (disable, train pattern pattern_1, port width X1, 8bpc,link_reverse_strap_overwrite no, dmi_link_reverse no, FDI PLL disable,FS ecc disable, FE ecc disable, FS err report disable, FE err report disable,scrambing enable, enhanced framing enable, RawClk)
>                    FDI_RXB_CTL: 0x00000040 (disable, train pattern pattern_1, port width X1, 8bpc,link_reverse_strap_overwrite no, dmi_link_reverse no, FDI PLL disable,FS ecc disable, FE ecc disable, FS err report disable, FE err report disable,scrambing enable, enhanced framing enable, RawClk)
>                    FDI_RXC_CTL: 0x00000040 (disable, train pattern pattern_1, port width X1, 8bpc,link_reverse_strap_overwrite no, dmi_link_reverse no, FDI PLL disable,FS ecc disable, FE ecc disable, FS err report disable, FE err report disable,scrambing enable, enhanced framing enable, RawClk)
>                   FDI_RXA_MISC: 0x00000080 (FDI Delay 128)
>                   FDI_RXB_MISC: 0x00000080 (FDI Delay 128)
>                   FDI_RXC_MISC: 0x00000080 (FDI Delay 128)
>                FDI_RXA_TUSIZE1: 0x7e000000
>                FDI_RXA_TUSIZE2: 0x7e000000
>                FDI_RXB_TUSIZE1: 0x7e000000
>                FDI_RXB_TUSIZE2: 0x7e000000
>                FDI_RXC_TUSIZE1: 0x7e000000
>                FDI_RXC_TUSIZE2: 0x7e000000
>                  FDI_PLL_CTL_1: 0x7e000000
>                  FDI_PLL_CTL_2: 0x7e000000
>                    FDI_RXA_IIR: 0x00000000
>                    FDI_RXA_IMR: 0x000008ff
>                    FDI_RXB_IIR: 0x00000000
>                    FDI_RXB_IMR: 0x000008ff
>                       PCH_ADPA: 0x00f40000 (disabled, transcoder A, -hsync, -vsync)
>                          HDMIB: 0x0000001c (disabled pipe A 8bpc SDVO DVI audio disabled +vsync +hsync detected)
>                          HDMIC: 0x0000001c (disabled pipe A 8bpc SDVO DVI audio disabled +vsync +hsync detected)
>                          HDMID: 0x00000a9c (disabled pipe A 8bpc TMDS HDMI audio disabled +vsync +hsync detected)
>                       PCH_LVDS: 0x00000000 (disabled, pipe A, 18 bit, 1 channel)
>                      CPU_eDP_A: 0x00000018
>                       PCH_DP_B: 0x00000004
>                       PCH_DP_C: 0x00000004
>                       PCH_DP_D: 0x00000004
>                 TRANS_DP_CTL_A: 0x60000018 (disable port none 8bpc +vsync +hsync)
>                 TRANS_DP_CTL_B: 0x60000018 (disable port none 8bpc +vsync +hsync)
>                 TRANS_DP_CTL_C: 0x60000018 (disable port none 8bpc +vsync +hsync)
>               BLC_PWM_CPU_CTL2: 0x00000000
>                BLC_PWM_CPU_CTL: 0x00000000
>               BLC_PWM_PCH_CTL1: 0x00000000
>               BLC_PWM_PCH_CTL2: 0x00000000
>                  PCH_PP_STATUS: 0x00000000 (off, not ready, sequencing idle)
>                 PCH_PP_CONTROL: 0xabcd0000 (blacklight disabled, do not power down on reset, panel off)
>               PCH_PP_ON_DELAYS: 0x00000000
>              PCH_PP_OFF_DELAYS: 0x00000000
>                 PCH_PP_DIVISOR: 0x00186904
>                       PORT_DBG: 0x00000000 (HW DRRS off)
>             RC6_RESIDENCY_TIME: 0x016c6ec0
>            RC6p_RESIDENCY_TIME: 0x00000000
>           RC6pp_RESIDENCY_TIME: 0x00000000



> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx


-- 
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux