On Wed, Dec 14, 2011 at 12:04:03AM +0100, Daniel Vetter wrote:
> > > One of my X logs had some of these:
> > > [1535818.200] (WW) intel(0): intel_uxa_prepare_access: bo map failed: No 
> > > space left on device
> > > [1535818.208] (WW) intel(0): intel_uxa_prepare_access: bo map failed: No 
> > > space left on device
> > > [1535818.208] (WW) intel(0): intel_uxa_prepare_access: bo map failed: No 
> > > space left on device
> 
> This one sounds like a vma exhausting issue Chris Wilson recently fixed.
> Please retest with the latest versions of xf86-video-intel and libdrm from
> git.

On Tue, Dec 13, 2011 at 11:16:17PM +0000, Chris Wilson wrote:
> Apologies, it is a known issue. I was thrown by the bizarre stack trace,
> but it seems like it just the mmap failure blowing up in spectacular
> fashion. The ENOSPC issues arises from when we have either exhausted
> or badly fragmented the (on your system presumably) 32-bits of address
> space for GTT mappings such that we are no longer able to allocate new
> ones. I have recently begun to take a similar issue whereby we exhausted
> the per-process map limit with over 65,000 vma keep open. The solution
> there of capping the number of cached vma is likely to resolve this
> problem as well.

On Wed, Dec 14, 2011 at 08:36:41AM +0000, Chris Wilson wrote:
> On Tue, 13 Dec 2011 19:05:34 -0800, Marc MERLIN <marc_x...@merlins.org> wrote:
> > Since I'm a newbie at thie, there isn't a 'head' per se, and I see that
> > not all patches are production ready.
> > Could you point me on what I could sync from and that would be
> > reasonably likely to work? :)
> 
> If you checkout the master branch of both
> 
>   git://anongit.freedesktop.org/mesa/drm
> and
>   git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
> 
> You should have a working driver.

Hi folks,

I got the chance to compile git and install it.

I installed the 4 binaries like so:
/usr/lib/libdrm_intel.so.1.0.0-git
/usr/lib/xorg/modules/drivers/intel_drv.so-git
/usr/lib/libdrm.so.2.4.0-git
/usr/lib/libdrm_radeon.so.1.0.0-git

and symlinked the ubuntu oneiric files to those new versions (moving the 
originals out
fo the way).

So everything works if I use all 4 binaries except intel_drv.so-git and
link intel_drv.so to the binary from oneric.

