Commit Graph
3924 Commits
Author SHA1 Message Date
Jean Delvare 71b222e5e2 More comments for as99127f.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1759 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 08:00:58 +00:00
Jean Delvare 286bce4021 Fixed as99127f temp2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1758 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 07:26:43 +00:00
Mark M. Hoffman 142689feb3 Fix trivial compile errors when using DEBUG := 1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1757 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 04:56:51 +00:00
Mark D. Studebaker b5e2fb9803 backport from kernel 2.5.69. tested OK.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1756 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 02:41:15 +00:00
Jean Delvare fc17449b5b Now supports dmidecode 2.0 and later.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1755 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 07:44:49 +00:00
Mark D. Studebaker 7bce574327 get i2c-viapro working again by backporting from
kernel 2.5.69 and adding new sensors_compat.h for the
      drv_dbg(), etc. calls


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1754 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 02:05:18 +00:00
Mark D. Studebaker bbdef07b0e add 791D sysctls; IN9, FAN4, FAN5
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1753 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-02 23:44:58 +00:00
Mark M. Hoffman 3d54042d27 Added support for SiS745 north bridge.
Patch and testing by Rudolf Marek

(mmh) Also added missing declaration for SiS963 support - my bad.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1752 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 22:22:16 +00:00
Mark M. Hoffman ec909108b7 Added support for SiS963 south bridge.
Testing by Brad Barnett


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1751 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 21:33:32 +00:00
Mark M. Hoffman caf6b6140e Added support for SiS651 north bridge.
Patches and testing by Chris King and Norbert Roos


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1750 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 20:23:13 +00:00
Mark D. Studebaker 41e0c48a84 fix symbol error, finish implementation of PCI module init.
doesn't work for me yet though.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1749 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 18:50:50 +00:00
Mark D. Studebaker f9b228cf18 fix 'make install', change install directory to be the same
as other modules. Ticket #1258


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1748 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 17:30:47 +00:00
Mark D. Studebaker ece019f16a fix removal of old sensors.o module, now uses MODPREF rather
than MODDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1747 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 15:48:28 +00:00
Mark D. Studebaker ce5aceb748 replace -idirafter with -nostdinc and other magic from the kernel
makefile. This prevents ever picking up headers from /usr/include
     for module builds. Headers must be located in
     /lib/modules/`uname -r`/build


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1746 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 14:42:48 +00:00
Mark D. Studebaker a43c4d1b3a update paths again to pick up userspace i2c-dev.h from
../../kernel/include


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1745 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 04:18:24 +00:00
Mark D. Studebaker 8d14fe682d add include file search path
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1744 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:38:19 +00:00
Mark D. Studebaker 0d05ed0fab patch as described below. Doesn't compile because of header problems...
From: rysanek@fccps.cz

Dear Chris,

many thanks for writing eeprom.c in the first place.
It has saved me an indefinite amount of time when I needed
to access a 24C02 in a cursed notebook battery pack that
someone's trying to refurbish.

Many more thanks to the authors of lm_sensors and Linux i2c
for writing their software, of course.

I did have to modify eepromer/eeprom.c a bit though, to support
my 24C02. The essential gotcha was this: whereas the 24C16 that
you were using supports maximum burst size of 16 bytes (the same
applies to 24C08 and 24C04), the 24C02 and 24C01 only support
bursts up to 8 bytes long.
I assume that in fact you already know this, as in your code
there's a neat #define called MAX_BYTES to hold exactly this
burst length. And, this was the first thing I modified when
I was trying to solve my problem.
There's one more associated bug though, probably a result of
the fact that your code was not tested with MAX_BYTES values
other than 16. The two for(;;) cycles for reading/writing
consecutive bursts have a wrong terminal condition: they're
comparing the loop count against MAX_BYTES instead of
(BYTES_PER_PAGE/MAX_BYTES).

With this e-mail, I am enclosing the corrected eeprom.c.

