Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283056

Summary: drm echo repeadetly messages to /var/log/messages
Product: Gentoo Linux Reporter: Hannan Sadar <hannan.sadar>
Component: [OLD] UnspecifiedAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal CC: hannan.sadar, x11
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: my actuel xorg.conf
my xorg log
Kernel 2.6.30-gentoo-r6 config file
my xorg log file using gentoo-sources 2.6.31 kernel
emerge-info
kernel config 2.6.31 - no error messages

Description Hannan Sadar 2009-08-28 18:08:52 UTC
I have Laptop IBM ThinkPad X301 with grafical card GMA 4500MHD.

I use xorg-server 1.6.3 and xf86-video-intel 2.8.0

each time i start my xorg server (/etc/init.d/xdm start) the following message are been shown repeadetly in messages log.

[38206.086022] iint_free: writecount: -1
[38206.086028] iint_free: opencount: -1
[38206.088022] iint_free: writecount: -1
[38206.088026] iint_free: opencount: -1
[38206.088031] iint_free: writecount: -1
[38206.088035] iint_free: opencount: -1
[38206.088040] iint_free: writecount: -1
[38206.088044] iint_free: opencount: -1
[38206.088049] iint_free: writecount: -1
[38206.088053] iint_free: opencount: -1
[38206.088058] iint_free: writecount: -1
[38206.088061] iint_free: opencount: -1
[38206.088068] iint_free: writecount: -1
[38206.088071] iint_free: opencount: -1
[38206.088077] iint_free: writecount: -1
[38206.088080] iint_free: opencount: -1
[38206.088085] iint_free: writecount: -1
[38206.088089] iint_free: opencount: -1
[38206.088095] iint_free: writecount: -1
[38206.088098] iint_free: opencount: -1
[38209.000417] ima_file_free: drm mm object open/free imbalance (r:0 w:0 o:0 f:0)
[38209.000431] Pid: 6883, comm: X Not tainted 2.6.30-gentoo-r4 #3
[38209.000436] Call Trace:
[38209.000459]  [<ffffffff812082c3>] ima_file_free+0xb1/0x12c
[38209.000471]  [<ffffffff811f1d6b>] ? selinux_file_free_security+0x31/0x47
[38209.000483]  [<ffffffff810e2721>] __fput+0x102/0x1b5
[38209.000491]  [<ffffffff810e27fc>] fput+0x28/0x3e
[38209.000503]  [<ffffffff812cac95>] drm_gem_object_free+0x4b/0x81
[38209.000513]  [<ffffffff812cac4a>] ? drm_gem_object_free+0x0/0x81
[38209.000523]  [<ffffffff81233902>] kref_put+0x56/0x76
[38209.000532]  [<ffffffff812caacf>] drm_gem_object_unreference+0x28/0x3e
[38209.000542]  [<ffffffff812cab7a>] drm_gem_object_handle_unreference+0x38/0x53
[38209.000552]  [<ffffffff812cae07>] drm_gem_close_ioctl+0x8b/0xb8
[38209.000562]  [<ffffffff812cad7c>] ? drm_gem_close_ioctl+0x0/0xb8
[38209.000571]  [<ffffffff812c9bbd>] drm_ioctl+0x218/0x2e3
[38209.000579]  [<ffffffff811f0e40>] ? avc_has_perm+0x66/0x8c
[38209.000588]  [<ffffffff810e1011>] ? do_sync_read+0xf5/0x146
[38209.000622]  [<ffffffff810ef790>] vfs_ioctl+0x79/0xa5
[38209.000631]  [<ffffffff810efc19>] do_vfs_ioctl+0x45d/0x4b4
[38209.000640]  [<ffffffff810efcd0>] sys_ioctl+0x60/0x97
[38209.000651]  [<ffffffff8100beab>] system_call_fastpath+0x16/0x1b
[38209.007131] ima_file_free: drm mm object open/free imbalance (r:0 w:0 o:0 f:0)
[38209.007141] Pid: 6883, comm: X Not tainted 2.6.30-gentoo-r4 #3
[38209.007146] Call Trace:
[38209.007161]  [<ffffffff812082c3>] ima_file_free+0xb1/0x12c
[38209.007171]  [<ffffffff811f1d6b>] ? selinux_file_free_security+0x31/0x47
[38209.007182]  [<ffffffff810e2721>] __fput+0x102/0x1b5
[38209.007191]  [<ffffffff810e27fc>] fput+0x28/0x3e
[38209.007201]  [<ffffffff812cac95>] drm_gem_object_free+0x4b/0x81
[38209.007211]  [<ffffffff812cac4a>] ? drm_gem_object_free+0x0/0x81
[38209.007221]  [<ffffffff81233902>] kref_put+0x56/0x76
[38209.007230]  [<ffffffff812caacf>] drm_gem_object_unreference+0x28/0x3e
[38209.007240]  [<ffffffff812cab7a>] drm_gem_object_handle_unreference+0x38/0x53
[38209.007251]  [<ffffffff812cae07>] drm_gem_close_ioctl+0x8b/0xb8
[38209.007281]  [<ffffffff812cad7c>] ? drm_gem_close_ioctl+0x0/0xb8
[38209.007290]  [<ffffffff812c9bbd>] drm_ioctl+0x218/0x2e3
[38209.007299]  [<ffffffff811f0e40>] ? avc_has_perm+0x66/0x8c
[38209.007309]  [<ffffffff810e1011>] ? do_sync_read+0xf5/0x146
[38209.007329]  [<ffffffff810ef790>] vfs_ioctl+0x79/0xa5
[38209.007339]  [<ffffffff810efc19>] do_vfs_ioctl+0x45d/0x4b4
[38209.007350]  [<ffffffff810efcd0>] sys_ioctl+0x60/0x97
[38209.007362]  [<ffffffff8100beab>] system_call_fastpath+0x16/0x1b

