Ticket #657 (closed task)
Opened 7 years ago
Can view output in proc files but not with sensors. (Examined/Solved - lm_sensors-2.5.4 Linux 2.4.0-test12)
| Reported by: | contact | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | interface | Version: | |
| Keywords: | Cc: |
Description
I have an i840 motherboard from Tyan (Thunder 2400). I have now problem loading
the drivers with:
# I2C adapter drivers
modprobe i2c-i801
modprobe i2c-voodoo3
# I2C chip drivers
modprobe w83781d
modprobe eeprom
modprobe ddcmon
I then can read all output from the sensors from /proc/sys/dev/sensors. The
problem comes when any applicvation including sensors wants to read the data.
Some segfault but sensors just doesn't display any output. Below is my dmesg
output and my /proc/sys/dev/sensors/chips output.
Thanks,
Kris Kersey
augustus@…
dmesg:
i2c-core.o: i2c core module
i801.o version 2.5.4 (20001012)
i2c-core.o: adapter SMBus I801 adapter at efa0 registered as adapter 0.
i2c-i801.o: I801 bus detected and initialized
i2c-algo-bit.o: i2c bit algorithm module
i2c-voodoo3.o version 2.5.4 (20001012)
i2c-voodoo3: Using Banshee/Voodoo?3 at 0xd0857000
i2c-voodoo3: 1 Banshee/Voodoo?3 found.
i2c-core.o: adapter I2C Voodoo3/Banshee adapter registered as adapter 1.
i2c-voodoo3.o: I2C bus initialized
i2c-core.o: adapter DDC Voodoo3/Banshee adapter registered as adapter 2.
i2c-voodoo3.o: DDC bus initialized
sensors.o version 2.5.4 (20001012)
w83781d.o version 2.5.4 (20001012)
i2c-core.o: driver W83781D sensor driver registered.
i2c-core.o: client [W83782D chip] registered to adapter [SMBus I801 adapter at
efa0](pos. 0).
i2c-core.o: client [W83782D subclient] registered to adapter [SMBus I801 adapter
at efa0](pos. 1).
i2c-core.o: client [W83782D subclient] registered to adapter [SMBus I801 adapter
at efa0](pos. 2).
eeprom.o version 2.5.4 (20001012)
i2c-core.o: driver EEPROM READER registered.
i2c-core.o: client [EEPROM chip] registered to adapter [SMBus I801 adapter at
efa0](pos. 3).
i2c-core.o: client [EEPROM chip] registered to adapter [SMBus I801 adapter at
efa0](pos. 4).
i2c-core.o: client [EEPROM chip] registered to adapter [I2C Voodoo3/Banshee
adapter](pos. 0).
ddcmon.o version 2.5.4 (20001012)
i2c-core.o: driver DDCMON READER registered.
i2c-core.o: client [DDC Monitor] registered to adapter [DDC Voodoo3/Banshee
adapter](pos. 0).
cat /proc/sys/dev/sensors/chips:
256 w83782d-i2c-0-2d
257 eeprom-i2c-0-50
258 eeprom-i2c-0-54
259 eeprom-i2c-1-50
260 ddcmon-i2c-2-50
--- Please clarify what is happening.
You can cat the entries in /proc, for example
/proc/sys/dev/sensors/w83782d-i2c-0-2d/in0,
but 'sensors' segfaults?
Or do you mean that some modules are oopsing?
Please send us the oops or segfault information.
Everything you sent in the ticket looks fine.
Followup by sending mail to sensors@… and
referencing your ticket number.
MDS 12/7/00
Closed as very old MDS 1/24/02.
Followups from my records:
Maybe that's a better theory.
I rmmod'ed the chip modules but left the bus modules and the 'sensors'
module, and did 'strace sensors', and it looked just like the one you
sent, including the two ioctls on fd 3. If you look more closely
at the strace output, you'll see that the reads of fd 3 inbetween the
two ioctls were all successful. So I'm convinced it has nothing to
do with sensors.conf or bison/flex or ioctls.
I am going to put a warning message in 'sensors' for when it doesn't
find any sensors at all.
So we'll keep working on it.
We haven't gotten anywhere on the SMP problem.
mds
Kristopher Allan Kersey wrote:
Mark,
I realized that on the support site, that there were several other
problems like mine. I forgot to mention that mine is SMP also. This may
be the common bond: an error with SMP on late 2.4.0-test kernels.
Kristopher Kersey
LinuxHardware?.org Site Manager
augustus@…
On Fri, 8 Dec 2000, Mark D. Studebaker wrote:
Seems to be dying in the parsing of sensors.conf.
Bison/flex problem?
What's your version numbers?
Did you see any bison/flex warnings when the package was built?
Kristopher Allan Kersey wrote:
All,
Yes, /etc/sensors.conf exists. Yes I have a vanilla kernel. Yes I have
sysctl in the kernel. I don't have ptrace installed but if it will help,
I attached a strace readout. Looks like some bad ioctls.
Thanks,
Kristopher Kersey
LinuxHardware?.org Site Manager
augustus@…
On Fri, 8 Dec 2000, Frodo Looijaard wrote:
phil@… wrote:
Is your /etc/sensors.conf file present? Frodo, any other ideas?
Can you send a ptrace of the sensors call? Do you have a vanilla kernel,
or one with other patches installed? Do you have SYSCTL compiled into
your kernel?
Good luck,
Frodo
--
Frodo Looijaard <frodol@…> PGP key and more:
Defenestration n. (formal or joc.):
The act of removing Windows from your computer in disgust, usually
followed
by the installation of Linux or some other Unix-like operating system.
Name: strace.out
strace.out Type: Plain Text (TEXT/PLAIN)
Encoding: BASE64