My symptoms looked like this: I read the eeprom just fine.
I did my dirty work on two bytes in the eprom dump and
flashed it back. When I re-read the eprom contents,
I found garbage - or so it seemed.
At a closer look, I found out that every second
half-burst (the second 8 bytes of the 16) was correct and
every first 8 bytes was garbled. (Compared that using two
hex editors open on consoles 1 and 2.)
After a few more  seconds I found out that the two half-bursts
were really identical.
My final explanation is that each 16byte write resulted in
only the first half-burst being overwritten (the second was
left untouched), only the eeprom latched in all 16 bytes
obediently, so that its FIFO overflew and looped around
exactly once, which resulted in the *second* half-burst
being written into the *first* eight bytes...

Based largely on eeprom.c, I've already hacked a simple util
to write only those two or four bytes that matter to me (the
actual battery capacity and the write-protect stuff).

If the battery refurbishment works out, I'll update my website
to report this success, including all my code snippets.
Thanks again :)

Frank Rysanek


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1743 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:37:24 +00:00
Mark D. Studebaker 080beac84a recognize w83791d
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1742 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:01:58 +00:00
Mark D. Studebaker 2436f40201 libsensors support for w83791d; patch from
Ross Biro rossb@google.com


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1741 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:00:23 +00:00
Mark D. Studebaker 51b011307c Patch from Philip Pokorny
This patch fixes a race condition in the lm85 driver and adds support for the
SMC EMC6D100 and EMC6D101.  The EMC6D100 and 101 chips have some additional
features that *are not* currently implemented in the driver, but the chip is
detected (by sensors-detect and the lm85 driver).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1740 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 00:24:07 +00:00
Mark D. Studebaker 7eb36a199a handle multiple UTS_RELEASE definitions in linux/version.h;
as suggested by Mark Hoffman.
      Also revert -dirafter which doesn't work for gcc 2.95.2.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1739 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-30 03:13:07 +00:00
Mark D. Studebaker 1bdaa54d40 add support for AMD Opteron VID encoding
patch from Philip Pokorny


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1738 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-30 00:55:23 +00:00
Mark D. Studebaker 26fdf01fed fix bug with tempn_over and tempn_hyst writes - ticket 1219
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1737 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-20 02:06:56 +00:00
Mark D. Studebaker 0195d22c57 fix hyst and over feature names (ticket 1219)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1736 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-20 01:53:52 +00:00
Mark D. Studebaker 06655ebe50 (mds)
Christian Hammers <ch@laathspell.de> wrote:

> Hello
>
> I always got the following error when compiling lm_sensors-2.7.0:
>
>
>>     gcc   -DMODVERSIONS -include /lib/modules/2.4.20-bigvideo-1/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I.  -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.20-bigvideo-1/build/include   -O2   -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
>
>
>
>>>     kernel/busses/i2c-amd8111.c:26:2: #error Your i2c is too old - i2c-2.7.0 or greater required!
>
>
>
> This is a compile problem as the include files of 2.7.0 are in
> /usr/local/include/linux/. gcc-3.2.3 just puts /usr/local/include at the
> end of the list although it is first on the command line and the info
> page says the list is scanned left to right.
>
>>         GNU CPP version 3.2.3 20030316 (Debian prerelease) (cpplib)
>>     (i386 Linux/ELF)
>>     GNU C version 3.2.3 20030316 (Debian prerelease) (i386-linux)
>>         compiled by GNU C version 3.2.3 20030316 (Debian prerelease).
>>     ignoring nonexistent directory "/usr/i386-linux/include"
>>     ignoring duplicate directory "/usr/local/include"
>>       as it is a non-system directory that duplicates a system directory
>>     #include "..." search starts here:
>>     #include <...> search starts here:
>>      .
>>      kernel/include
>>      /usr/local/include
>>      /usr/lib/gcc-lib/i386-linux/3.2.3/include
>>      /usr/include
>>      /lib/modules/2.4.20-bigvideo-1/build/include
>
>
>
> As a fix I suggest:
>
> # diff -u Makefile.orig Makefile
> --- Makefile.orig       2003-03-19 18:20:38.000000000 +0100
> +++ Makefile    2003-03-19 18:21:08.000000000 +0100
> @@ -178,7 +178,7 @@
>  # PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables).
>  # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
>  # LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
> -ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
> +ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS)
>  ALL_CFLAGS := -O2
>  ifeq ($(DEBUG),1)
>
>
>
> bye,
>
>   -christian-


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1735 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-19 23:45:02 +00:00
Jean Delvare e005f2f4ed Mention ACPI as an alternative to lm_sensors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1734 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-15 14:54:30 +00:00
Jean Delvare d1ddb1b59d Added reference to README.thinkpad, as suggested by Moritz
Moeller-Herrmann.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1733 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-15 14:47:32 +00:00
Jean Delvare f235f76729 Added missing </ul>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1732 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-04-01 20:32:26 +00:00
Mark D. Studebaker f6fcda8c73 updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1731 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 03:26:20 +00:00
Mark D. Studebaker 16f2cd86e7 cleanup part 2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1730 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 03:13:28 +00:00
Mark D. Studebaker b13c20ad6d I2C_HEADERS = to := (from Philip Pokorny)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1729 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:56:48 +00:00
Mark D. Studebaker c2f08d613a my cleanup, conversion to new standards, compile fixes
(initial checkin was as received from Philip)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1728 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:54:32 +00:00
Mark D. Studebaker 3388f7cf73 add lm85
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1727 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:34:49 +00:00
Mark D. Studebaker bd256e9552 lm85 patch from Philip Pokorny <ppokorny@penguincomputing.com>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1726 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:34:10 +00:00
Mark D. Studebaker 21920eeb66 cleanup from Philip Pokorny
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1725 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:28:56 +00:00
Mark D. Studebaker ec1137b347 update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1724 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:19:29 +00:00
Mark D. Studebaker a0a2e78c8a spelling fixes from Philip Pokorny
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1723 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:01:35 +00:00
Mark D. Studebaker 147dda72bb spelling fix from Philip Pokorny
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1722 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 01:55:03 +00:00
Mark D. Studebaker 27655c241f add back i2c_xxxx_func prototypes inadvertently removed which prevented compile
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1721 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 01:39:57 +00:00
Mark D. Studebaker 42ce50ea40 fix compile error when DEBUG=1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1720 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 01:32:56 +00:00
Mark D. Studebaker dd42f669e3 spelling fix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1719 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-09 00:30:09 +00:00
Mark D. Studebaker c389918f9c recognize DDR and Rambus types
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1718 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-09 00:23:46 +00:00
Mark D. Studebaker 32b082e86b added 'sensors -s' to start() as suggested by a ticket
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1717 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-25 02:50:46 +00:00
Jean Delvare cc74781b1e Even better explanations for as99127f's temp3, with quotation
from Artur Gawryszczak.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1716 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-20 16:20:45 +00:00
Jean Delvare cfad677cd8 Added comments about temp2 on as99127f, thanks to the information
reported by Artur Gawryszczak and Michele Conte.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1715 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-19 23:14:20 +00:00
Mark D. Studebaker 11bf8e8f81 add note that these modules require i2c-algo-bit
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1714 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-17 02:56:46 +00:00
Mark D. Studebaker 9340a00473 add Phil's note about spam blocking to the FAQ so we don't lose it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1713 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-17 01:58:10 +00:00
Mark D. Studebaker 6aa045fc8e add i2c-nforce2 driver, from
Hans-Frieder Vogt <hfvogt@arcor.de>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1712 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-17 01:28:56 +00:00
Jean Delvare eb7400e211 Removed or fixed all dead links, plus some updates.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1711 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-02-16 11:20:16 +00:00
Alexander Malysh 91d48dde96 added lspci output for sis730
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1710 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-31 23:23:46 +00:00