Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202699 - gentoo-sources-2.6.23-r4 - module it87 not loading: Device or resource busy
Summary: gentoo-sources-2.6.23-r4 - module it87 not loading: Device or resource busy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 14:21 UTC by Dominik Wójt
Modified: 2008-01-03 21:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config file used to compile the kernel (config.gz,8.37 KB, text/plain)
2007-12-18 14:22 UTC, Dominik Wójt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Wójt 2007-12-18 14:21:03 UTC
Each time i try to load this module i get the error. It's quite confusing since this module loads correct on the same machine on Ubuntu.
The kernel version is 2.6.23-r4 and it's manually compiled from gentoo-sources

Reproducible: Always

Steps to Reproduce:
1.modprobe it87
Actual Results:  
FATAL: Error inserting it87 (/lib/modules/2.6.23-gentoo-r4/kernel/drivers/hwmon/it87.ko): Device or resource busy


Expected Results:  
module should be loaded
Comment 1 Dominik Wójt 2007-12-18 14:22:05 UTC
Created attachment 138819 [details]
config file used to compile the kernel
Comment 2 Dominik Wójt 2007-12-18 14:24:03 UTC
Portage 2.1.4_rc10 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Timestamp of tree: Tue, 18 Dec 2007 12:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://src.gentoo.pl http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="en pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv xvmc 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Mike Pagano gentoo-dev 2007-12-18 16:43:43 UTC
Can you tell me the last kernel this worked on in Gentoo and post your dmesg for the broken kernel.
Comment 4 Chris Mayo 2007-12-18 17:44:24 UTC
There is a discussion about this on lkml:
http://lkml.org/lkml/2007/12/9/147

and even a potential patch:
http://lkml.org/lkml/diff/2007/12/9/186/1

They discuss it as after 2.6.23.9 and gentoo-sources-2.6.23-r3 worked OK for me.
With r4:

it87: Found IT8718F chip at 0x290, revision 4
it87: in3 is VCC (+5V)
it87 it87.656: Failed to request region 0x290-0x297
it87: probe of it87.656 failed with error -16
Comment 5 Mike Pagano gentoo-dev 2007-12-18 17:55:22 UTC
Yes, I saw that also, and hence my request to see your dmesg to determine if it was related.

That patch is currently not yet in the mainline kernel tree.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-12-18 18:00:55 UTC
also make sure dmesg is not captured until after you have attempted to load the module (more details about the it87 loading problem will be logged there)
Comment 7 Chris Mayo 2007-12-18 18:11:12 UTC
That's all I get in dmesg.

Should have said it does actually load for me - it just doesn't work (i.e. sensors shows nothing from it). But, if I do:
modprobe -r it87
modprobe it87

It loads OK and appears to work.
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2007-12-18 18:21:35 UTC
Chris, please file a new bug as it sounds like your problem is different
Comment 9 Dominik Wójt 2007-12-18 20:10:21 UTC
dmesg:

it87: Found IT8716F chip at 0x290, revision 0
it87: in3 is VCC (+5V)
it87: in7 is VCCH (+5V Stand-By)
it87.656: failed to claim resource 0
it87: Device addition failed (-16)

I have not tried it before with any gentoo kernel, but it works on Ubuntu, kernel 2.6.22-14-generic .
I will try to compile gentoo kernel 2.6.23-r3 i check if the problem still occurs.
Comment 10 Dominik Wójt 2007-12-18 22:03:34 UTC
When running gentoo-genkernel-2.6.23-r3 the module it87 loads ok.
I will check r4 genkernel tommorow. That's enough for me today.
Comment 11 Dominik Wójt 2007-12-19 15:47:00 UTC
genkernel r4 doesn't load the module too so it seems not to be config problem.
Comment 12 Chris Mayo 2007-12-22 12:22:53 UTC
Mine is fixed in gentoo-sources-2.6.23-r5.
Comment 13 Mike Pagano gentoo-dev 2007-12-27 00:23:47 UTC
Dominik,

Can you test with gentoo-sources-2.6.23-r5 and post the results.
Comment 14 Dominik Wójt 2007-12-27 11:15:32 UTC
I will test with r5 but not sooner then on 03.01.2008 because I will not have access to that machine till then. I'm now spending the holiday at my hometown.
Comment 15 Dominik Wójt 2008-01-03 21:25:03 UTC
I upgraded the kernel to r5 today and it fixed the problem. Now the module loads fine and I can see my sensors again :) Thanks for Your help.