i dont really know what the source for it, since when i defined vesa as my grafical card, i havent had those messages (only when xorg-server use intel driver as grifical driver).

those messages repeadeted them self is xorg.conf exists or not.

Reproducible: Always

Steps to Reproduce:
1. start my xdm
2.
3.




here is my emerge --info
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_U9400_@_1.40GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 28 Aug 2009 15:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde /usr/local/portage/layman/kde-testing /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 antlr asf battery berkdb bluetooth branding bsf bzip2 cairo cdr cli cpufreq cracklib crypt cups custom-optimization cvs dbus divx djvu dri dts dvd dvdr eds emboss encode esd evo extra fam fbcondecor fbsplash ffmpeg firefox flac fortran gcj gdbm gif git gnome gpm graphics gstream gstreamer gtk gtk2 hal hbci humanities iceweasel iconv ipv6 isdnlog java java5 javamail jpeg kde kpathsea latex latin1 ldap libg++ libnotify live livecd log4j loop-aes lyx mad mikmod mmx mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg omega opengl openmp pam pcre pdf perl plugin2 png ppds pppd pstricks publishers python qt3support qt4 quicktime readline realmedia reflection rtsp ruby science sdl session sound spell spl sse sse2 sse3 ssl startup-notification stream subversion svg svn sysfs tcpd tex4ht thunar tiff truetype unicode urandom usb uxterm v4l v4l2 vorbis wifi wmp wxwindows x264 xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa intel v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hannan Sadar 2009-08-28 18:11:56 UTC
Created attachment 202536 [details]
my actuel xorg.conf

this problem appiers also when xorg.conf does not exists
Comment 2 Hannan Sadar 2009-08-28 18:12:50 UTC
Created attachment 202537 [details]
my xorg log
Comment 3 Hannan Sadar 2009-08-28 18:13:45 UTC
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.4.1,
glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname:
Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_U9400_@_1.40GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 28 Aug 2009 15:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
/etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d
/etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c
/etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs
protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde
/usr/local/portage/layman/kde-testing /usr/local/portage/layman/sunrise
/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 antlr asf battery berkdb bluetooth
branding bsf bzip2 cairo cdr cli cpufreq cracklib crypt cups
custom-optimization cvs dbus divx djvu dri dts dvd dvdr eds emboss encode esd
evo extra fam fbcondecor fbsplash ffmpeg firefox flac fortran gcj gdbm gif git
gnome gpm graphics gstream gstreamer gtk gtk2 hal hbci humanities iceweasel
iconv ipv6 isdnlog java java5 javamail jpeg kde kpathsea latex latin1 ldap
libg++ libnotify live livecd log4j loop-aes lyx mad mikmod mmx mp3 mp4 mpeg
mudflap multilib ncurses nls nptl nptlonly nsplugin ogg omega opengl openmp pam
pcre pdf perl plugin2 png ppds pppd pstricks publishers python qt3support qt4
quicktime readline realmedia reflection rtsp ruby science sdl session sound
spell spl sse sse2 sse3 ssl startup-notification stream subversion svg svn
sysfs tcpd tex4ht thunar tiff truetype unicode urandom usb uxterm v4l v4l2
vorbis wifi wmp wxwindows x264 xinerama xml xorg xscreensaver xulrunner xv xvid
zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa intel
v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-09-04 14:28:56 UTC
@Kernel, I've never seen this before. Do you think this has been fixed -r5 or -r6?

