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
Created attachment 138819 [details] config file used to compile the kernel
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
Can you tell me the last kernel this worked on in Gentoo and post your dmesg for the broken kernel.
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
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.
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)
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.
Chris, please file a new bug as it sounds like your problem is different
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.
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.
genkernel r4 doesn't load the module too so it seems not to be config problem.
Mine is fixed in gentoo-sources-2.6.23-r5.
Dominik, Can you test with gentoo-sources-2.6.23-r5 and post the results.
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.
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.