Bug 13848 - [915GV] Failed to initialize kernel memory manager
Summary: [915GV] Failed to initialize kernel memory manager
Status: VERIFIED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-28 22:46 UTC by Shuang He
Modified: 2008-10-12 19:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg log (48.73 KB, text/plain)
2008-01-01 23:41 UTC, Shuang He
no flags Details
dmesg (20.23 KB, text/plain)
2008-01-01 23:55 UTC, Shuang He
no flags Details
Failed to initialize kernel memory manager i965gm (34.83 KB, application/octet-stream)
2008-02-06 13:37 UTC, vaLentin
no flags Details

Description Shuang He 2007-12-28 22:46:56 UTC
System Environment:
--------------------------
--Platform: FC6
--Xf86_video_intel:96246c27cb836bae8ee02c46c68a1f2102efd14b
--Mesa:aac2d99dc316c069faa46dd43ff034155754c6b3
--DRM:b9417f41418321d5081547a3a3386dcccae7541f
--Kernel:2.6.23

Bug detailed description:
--------------------------
this issue seems only happen on 915GV

when start X server, it will complain:
(EE) intel(0): Failed to initialize kernel memory manager

and dmesg says:
[drm] Initialized drm 1.1.0 20060810
PCI: Setting latency timer of device 0000:00:02.0 to 64
Failed inserting resource into tree
[drm] Initialized i915 1.12.0 20070209 on minor 0
[drm] Used old pci detect: framebuffer loaded

Reproduce steps:
----------------
start X

Current result:
----------------
Failed to initialize kernel memory manager


Expected result:
----------------
should initialize kernel memory manager successfully
Comment 1 Michael Fu 2008-01-01 23:35:28 UTC
shuang to double-check if intelfb driver was loaded or compiled into kernel.

and, xorg log file. 
Comment 2 Shuang He 2008-01-01 23:41:46 UTC
Created attachment 13453 [details]
xorg log
Comment 3 Shuang He 2008-01-01 23:55:32 UTC
Created attachment 13454 [details]
dmesg
Comment 4 Shuang He 2008-01-02 00:55:50 UTC
we removed option "Support for frame buffer device" kernel config.
but this issue still exists
Comment 5 Michael Fu 2008-01-03 18:31:42 UTC
Is this specific to 915GV? how about 965 and other 915 variant?
Comment 6 Shuang He 2008-01-03 18:34:48 UTC
(In reply to comment #5)
> Is this specific to 915GV? how about 965 and other 915 variant?
> 

yes, it's specific to 915GV. this issue doesn't happen on others.
Comment 7 Gordon Jin 2008-01-09 22:39:12 UTC
any idea?
Comment 8 Shuang He 2008-01-10 21:18:10 UTC
this issue has been resolved.
it's caused by the mismatch between the libdrm and drm kernel module.
Comment 9 vaLentin 2008-02-06 13:37:49 UTC
Created attachment 14181 [details]
 Failed to initialize kernel memory manager i965gm

965gm Failed to initialize kernel memory manager
Comment 10 vaLentin 2008-02-06 13:46:19 UTC
This also happens with i965GM with the latest xserver, drm, mesa and intel-driver builds from their GIT repos. Unfortunately I have to re-open this bug:

(II) intel(0): [drm] framebuffer mapped by ddx driver
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): X context handle = 0x1
(II) intel(0): [drm] installed DRM signal handler
(EE) intel(0): Failed to initialize kernel memory manager
(==) intel(0): VideoRam: 262144 KB
(**) intel(0): Framebuffer compression disabled
(**) intel(0): Tiling enabled
(II) intel(0): Attempting memory allocation with tiled buffers.

Xorg.log attached.

Output from the dmesg:

[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.11.0 20070209 on minor 0
[drm] Used old pci detect: framebuffer loaded

[drm:drm_mm_init_ioctl] *ERROR* libdrm and kernel DRM buffer object interface major
        version don't match. Got 1, expected 0,
[drm:drm_mm_init_ioctl] *ERROR* libdrm and kernel DRM buffer object interface major
        version don't match. Got 1, expected 0,
[drm:drm_mm_init_ioctl] *ERROR* libdrm and kernel DRM buffer object interface major
        version don't match. Got 1, expected 0,

I have compilled all of the gits as per instructions from:


http://dri.freedesktop.org/wiki/Building
http://www.x.org/wiki/CompileXserverManually

The xserver has been built with:

./autogen.sh --prefix=/opt/xorg --enable-debug --enable-xorg --disable-dmx \
 --disable-xvfb --disable-xnest --disable-xwin --disable-xprint \
 --enable-xorgcfg --with-mesa-source=/usr/local/src/mesa --enable-aiglx \
 --enable-xdmcp --enable-glx --enable-dri --enable-kbd_mode 

I am also using 2.6.23-gentoo-r5 with x86.

Please let me know if there is anything else I can add as debugging info.
Comment 11 Eric Anholt 2008-02-06 16:58:45 UTC
You're not actually loading the new DRM module, as the current minor number is 12 not 11.  Make sure you don't have stale modules laying around, and next time open your own bug for your own issue.
Comment 12 Shuang He 2008-10-12 19:08:14 UTC
verified


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.