Thanks
Comment 5 Mike Pagano gentoo-dev 2009-09-04 21:29:35 UTC
Let's start with the latest 2.6.30-gentoo-sources-r6. I may ask you to test a development kernel version from the git-sources package.
Comment 6 Hannan Sadar 2009-09-04 23:32:31 UTC
i just tested the gentoo-sources-2.6.30-r6 and i got the same messages...
[  144.103143] ima_file_free: drm mm object open/free imbalance (r:0 w:0 o:0 f:0)
[  144.103153] Pid: 6991, comm: X Not tainted 2.6.30-gentoo-r6 #1
[  144.103158] Call Trace:
[  144.103171]  [<ffffffff812083ff>] ima_file_free+0xb1/0x12c
[  144.103181]  [<ffffffff811f1ea0>] ? selinux_file_free_security+0x31/0x47
[  144.103191]  [<ffffffff810e27ed>] __fput+0x102/0x1b5
[  144.103199]  [<ffffffff810e28c8>] fput+0x28/0x3e
[  144.103210]  [<ffffffff812cadd5>] drm_gem_object_free+0x4b/0x81
[  144.103219]  [<ffffffff812cad8a>] ? drm_gem_object_free+0x0/0x81
[  144.103228]  [<ffffffff81233a3e>] kref_put+0x56/0x76
[  144.103237]  [<ffffffff812cac0f>] drm_gem_object_unreference+0x28/0x3e
[  144.103248]  [<ffffffff812cacba>] drm_gem_object_handle_unreference+0x38/0x53
[  144.103258]  [<ffffffff812caf47>] drm_gem_close_ioctl+0x8b/0xb8
[  144.103268]  [<ffffffff812caebc>] ? drm_gem_close_ioctl+0x0/0xb8
[  144.103277]  [<ffffffff812c9cfd>] drm_ioctl+0x218/0x2e3
[  144.103285]  [<ffffffff811f0f74>] ? avc_has_perm+0x66/0x8c
[  144.103299]  [<ffffffff810ef85c>] vfs_ioctl+0x79/0xa5
[  144.103308]  [<ffffffff810efce5>] do_vfs_ioctl+0x45d/0x4b4
[  144.103318]  [<ffffffff810efd9c>] sys_ioctl+0x60/0x97
[  144.103326]  [<ffffffff810c3e16>] ? sys_munmap+0x5f/0x83
[  144.103336]  [<ffffffff8100beab>] system_call_fastpath+0x16/0x1b
[  144.110141] iint_free: writecount: -1
[  144.110147] iint_free: opencount: -1
[  144.110165] iint_free: writecount: -1
[  144.110169] iint_free: opencount: -1

in addition i added my .config file in case i chose something wrong at CONFIG_MTRR or DRM

Thanks for the help
Comment 7 Hannan Sadar 2009-09-04 23:33:41 UTC
Created attachment 203170 [details]
Kernel 2.6.30-gentoo-r6 config file
Comment 8 Mike Pagano gentoo-dev 2009-09-12 15:15:38 UTC
Please test with gentoo-sources-2.6.31
Comment 9 Hannan Sadar 2009-09-15 11:30:17 UTC
i emerged sys-kernel/gentoo-sources-2.6.31, took my .config from my old kernel (2.6.30-r6) and tried to run xorg-server (/etc/init.d/xdm start)

and it didn't work, xorg haven't load currectly, it shows blurred lines and you dont even see your mouse pointer.

Make long story short, there was a change in kernel 2.6.31 that doesnt make good with xf86-video-intel-2.8.1

btw, i tried compiling f86-video-intel-2.6.3-r1 and the same results, tried with vesa drived, worked fine.
Comment 10 Hannan Sadar 2009-09-15 11:31:54 UTC
Created attachment 204178 [details]
my xorg log file using gentoo-sources 2.6.31 kernel
Comment 11 infobox.oleg 2009-09-26 16:32:57 UTC
Created attachment 205309 [details]
emerge-info

Same problem here, as in comment 0

xf86-video-intel 2.8.1
mesa 7.5.1
xorg-server-1.6.3.901-r2
tuxonice-sources-2.6.30-5
Comment 12 infobox.oleg 2009-09-26 17:12:38 UTC
Created attachment 205314 [details]
kernel config 2.6.31 - no error messages

With kernel 2.6.31 patched with tuxonice sources there are no error messages in the system log. Everything else remained the same, .config was copied from 2.6.30-r5 and then oldconfig.
Comment 13 Hannan Sadar 2009-09-26 17:41:30 UTC
from where i could emerge tuxonice sources-2.6.31?
Comment 14 Hannan Sadar 2009-09-28 11:11:24 UTC
i used gentoo-config-2.6.31-gensources-with-tuxonice file in my 
gentoo-sources-2.6.31 kernel and it solved the problem aswell. I still dont know what was exactly the change from my kernel config to infobox.oleg@wo.cz that made it from frezzing xorg screen to a working xorg enviuerment.

P.S.
i tested the same working kernel config at my gentoo-sources-2.6.30-r6 and the bug was still exisit.

i will keep searching for the option that need to be active in kernel to make it work, so it could be documented.

any hint that could save me time would be welcome (based on kdiff between my config file to infobox.oleg@wo.cz config file)

regards
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2009-09-28 11:16:25 UTC
This needs to be seen by Intel developers. Please file a bug in FreeDesktop's bugzilla [1] and paste the url here.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html