With driver 2.15.901, I still get the same crash than before:
Core was generated by `/usr/bin/X :0 vt8 -nr -nolisten tcp -auth 
/var/run/xauth/A:0-TaSDmc'.
Program terminated with signal 11, Segmentation fault.
#0  0x0808266b in ?? ()
(gdb) backtrace full
#0  0x0808266b in ?? ()
No symbol table info available.
#1  0x0807fea0 in ProcUngrabKeyboard ()
No symbol table info available.
#2  0x08072117 in ?? ()
No symbol table info available.
#3  0x0806470c in ?? ()
No symbol table info available.
#4  0xb7422113 in __libc_start_main (main=0x80643a0, argc=8, ubp_av=0xbfe63454, 
    init=0x81d7100 <__libc_csu_init>, fini=0x81d7170 <__libc_csu_fini>, 
rtld_fini=0xb7791bc0, 
    stack_end=0xbfe6344c) at libc-start.c:226
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1218965516, 0, 0, 0, 
1950853741, 1013026428}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x8, 0x8064a00}, 
data = {prev = 0x0, 
              cleanup = 0x0, canceltype = 8}}}
        not_first_call = <optimized out>
#5  0x08064a21 in _start ()
No symbol table info available.

So, new versions of libdrm.so and libdrm_intel.so did not help.

Unfortunately when I try to start X with 2.17.0, it just hard hangs to the 
point where the console is hung, but I can still reboot the machine, so it's 
not a hard
linux hang.
Is there better debug I can give or things I can try to see why X just hangs?

If I change to a 64bit kernel, can I keep my 32bit userland and would this fix 
this
problem I'm having here?


[234673.242] (II) LoadModule: "intel"
[234673.242] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[234673.265] (II) Module intel: vendor="X.Org Foundation"
[234673.265]    compiled for 1.10.4, module version = 2.17.0
[234673.265]    Module class: X.Org Video Driver
[234673.265]    ABI class: X.Org Video Driver, version 10.0
[234673.266] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
        Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
        Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
        Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
        Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
        Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server
[234673.267] (--) using VT number 7

[234673.278] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[234673.279] drmOpenDevice: node name is /dev/dri/card0
[234673.279] drmOpenDevice: open result is 11, (OK)
[234673.279] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[234673.279] drmOpenDevice: node name is /dev/dri/card0
[234673.279] drmOpenDevice: open result is 11, (OK)
[234673.279] drmOpenByBusid: drmOpenMinor returns 11
[234673.279] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
[234673.279] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[234673.279] (==) intel(0): RGB weight 888
[234673.279] (==) intel(0): Default visual is TrueColor
[234673.279] (II) intel(0): Integrated Graphics Chipset: Intel(R) GM45
[234673.279] (--) intel(0): Chipset: "GM45"
X hangs here ^^^^^^^

With:
    17 /usr/lib/libdrm_intel.so -> libdrm_intel.so.1*
    21 /usr/lib/libdrm_intel.so.1 -> libdrm_intel.so.1.0.0*
    25 /usr/lib/libdrm_intel.so.1.0.0 -> libdrm_intel.so.1.0.0-git*
135193 /usr/lib/libdrm_intel.so.1.0.0-git*
 34148 /usr/lib/libdrm_intel.so.1.0.0.oneric

    22 /usr/lib/libdrm_radeon.so -> libdrm_radeon.so.1.0.0*
    31 /usr/lib/libdrm_radeon.so.1 -> /usr/lib/libdrm_radeon.so.1.0.0*
    26 /usr/lib/libdrm_radeon.so.1.0.0 -> libdrm_radeon.so.1.0.0-git*
 78245 /usr/lib/libdrm_radeon.so.1.0.0-git*
 13760 /usr/lib/libdrm_radeon.so.1.0.0.oneric

    15 /usr/lib/libdrm.so.2 -> libdrm.so.2.4.0*
    19 /usr/lib/libdrm.so.2.4.0 -> libdrm.so.2.4.0-git*
129400 /usr/lib/libdrm.so.2.4.0-git*
 34224 /usr/lib/libdrm.so.2.4.0.oneric

    19 /usr/lib/xorg/modules/drivers/intel_drv.so -> intel_drv.so.oneric
443205 /usr/lib/xorg/modules/drivers/intel_drv.so-git*
327752 /usr/lib/xorg/modules/drivers/intel_drv.so.oneric


For comparison, with driver 2.15.901, startup looks like this:

[   235.405] (II) LoadModule: "intel"
[   235.406] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   235.431] (II) Module intel: vendor="X.Org Foundation"
[   235.431]    compiled for 1.10.4, module version = 2.15.901
[   235.431]    Module class: X.Org Video Driver
[   235.431]    ABI class: X.Org Video Driver, version 10.0
[   235.431] (II) LoadModule: "mouse"
[   235.432] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[   235.443] (II) Module mouse: vendor="X.Org Foundation"
[   235.443]    compiled for 1.10.2.902, module version = 1.7.1
[   235.443]    Module class: X.Org XInput Driver
[   235.443]    ABI class: X.Org XInput driver, version 12.3
[   235.443] (II) LoadModule: "kbd"
[   235.443] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[   235.449] (II) Module kbd: vendor="X.Org Foundation"
[   235.449]    compiled for 1.10.2, module version = 1.6.0
[   235.449]    Module class: X.Org XInput Driver
[   235.449]    ABI class: X.Org XInput driver, version 12.3
[   235.449] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
        i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
        4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
        Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
        Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
        Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
        Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
        Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server
[   235.449] (++) using VT number 8

[   235.464] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   235.465] drmOpenDevice: node name is /dev/dri/card0
[   235.465] drmOpenDevice: open result is 9, (OK)
[   235.465] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[   235.465] drmOpenDevice: node name is /dev/dri/card0
[   235.465] drmOpenDevice: open result is 9, (OK)
[   235.465] drmOpenByBusid: drmOpenMinor returns 9
[   235.465] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
[   235.465] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   235.465] (==) intel(0): RGB weight 888
[   235.465] (==) intel(0): Default visual is TrueColor
[   235.465] (II) intel(0): Integrated Graphics Chipset: Intel(R) GM45
[   235.465] (--) intel(0): Chipset: "GM45"
[   235.465] (**) intel(0): Relaxed fencing enabled
[   235.465] (**) intel(0): Wait on SwapBuffers? enabled
[   235.465] (**) intel(0): Triple buffering? enabled
[   235.465] (**) intel(0): Framebuffer tiled
[   235.465] (**) intel(0): Pixmaps tiled
[   235.465] (**) intel(0): 3D buffers tiled
[   235.465] (**) intel(0): SwapBuffers wait enabled
[   235.465] (==) intel(0): video overlay key set to 0x101fe
[   235.465] (II) intel(0): Output LVDS1 using monitor section Monitor0
[   235.465] (II) intel(0): found backlight control interface 
/sys/class/backlight/acpi_video0
[   235.482] (II) intel(0): Output VGA1 has no monitor section
[   235.494] (II) intel(0): Output DP1 has no monitor section
[   235.494] (II) intel(0): EDID for output LVDS1
[   235.494] (II) intel(0): Manufacturer: LEN  Model: 4055  Serial#: 0
[   235.494] (II) intel(0): Year: 2007  Week: 0
[   235.494] (II) intel(0): EDID Version: 1.3
[   235.494] (II) intel(0): Digital Display Input
[   235.494] (II) intel(0): Max Image Size [cm]: horiz.: 33  vert.: 21
[   235.494] (II) intel(0): Gamma: 2.20
[   235.494] (II) intel(0): DPMS capabilities: StandBy Suspend Off
[   235.494] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   235.494] (II) intel(0): First detailed timing is preferred mode
[   235.494] (II) intel(0): redX: 0.580 redY: 0.340   greenX: 0.310 greenY: 
0.550
[   235.494] (II) intel(0): blueX: 0.155 blueY: 0.155   whiteX: 0.313 whiteY: 
0.329
[   235.494] (II) intel(0): Manufacturer's mask: 0
[   235.494] (II) intel(0): Supported detailed timing:
[   235.494] (II) intel(0): clock: 167.8 MHz   Image Size:  331 x 207 mm
[   235.494] (II) intel(0): h_active: 1920  h_sync: 1968  h_sync_end 2000 
h_blank_end 2298 h_border: 0
[   235.494] (II) intel(0): v_active: 1200  v_sync: 1203  v_sync_end 1206 
v_blanking: 1217 v_border: 0
[   235.494] (II) intel(0): Supported detailed timing:
[   235.494] (II) intel(0): clock: 134.3 MHz   Image Size:  331 x 207 mm
[   235.494] (II) intel(0): h_active: 1920  h_sync: 1968  h_sync_end 2000 
h_blank_end 2208 h_border: 0
[   235.494] (II) intel(0): v_active: 1200  v_sync: 1202  v_sync_end 1208 
v_blanking: 1220 v_border: 0
[   235.494] (II) intel(0): Unknown vendor-specific block f
[   235.494] (II) intel(0):  LTN154U2-L05
[   235.494] (II) intel(0): EDID (in hex):
[   235.494] (II) intel(0):     00ffffffffffff0030ae554000000000
[   235.494] (II) intel(0):     0011010380211578ea87f594574f8c27
[   235.494] (II) intel(0):     27505400000001010101010101010101
[   235.494] (II) intel(0):     0101010101018c41807a71b011403020
[   235.494] (II) intel(0):     33004bcf100000197434802071b01440
[   235.494] (II) intel(0):     302026004bcf100000190000000f00d1
[   235.494] (II) intel(0):     0a32d10a281101004ca35532000000fe
[   235.494] (II) intel(0):     004c544e31353455322d4c30350a0011
[   235.494] (II) intel(0): EDID vendor "LEN", prod id 16469
[   235.494] (II) intel(0): Printing DDC gathered Modelines:
[   235.494] (II) intel(0): Modeline "1920x1200"x0.0  167.80  1920 1968 2000 
2298  1200 1203 1206 1217 -hsync -vsync (73.0 kHz)
[   235.494] (II) intel(0): Modeline "1920x1200"x0.0  134.28  1920 1968 2000 
2208  1200 1202 1208 1220 -hsync -vsync (60.8 kHz)
[   235.495] (II) intel(0): Not using default mode "320x240" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "400x300" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "400x300" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "512x384" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "640x480" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "640x512" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "800x600" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "896x672" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "928x696" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "960x720" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "576x432" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "680x384" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "680x384" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "700x525" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "720x450" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "800x512" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "840x525" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "840x525" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "960x540" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "960x600" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Not using default mode "1024x768" (doublescan mode 
not supported)
[   235.495] (II) intel(0): Printing probed modes for output LVDS1
[   235.495] (II) intel(0): Modeline "1920x1200"x60.0  167.80  1920 1968 2000 
2298  1200 1203 1206 1217 -hsync -vsync (73.0 kHz)
[   235.495] (II) intel(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 
2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz)
[   235.495] (II) intel(0): Modeline "1920x1200"x49.8  134.28  1920 1968 2000 
2208  1200 1202 1208 1220 -hsync -vsync (60.8 kHz)
[   235.495] (II) intel(0): Modeline "1920x1080"x59.9  138.50  1920 1968 2000 
2080  1080 1083 1088 1111 +hsync -vsync (66.6 kHz)
[   235.495] (II) intel(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 
2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz)
[   235.495] (II) intel(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 
2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
[   235.496] (II) intel(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 
1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
[   235.496] (II) intel(0): Modeline "1600x1024"x60.2  103.12  1600 1600 1656 
1664  1024 1024 1029 1030 +hsync +vsync (62.0 kHz)
[   235.496] (II) intel(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 
1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz)
[   235.496] (II) intel(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 
1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
[   235.496] (II) intel(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 
1904  900 903 909 934 -hsync +vsync (55.9 kHz)
[   235.496] (II) intel(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 
1800  960 961 964 1000 +hsync +vsync (60.0 kHz)
[   235.496] (II) intel(0): Modeline "1360x768"x59.8   84.75  1360 1432 1568 
1776  768 771 781 798 -hsync +vsync (47.7 kHz)
[   235.496] (II) intel(0): Modeline "1360x768"x60.0   72.00  1360 1408 1440 
1520  768 771 781 790 +hsync -vsync (47.4 kHz)
[   235.496] (II) intel(0): Modeline "1152x864"x60.0   81.62  1152 1216 1336 
1520  864 865 868 895 -hsync +vsync (53.7 kHz)
[   235.496] (II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 
1344  768 771 777 806 -hsync -vsync (48.4 kHz)
[   235.496] (II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  
600 601 605 628 +hsync +vsync (37.9 kHz)
[   235.496] (II) intel(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  
600 601 603 625 +hsync +vsync (35.2 kHz)
[   235.496] (II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  
480 490 492 525 -hsync -vsync (31.5 kHz)
[   235.513] (II) intel(0): EDID for output VGA1
[   235.525] (II) intel(0): EDID for output DP1
[   235.525] (II) intel(0): Output LVDS1 connected
[   235.525] (II) intel(0): Output VGA1 disconnected
[   235.525] (II) intel(0): Output DP1 disconnected
[   235.525] (II) intel(0): Using exact sizes for initial modes
[   235.525] (II) intel(0): Output LVDS1 using initial mode 1920x1200
[   235.525] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless 
otherwise stated.
[   235.525] (II) intel(0): Kernel page flipping support detected, enabling
[   235.525] (**) intel(0): Display dimensions: (330, 210) mm
[   235.525] (**) intel(0): DPI set to (147, 145)
[   235.525] (II) Loading sub module "fb"
[   235.525] (II) LoadModule: "fb"
[   235.525] (II) Loading /usr/lib/xorg/modules/libfb.so
[   235.534] (II) Module fb: vendor="X.Org Foundation"
[   235.534]    compiled for 1.10.4, module version = 1.0.0
[   235.534]    ABI class: X.Org ANSI C Emulation, version 0.4
[   235.534] (II) Loading sub module "dri2"
[   235.534] (II) LoadModule: "dri2"
[   235.536] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[   235.536] (II) Module dri2: vendor="X.Org Foundation"
[   235.536]    compiled for 1.10.4, module version = 1.2.0
[   235.536]    ABI class: X.Org Server Extension, version 5.0
[   235.536] (==) Depth 24 pixmap format is 32 bpp
[   235.536] (II) intel(0): [DRI2] Setup complete
[   235.536] (II) intel(0): [DRI2]   DRI driver: i965
[   235.536] (II) intel(0): Allocated new frame buffer 1920x1200 stride 7680, 
tiled
[   235.566] (II) UXA(0): Driver registered support for the following 
operations:
[   235.567] (II)         solid
[   235.567] (II)         copy
[   235.567] (II)         composite (RENDER acceleration)
[   235.567] (II)         put_image
[   235.567] (II)         get_image
[   235.567] (==) intel(0): Backing store disabled
[   235.567] (==) intel(0): Silken mouse enabled
[   235.568] (II) intel(0): Initializing HW Cursor
[   235.590] (II) intel(0): RandR 1.2 enabled, ignore the following RandR 
disabled message.
[   235.592] (==) intel(0): DPMS enabled
[   235.592] (==) intel(0): Intel XvMC decoder enabled
[   235.592] (II) intel(0): Set up textured video
[   235.592] (II) intel(0): [XvMC] xvmc_vld driver initialized.
[   235.592] (II) intel(0): direct rendering: DRI2 Enabled
[   235.592] (==) intel(0): hotplug detection: "enabled"

-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to