* Sensors (W83627HF) in Tyan S2882
@ 2004-04-19 12:01 Jan Kasprzak
2004-04-19 12:56 ` Marc Bevand
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Jan Kasprzak @ 2004-04-19 12:01 UTC (permalink / raw)
To: linux-kernel
Hello, world!\n
I have two systems with Tyan S2882 boards (K8S Pro). The sensors chip
is Winbond w83627hf according to the mainboard documentation. The w83627hf
driver can read values from the sensors, but apparently not all values.
The board has six fan connectors (two labeled CPU1 fan and CPU2 fan,
and four chassis fans). BIOS displays the fan status correctly for all fans,
so all fans are connected to the sensors chip. However, there are only three
fans listed in /sys/devices/platform/i2c-1/1-0290.
Is it possible to read status of other three fans from Linux?
Thanks,
-Yenya
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Czech Linux Homepage: http://www.linux.cz/ |
Any compiler or language that likes to hide things like memory allocations
behind your back just isn't a good choice for a kernel. --Linus Torvalds
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 12:01 Sensors (W83627HF) in Tyan S2882 Jan Kasprzak
@ 2004-04-19 12:56 ` Marc Bevand
2004-04-19 13:37 ` Fabian Fenaut
[not found] ` <200404191338.i3JDcBna029336@anor.ics.muni.cz>
2 siblings, 0 replies; 18+ messages in thread
From: Marc Bevand @ 2004-04-19 12:56 UTC (permalink / raw)
To: linux-kernel
Jan Kasprzak wrote:
> Hello, world!\n
>
> I have two systems with Tyan S2882 boards (K8S Pro). The sensors chip
> is Winbond w83627hf according to the mainboard documentation. The w83627hf
> driver can read values from the sensors, but apparently not all values.
> The board has six fan connectors (two labeled CPU1 fan and CPU2 fan,
> and four chassis fans). BIOS displays the fan status correctly for all fans,
> so all fans are connected to the sensors chip. However, there are only three
> fans listed in /sys/devices/platform/i2c-1/1-0290.
On the S2885 (not your model), 2 fans are handled by the w83627hf, and 4 others
by an adt7463. I see that the S2882 has an adm1027, maybe this is the chip that
handles your 3 others fans ?
--
Marc Bevand http://www.epita.fr/~bevand_m
Computer Science School EPITA - System, Network and Security Dept.
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 12:01 Sensors (W83627HF) in Tyan S2882 Jan Kasprzak
2004-04-19 12:56 ` Marc Bevand
@ 2004-04-19 13:37 ` Fabian Fenaut
[not found] ` <200404191338.i3JDcBna029336@anor.ics.muni.cz>
2 siblings, 0 replies; 18+ messages in thread
From: Fabian Fenaut @ 2004-04-19 13:37 UTC (permalink / raw)
To: Jan Kasprzak; +Cc: linux-kernel
Jan Kasprzak a écrit le 19.04.2004 14:01:
>
> I have two systems with Tyan S2882 boards (K8S Pro). The sensors chip is
> Winbond w83627hf according to the mainboard documentation. The w83627hf
> driver can read values from the sensors, but apparently not all values. The
> board has six fan connectors (two labeled CPU1 fan and CPU2 fan, and four
> chassis fans). BIOS displays the fan status correctly for all fans, so all
> fans are connected to the sensors chip. However, there are only three fans
> listed in /sys/devices/platform/i2c-1/1-0290.
Probably unrelated to your problem, but isn't there a typo in
drivers/i2c/chips/Kconfig ? maybe patch below ?
--
Fabian
diff -Nru drivers/i2c/chips/Kconfig.orig drivers/i2c/chips/Kconfig
--- drivers/i2c/chips/Kconfig.orig Fri Apr 16 11:12:17 2004
+++ drivers/i2c/chips/Kconfig Mon Apr 19 15:23:48 2004
@@ -158,7 +158,7 @@
will be called via686a.
config SENSORS_W83781D
- tristate "Winbond W83781D, W83782D, W83783S, W83627HF, Asus AS99127F"
+ tristate "Winbond W83781D, W83782D, W83783S, W83682HF, Asus AS99127F"
depends on I2C && EXPERIMENTAL
select I2C_SENSOR
help
^ permalink raw reply [flat|nested] 18+ messages in thread[parent not found: <200404191338.i3JDcBna029336@anor.ics.muni.cz>]
* Re: Sensors (W83627HF) in Tyan S2882
[not found] ` <200404191338.i3JDcBna029336@anor.ics.muni.cz>
@ 2004-04-19 19:30 ` Jan Kasprzak
0 siblings, 0 replies; 18+ messages in thread
From: Jan Kasprzak @ 2004-04-19 19:30 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: linux-kernel
Fabian Fenaut wrote:
: Jan Kasprzak a écrit le 19.04.2004 14:01:
: >
: >I have two systems with Tyan S2882 boards (K8S Pro). The sensors chip is
: >Winbond w83627hf according to the mainboard documentation. The w83627hf
: >driver can read values from the sensors, but apparently not all values. The
: >board has six fan connectors (two labeled CPU1 fan and CPU2 fan, and four
: >chassis fans). BIOS displays the fan status correctly for all fans, so all
: >fans are connected to the sensors chip. However, there are only three fans
: >listed in /sys/devices/platform/i2c-1/1-0290.
:
:
: Probably unrelated to your problem, but isn't there a typo in
: drivers/i2c/chips/Kconfig ? maybe patch below ?
:
Yes, I had CONFIG_SENSORS_W83781D=y. I have recompiled with
CONFIG_SENSORS_W83627HF=y and without CONFIG_SENSORS_W83781D, but the new
kernel still can see only three fans.
-Yenya
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/ Czech Linux Homepage: http://www.linux.cz/ |
Any compiler or language that likes to hide things like memory allocations
behind your back just isn't a good choice for a kernel. --Linus Torvalds
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
@ 2004-04-19 15:18 Jean Delvare
2004-04-19 15:59 ` Fabian Fenaut
[not found] ` <200404191600.i3JG0ElX089970@zone3.gcu-squad.org>
0 siblings, 2 replies; 18+ messages in thread
From: Jean Delvare @ 2004-04-19 15:18 UTC (permalink / raw)
To: Fabian Fenaut, Greg KH; +Cc: LKML
Hi Fabian,
> Probably unrelated to your problem, but isn't there a typo in
> drivers/i2c/chips/Kconfig ? maybe patch below ?
>
> diff -Nru drivers/i2c/chips/Kconfig.orig drivers/i2c/chips/Kconfig
> --- drivers/i2c/chips/Kconfig.orig Fri Apr 16 11:12:17 2004
> +++ drivers/i2c/chips/Kconfig Mon Apr 19 15:23:48 2004
> @@ -158,7 +158,7 @@
> will be called via686a.
>
> config SENSORS_W83781D
> - tristate "Winbond W83781D, W83782D, W83783S, W83627HF, Asus
AS99127F"
> + tristate "Winbond W83781D, W83782D, W83783S, W83682HF, Asus
AS99127F"
> depends on I2C && EXPERIMENTAL
> select I2C_SENSOR
> help
Nice catching. However the fix is not correct. "W83627HF" is the correct
name and "W83682HF" is the typo.
Care to send the correct fix to Greg? Please CC: me or the lm_sensors
mailing-list so that I can enqueue the patch on my side.
Thanks.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 15:18 Jean Delvare
@ 2004-04-19 15:59 ` Fabian Fenaut
2004-04-19 16:07 ` Fabian Fenaut
[not found] ` <200404191600.i3JG0ElX089970@zone3.gcu-squad.org>
1 sibling, 1 reply; 18+ messages in thread
From: Fabian Fenaut @ 2004-04-19 15:59 UTC (permalink / raw)
To: Jean Delvare; +Cc: Greg KH, LKML
Jean Delvare a écrit le 19.04.2004 17:18:
> Hi Fabian,
>
>>diff -Nru drivers/i2c/chips/Kconfig.orig drivers/i2c/chips/Kconfig
>>--- drivers/i2c/chips/Kconfig.orig Fri Apr 16 11:12:17 2004
>>+++ drivers/i2c/chips/Kconfig Mon Apr 19 15:23:48 2004
>>@@ -158,7 +158,7 @@
>> will be called via686a.
>>
>> config SENSORS_W83781D
>>- tristate "Winbond W83781D, W83782D, W83783S, W83627HF, Asus AS99127F"
>>+ tristate "Winbond W83781D, W83782D, W83783S, W83682HF, Asus AS99127F"
>> depends on I2C && EXPERIMENTAL
>> select I2C_SENSOR
>> help
>
>
> Nice catching. However the fix is not correct. "W83627HF" is the correct
> name and "W83682HF" is the typo.
You sure ? Looks like W83627HF is handled by the 2nd one, no ?
^ permalink raw reply [flat|nested] 18+ messages in thread[parent not found: <200404191600.i3JG0ElX089970@zone3.gcu-squad.org>]
* Re: Sensors (W83627HF) in Tyan S2882
[not found] ` <200404191600.i3JG0ElX089970@zone3.gcu-squad.org>
@ 2004-04-19 17:01 ` Jean Delvare
2004-04-19 17:19 ` Fabian Fenaut
0 siblings, 1 reply; 18+ messages in thread
From: Jean Delvare @ 2004-04-19 17:01 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: greg, linux-kernel
> > Nice catching. However the fix is not correct. "W83627HF" is the
> > correct name and "W83682HF" is the typo.
>
> You sure ? Looks like W83627HF is handled by the 2nd one, no ?
Sure. Both drivers handle it. The w83267hf driver is prefered if the
chip is found on the ISA bus, however the w83781d is the only one that
can handle the chip if it's on the I2C bus.
For a list of supported chips for each driver, you can take a look at
the comments in the headers of the source files.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 17:01 ` Jean Delvare
@ 2004-04-19 17:19 ` Fabian Fenaut
2004-04-19 17:50 ` Jean Delvare
0 siblings, 1 reply; 18+ messages in thread
From: Fabian Fenaut @ 2004-04-19 17:19 UTC (permalink / raw)
To: sensors; +Cc: greg, linux-kernel
Jean Delvare wrote:
>>> Nice catching. However the fix is not correct. "W83627HF" is the
>>> correct name and "W83682HF" is the typo.
>>
>> You sure ? Looks like W83627HF is handled by the 2nd one, no ?
>
> Sure. Both drivers handle it. The w83267hf driver is prefered if the
> chip is found on the ISA bus, however the w83781d is the only one
> that can handle the chip if it's on the I2C bus.
>
> For a list of supported chips for each driver, you can take a look at
> the comments in the headers of the source files.
Ok, so I suppose this is the appropriate patch :
--- drivers/i2c/chips/Kconfig.orig 2004-04-19 19:05:53.000000000 +0200
+++ drivers/i2c/chips/Kconfig 2004-04-19 19:10:15.000000000 +0200
@@ -163,7 +163,7 @@
select I2C_SENSOR
help
If you say yes here you get support for the Winbond W8378x series
- of sensor chips: the W83781D, W83782D, W83783S and W83682HF,
+ of sensor chips: the W83781D, W83782D, W83783S and W83627HF,
and the similar Asus AS99127F.
This driver can also be built as a module. If so, the module
--
Fabian
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 17:19 ` Fabian Fenaut
@ 2004-04-19 17:50 ` Jean Delvare
2004-04-19 18:23 ` Fabian Fenaut
0 siblings, 1 reply; 18+ messages in thread
From: Jean Delvare @ 2004-04-19 17:50 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: sensors, greg, linux-kernel
> Ok, so I suppose this is the appropriate patch :
Except that it doesn't apply, yes ;)
I suspect that your email client is converting tabs to spaces.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 17:50 ` Jean Delvare
@ 2004-04-19 18:23 ` Fabian Fenaut
2004-04-19 18:49 ` Jean Delvare
0 siblings, 1 reply; 18+ messages in thread
From: Fabian Fenaut @ 2004-04-19 18:23 UTC (permalink / raw)
To: sensors; +Cc: greg, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
Jean Delvare wrote:
>> Ok, so I suppose this is the appropriate patch :
>
> Except that it doesn't apply, yes ;)
>
> I suspect that your email client is converting tabs to spaces.
Sorry, see attachment.
--
Fabian
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 490 bytes --]
--- drivers/i2c/chips/Kconfig.orig 2004-04-19 19:05:53.000000000 +0200
+++ drivers/i2c/chips/Kconfig 2004-04-19 19:10:15.000000000 +0200
@@ -163,7 +163,7 @@
select I2C_SENSOR
help
If you say yes here you get support for the Winbond W8378x series
- of sensor chips: the W83781D, W83782D, W83783S and W83682HF,
+ of sensor chips: the W83781D, W83782D, W83783S and W83627HF,
and the similar Asus AS99127F.
This driver can also be built as a module. If so, the module
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 18:23 ` Fabian Fenaut
@ 2004-04-19 18:49 ` Jean Delvare
2004-04-19 19:57 ` Fabian Fenaut
0 siblings, 1 reply; 18+ messages in thread
From: Jean Delvare @ 2004-04-19 18:49 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: sensors, greg, linux-kernel
> > Except that it doesn't apply, yes ;)
> >
> > I suspect that your email client is converting tabs to spaces.
>
> Sorry, see attachment.
I forgot to tell you... Patches are prefered in such a form that patch
-p1 from inside the linux directory works. Yours don't. I don't think
Greg will like it. That said, I don't think Greg likes patches as
attachements anyway ;)
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 18:49 ` Jean Delvare
@ 2004-04-19 19:57 ` Fabian Fenaut
2004-04-19 20:09 ` Jean Delvare
2004-05-02 5:42 ` Greg KH
0 siblings, 2 replies; 18+ messages in thread
From: Fabian Fenaut @ 2004-04-19 19:57 UTC (permalink / raw)
To: sensors; +Cc: greg, linux-kernel
Jean Delvare wrote:
>>> Except that it doesn't apply, yes ;)
>>>
>>> I suspect that your email client is converting tabs to spaces.
>>
>> Sorry, see attachment.
>
>
> I forgot to tell you... Patches are prefered in such a form that
> patch -p1 from inside the linux directory works. Yours don't. I don't
> think Greg will like it. That said, I don't think Greg likes patches
> as attachements anyway ;)
Ok, same player shoot again...
--- linux-2.6.5/drivers/i2c/chips/Kconfig 2004-04-19 21:21:19.000000000
+0200
+++ edit/drivers/i2c/chips/Kconfig 2004-04-19 21:21:53.000000000 +0200
@@ -163,7 +163,7 @@
select I2C_SENSOR
help
If you say yes here you get support for the Winbond W8378x series
- of sensor chips: the W83781D, W83782D, W83783S and W83682HF,
+ of sensor chips: the W83781D, W83782D, W83783S and W83627HF,
and the similar Asus AS99127F.
This driver can also be built as a module. If so, the module
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 19:57 ` Fabian Fenaut
@ 2004-04-19 20:09 ` Jean Delvare
2004-05-02 5:42 ` Greg KH
1 sibling, 0 replies; 18+ messages in thread
From: Jean Delvare @ 2004-04-19 20:09 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: sensors, greg, linux-kernel
> Ok, same player shoot again...
Just perfect :) Thanks.
Greg, please apply. Thanks.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-04-19 19:57 ` Fabian Fenaut
2004-04-19 20:09 ` Jean Delvare
@ 2004-05-02 5:42 ` Greg KH
2004-05-02 12:01 ` Jean Delvare
1 sibling, 1 reply; 18+ messages in thread
From: Greg KH @ 2004-05-02 5:42 UTC (permalink / raw)
To: Fabian Fenaut; +Cc: sensors, linux-kernel
On Mon, Apr 19, 2004 at 09:57:22PM +0200, Fabian Fenaut wrote:
> Jean Delvare wrote:
> >>>Except that it doesn't apply, yes ;)
> >>>
> >>>I suspect that your email client is converting tabs to spaces.
> >>
> >>Sorry, see attachment.
> >
> >
> >I forgot to tell you... Patches are prefered in such a form that
> >patch -p1 from inside the linux directory works. Yours don't. I don't
> >think Greg will like it. That said, I don't think Greg likes patches
> >as attachements anyway ;)
>
>
> Ok, same player shoot again...
For some reason this patch doesn't apply at all. Care to rediff against
the next -mm release and resend it to me?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-05-02 5:42 ` Greg KH
@ 2004-05-02 12:01 ` Jean Delvare
2004-05-05 22:17 ` Greg KH
0 siblings, 1 reply; 18+ messages in thread
From: Jean Delvare @ 2004-05-02 12:01 UTC (permalink / raw)
To: Greg KH; +Cc: fabian.fenaut, sensors, linux-kernel
> For some reason this patch doesn't apply at all. Care to rediff
> against the next -mm release and resend it to me?
Actually the patch wasn't as perfect as I first thought, there were
still indentation issues. I had to rework it a bit so that it would
apply. Here is my modified version.
Thanks.
--- linux-2.6.5/drivers/i2c/chips/Kconfig 2004-04-19 21:21:19.000000000 +0200
+++ edit/drivers/i2c/chips/Kconfig 2004-04-19 21:21:53.000000000 +0200
@@ -163,7 +163,7 @@
select I2C_SENSOR
help
If you say yes here you get support for the Winbond W8378x series
- of sensor chips: the W83781D, W83782D, W83783S and W83682HF,
+ of sensor chips: the W83781D, W83782D, W83783S and W83627HF,
and the similar Asus AS99127F.
This driver can also be built as a module. If so, the module
--
Jean Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
2004-05-02 12:01 ` Jean Delvare
@ 2004-05-05 22:17 ` Greg KH
0 siblings, 0 replies; 18+ messages in thread
From: Greg KH @ 2004-05-05 22:17 UTC (permalink / raw)
To: sensors; +Cc: fabian.fenaut, linux-kernel
On Sun, May 02, 2004 at 02:01:58PM +0200, Jean Delvare wrote:
> > For some reason this patch doesn't apply at all. Care to rediff
> > against the next -mm release and resend it to me?
>
> Actually the patch wasn't as perfect as I first thought, there were
> still indentation issues. I had to rework it a bit so that it would
> apply. Here is my modified version.
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Sensors (W83627HF) in Tyan S2882
@ 2004-04-20 14:34 Jean Delvare
0 siblings, 0 replies; 18+ messages in thread
From: Jean Delvare @ 2004-04-20 14:34 UTC (permalink / raw)
To: Jan Kasprzak; +Cc: LKML
Hi Jan,
> Yes, I had CONFIG_SENSORS_W83781D=y. I have recompiled with
> CONFIG_SENSORS_W83627HF=y and without CONFIG_SENSORS_W83781D, but the
> new kernel still can see only three fans.
I think you need to include the w83627hf driver (for the Winbond
W83627HF chip) and the lm85 driver (for the Analog Devices ADM1027
chip). Don't forget to include the i2c-amd756 and i2c-amd8111 drivers
as well, since the ADM1027 chip has to be connected to either of these
busses.
Hope that helps.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2004-05-05 22:20 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-19 12:01 Sensors (W83627HF) in Tyan S2882 Jan Kasprzak
2004-04-19 12:56 ` Marc Bevand
2004-04-19 13:37 ` Fabian Fenaut
[not found] ` <200404191338.i3JDcBna029336@anor.ics.muni.cz>
2004-04-19 19:30 ` Jan Kasprzak
-- strict thread matches above, loose matches on Subject: below --
2004-04-19 15:18 Jean Delvare
2004-04-19 15:59 ` Fabian Fenaut
2004-04-19 16:07 ` Fabian Fenaut
[not found] ` <200404191600.i3JG0ElX089970@zone3.gcu-squad.org>
2004-04-19 17:01 ` Jean Delvare
2004-04-19 17:19 ` Fabian Fenaut
2004-04-19 17:50 ` Jean Delvare
2004-04-19 18:23 ` Fabian Fenaut
2004-04-19 18:49 ` Jean Delvare
2004-04-19 19:57 ` Fabian Fenaut
2004-04-19 20:09 ` Jean Delvare
2004-05-02 5:42 ` Greg KH
2004-05-02 12:01 ` Jean Delvare
2004-05-05 22:17 ` Greg KH
2004-04-20 14:34 Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox