Bug 16227

Summary: TTM fails to initialize
Product: Mesa Reporter: Johannes Engel <jcnengel>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Johannes Engel 2008-06-04 02:50:52 UTC
Using drm (incl. kernel modules), mesa, X from todays git glxgears tells me

Failed to initialize TTM buffer manager.  Falling back to classic.

Why that?

Xorg.0.log says

(II) [drm] loaded kernel module for "i915" driver.
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables.
(II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): [drm] installed DRM signal handler
(II) intel(0): [drm] Registers = 0xeff00000
(II) intel(0): [drm] ring buffer = 0xd0000000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432
(II) intel(0): [drm] dma control initialized, using IRQ 16
(II) intel(0): [drm] mapped front buffer at 0xd3000000, handle = 0xd3000000
(II) intel(0): [drm] mapped back buffer at 0xd2000000, handle = 0xd2000000
(II) intel(0): [drm] mapped depth buffer at 0xd1000000, handle = 0xd1000000
(II) intel(0): [drm] mapped classic textures at 0xddff5000, handle = 0xddff5000

dmesg says
[drm] Initialized drm 1.1.0 20060810
PCI: Unable to reserve mem region #3:10000000@d0000000 for device 0000:00:02.0
PCI: Setting latency timer of device 0000:00:02.0 to 64
[drm] Initialized i915 1.13.0 20080312 on minor 0
[drm] Used old pci detect: framebuffer loaded
Comment 1 Dave Airlie 2008-06-04 04:43:04 UTC
Mesa doesn't enable TTM by default now...

you need to pass --enable-ttm to the configure script.

Comment 2 Johannes Engel 2008-06-04 05:58:55 UTC
I guess you mean --enable-ttm-api which I used. Do I need a special drm branch, too?
Comment 3 Timo Jyrinki 2008-06-04 11:07:47 UTC
Works for me, did the same just today. Did you recompile intel DDX driver, too? It should say "checking for DRI_MM... yes" while configuring.
Comment 4 Johannes Engel 2008-06-04 11:14:19 UTC
I guess there was something else weird, since it works for me now, too, after recompiling everything.
Comment 5 Adam Jackson 2009-08-24 12:30:20 UTC
Mass version move, cvs -> git

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.