Bug 15731 - lm_sensors + kernel 2.6.31 => it87 fails
Summary: lm_sensors + kernel 2.6.31 => it87 fails
Status: CLOSED DOCUMENTED
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Thermal (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_power-thermal
URL:
Keywords:
: 16029 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-08 21:24 UTC by ccancellieri
Modified: 2010-05-24 08:11 UTC (History)
5 users (show)

See Also:
Kernel Version: 2.6.3x
Subsystem:
Regression: No
Bisected commit-id:


Attachments
my .config file (85.66 KB, application/octet-stream)
2010-04-08 21:24 UTC, ccancellieri
Details

Description ccancellieri 2010-04-08 21:24:37 UTC
Created attachment 25922 [details]
my .config file

As I said here:
http://forums.gentoo.org/viewtopic-t-802632-highlight-.html

I've a Lanparty DFI P45 MB and I can't load the 'it87' module since kenel said to me that I should use an ACPI driver wich not exists (for my NOT ASUS MB)

DMESG:
...
it87: in3 is VCC (+5V)
it87: in7 is VCCH (+5V Stand-By)
ACPI: I/O resource it87 [0x295-0x296] conflicts with ACPI region IP__ [0x295-0x296]
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
...


As you can see module asus_atk0110 won't work for me:

localhost linux # modprobe asus_atk0110
localhost linux # /etc/init.d/lm_sensors restart
localhost linux # sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +32.0 C  (high = +78.0 C, crit = +100.0 C) 

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +33.0 C  (high = +78.0 C, crit = +100.0 C)

The 'solution' I'm using is the 'acpi_enforce_resources=lax' passed to the kernel through lilo args. 

Other 'solution' is to disable the 'ACPI (Advanced Configuration and Power Interface) Support' but I think this is a bed idea...

the question is why I can't use the working it87 driver since the suggested 'asus_atk0110' ACPI module isn't the right one?
Only ASUS MB are supported?

thank you.

my actual system:
 # emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 08 Apr 2010 15:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.5-r1, 3.1.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distcc distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ ftp://212.219.56.138/sites/www.ibiblio.org/gentoo/"
LANG="it_IT.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j7"
PKGDIR="/arc/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="/var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/qting-edge /var/lib/layman/kde"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 16bit-indices 16bittmp 64bit 7zip R X X509 Xaw3d a52 aac aalib accessibility ace acl acpi addbookmarks ads aften akode akonadi alac alisp alsa amarok amd64 ao aotuv apache2 apidocs apm ares arts artswrappersuid aspell aspnet aspnet2 aspnetedit bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdr cgi cli consolekit cpudetection cracklib crypt cups curl curlwrappers cxx dbus doc dri dts dvb dvd dvdr dvdread emboss encode exif fam fame fat fbcon fbdev fbsplash ffmpeg fftw finger firefox flac flash fontconfig force-cgi-redirect fortran ftp fts3 fuse fusion gd gdbm gecko geoip ggi gif git glgd glib gpg gphoto2 gpm grub gs gsm gstreamer gtk gtk+ guidexml gzip h323 hal hardened hddtemp hdri high-ints hpn html http hvm iconv id3 id3tag ieee1394 image imagemagick inkjar int64 iodbc ipv6 jack jadetex java java-external java5 javacomm javascript jpeg jpeg2k kde lame lash lcms ldap libcaca libgcrypt libnotify libsamplerate libssh2 libvisual lirc lm_sensors logitech-mouse logrotate loop-aes lzo lzw mad md5sum mdnsresponder-compat messages metric mikmod mime mixer mjpeg mmap mmkeys mmx mmxext mng modules mp2 mp3 mp3tunes mp4 mp4live mpd mpeg mpeg2 mplayer mtp mudflap multilib multipath multipleip multiprocess musepack musicbrainz mysql ncurses networkmanager nfqueue nfs nls nntp nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc ogg openal opengl openmp openntpd openssh openssl opensslcrypt openvpn pam pango pcre pdf perfprofiling perl phonon player plugins png pnm policykit portage portaudio postgres postproc ppds pppd prelude pvr python q32 q8 qemu qt3support qt4 quicktime quotas radio rar raw rc5 readline realmedia reflection regexp reiserfs resolvconf roundrobin rpm rss samba sasl sdl sdl-image sdl-sound sdlaudio secure-delete semantic-desktop sensord session sftp shorten sift simplexml smp sockets sourceview spell spl sql sqlite srt sse sse2 ssl ssse3 startup-notification stream submenu subtitles subversion svg svgz swat swig sysfs syslog sysvipc szip taglib tagwriting tcl tcp tcpd tcpmd5 tftp tga theora threads threadsafe threadsonly tidy tiff timestats timezone timidity tk tos transcode truetype tunepimp twolame type1 uclibc-compat ui unicode unzip upnp urandom usb uudeview uuencode v4l v4l2 vamp vcd vcdx vdr verse vga video visual visualization vlm vnc vorbis vram vroot wav wavpack webkit wma wmf wmp x264 x86emu xattr xbase xcb xcf xcomposite xen xetex xext xfce xfs xine xinetd xml xmldoclet xmlreader xmlwriter xmp xmpi xorg xpm xrender xulrunner xv xvid xvmc xvnc yaepg yv12 zeroconf zip zlib zvbi" 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" DVB_CARDS="tda10046lifeview" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" LIRC_DEVICES="flyvideo" NETBEANS_MODULES="apisupport harness ide j2ee java nb websvccommon xml soa visualweb webcommon groovy gsf cnd dlight enterprise ergonomics identity mobility php profiler ruby" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga fbdev vesa vmware" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthew Garrett 2010-04-13 11:57:36 UTC
This isn't a bug. Your platform reserves the region used by the it87 chip and doesn't provide any alternative access method. acpi_enforce_resources=lax will restore the previous behaviour, but may result in racy access to the chip between the kernel and the firmware and potentially incorrect temperature eradings or system damage.
Comment 2 ccancellieri 2010-04-13 17:10:13 UTC
Thank you Matthew for your replace.
It's not clear...

> Your platform reserves the region used by the it87 chip
If so, it's a BIOS related problem?
If no, why the it87 still exists into the kernel?

>If an ACPI driver is available for this device,
> you should use it instead of the native driver
So... The solution is to use an hypothetical missing driver?!?

If I've understand, the only solution to solve this:
 - change the Bios
 - change the MB
 - write an ACPI driver for this MB.
Comment 3 Matthew Garrett 2010-04-13 17:19:39 UTC
Your ACPI tables or system management code access the it87. Since there's no locking between the operating system and the firmware in this case, there's the potential for simultaneous access and corresponding failure. Other machines may not do this, which means that the it87 remains available.

The list of potential solutions seems correct. Alternatively, you can pass the kernel option - this provides behaviour equivalent to the older kernel and is no more dangerous than things were originally.
Comment 4 Zhang Rui 2010-05-24 08:11:59 UTC
*** Bug 16029 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.