All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] lm-sens 2.10.5 fschmd support
@ 2007-10-12  8:46 Hans de Goede
  2007-10-13 17:14 ` Jean Delvare
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hans de Goede @ 2007-10-12  8:46 UTC (permalink / raw)
  To: lm-sensors

Hi all,

I've just committed support for the new fschmd to trunk, so that it will be 
available in 2.10.5

It would be much appreciated if people who have an fsc chip could test the 
current trunk with it. I've been very carefull to make sure there will be no 
regressions.

Also a quick review would be nice.

Here is the changelog entry:

This patchset adds support for the new fschmd driver, while keeping
compatibility with the old:
-The feature lists for the fscpos, fscscy and fscher have been extended to
  include the new features exported by the fschmd driver
-Feature lists for the fschmd and fschrc have been added
-The print functions in "sensors" for the fscpos, fscscy and fscher have
  been modified to detect on which driver they run, on the old driver
  behaviour is unmodified, on the new driver the non sysfs-interface
  compliant attributes are not used and the extra features exported by the
  new driver are shown.
-print functions for the fschmd and fschrc have been added to "sensors"
-mapping from the non standard sysfs attr name fan#_ripple used by the old
  fscpos, fscscy and fscher drivers to the standard fan#_div used by the
  fschmd driver has been added to getsysname() using altsysname.


Thanks & Regards,

Hans


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] lm-sens 2.10.5 fschmd support
  2007-10-12  8:46 [lm-sensors] lm-sens 2.10.5 fschmd support Hans de Goede
@ 2007-10-13 17:14 ` Jean Delvare
  2007-10-14 11:57 ` Hans de Goede
  2007-10-15 13:17 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2007-10-13 17:14 UTC (permalink / raw)
  To: lm-sensors

Hi Hans,

On Fri, 12 Oct 2007 10:46:44 +0200, Hans de Goede wrote:
> I've just committed support for the new fschmd to trunk, so that it will be 
> available in 2.10.5
> 
> It would be much appreciated if people who have an fsc chip could test the 
> current trunk with it. I've been very carefull to make sure there will be no 
> regressions.
> 
> Also a quick review would be nice.

I've taken a look. Except for a few cosmetic fixes I already committed,
here are my concerns:

* In changeset 4938, you modified the fsc* support code in "sensors" to
  properly use the fault bit instead of the alarm bit to report faults.
  However this means that the alarms are no longer reported. This is a kind
  of regression. Could you please add alarm reporting?

* In changeset 4939:

> #define SENSORS_FSCHMD_FAN_FEATURES(nr) \ 
>         { { SENSORS_FSCHMD_FAN(nr), "fan" #nr, \ 
>                 NOMAP, NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(2), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_DIV(nr), "fan" #nr "_div", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_ALARM(nr), "fan" #nr "_alarm", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 }, \ 
>         { { SENSORS_FSCHMD_FAN_FAULT(nr), "fan" #nr "_fault", \ 
>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>                 NOSYSCTL, VALUE(1), 0 } 

fan#_div should be RW, right?

> /* give up, use old name (probably won't work though...) */
> /* known to be the same:
> 	"alarms", "beep_enable", "vrm", "fan%d_div" (except old fscxxx drivers
> 	which use fan%d_ripple, fixed using altsysname for new drv. GRR)
> */

I don't think that you should have added this comment. What the original
comment means is that fan%d_div in 2.4 drivers stays fan%d_div in 2.6,
which is true. Whether other names also become fan%d_div for some
drivers in 2.6 is irrelevant at this point and has already been handled
before.

>   /* no error on failure as we get used for various FSC chips and not all 
>      have the same amount of fan sensors */ 

>   /* no error on failure as we get used for various FSC chips and not all 
>      have the same amount of temp sensors */ 

You could adjust the loops in print_fschmd() based on the chip type to
fix this problem. This is what we do for other drivers.

Other than that, your patch looks OK, well done, it wasn't an easy one.

As a side note, I am curious how the fscher driver was supposed to work
before your patch. The driver creates fan#_div when libsensors lists
fan#_ripple. So unless I'm missing something, it probably just wasn't
working, and nobody ever bothered to report. Odd.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] lm-sens 2.10.5 fschmd support
  2007-10-12  8:46 [lm-sensors] lm-sens 2.10.5 fschmd support Hans de Goede
  2007-10-13 17:14 ` Jean Delvare
@ 2007-10-14 11:57 ` Hans de Goede
  2007-10-15 13:17 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2007-10-14 11:57 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:
> Hi Hans,
> 
> On Fri, 12 Oct 2007 10:46:44 +0200, Hans de Goede wrote:
>> I've just committed support for the new fschmd to trunk, so that it will be 
>> available in 2.10.5
>>
>> It would be much appreciated if people who have an fsc chip could test the 
>> current trunk with it. I've been very carefull to make sure there will be no 
>> regressions.
>>
>> Also a quick review would be nice.
> 
> I've taken a look. Except for a few cosmetic fixes I already committed,
> here are my concerns:
> 
> * In changeset 4938, you modified the fsc* support code in "sensors" to
>   properly use the fault bit instead of the alarm bit to report faults.
>   However this means that the alarms are no longer reported. This is a kind
>   of regression. Could you please add alarm reporting?
> 

Fixed.

> * In changeset 4939:
> 
>> #define SENSORS_FSCHMD_FAN_FEATURES(nr) \ 
>>         { { SENSORS_FSCHMD_FAN(nr), "fan" #nr, \ 
>>                 NOMAP, NOMAP, R }, \ 
>>                 NOSYSCTL, VALUE(2), 0 }, \ 
>>         { { SENSORS_FSCHMD_FAN_DIV(nr), "fan" #nr "_div", \ 
>>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>>                 NOSYSCTL, VALUE(1), 0 }, \ 
>>         { { SENSORS_FSCHMD_FAN_ALARM(nr), "fan" #nr "_alarm", \ 
>>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>>                 NOSYSCTL, VALUE(1), 0 }, \ 
>>         { { SENSORS_FSCHMD_FAN_FAULT(nr), "fan" #nr "_fault", \ 
>>                 SENSORS_FSCHMD_FAN(nr), NOMAP, R }, \ 
>>                 NOSYSCTL, VALUE(1), 0 } 
> 
> fan#_div should be RW, right?
> 

Right, thanks!

>> /* give up, use old name (probably won't work though...) */
>> /* known to be the same:
>> 	"alarms", "beep_enable", "vrm", "fan%d_div" (except old fscxxx drivers
>> 	which use fan%d_ripple, fixed using altsysname for new drv. GRR)
>> */
> 
> I don't think that you should have added this comment. What the original
> comment means is that fan%d_div in 2.4 drivers stays fan%d_div in 2.6,
> which is true. Whether other names also become fan%d_div for some
> drivers in 2.6 is irrelevant at this point and has already been handled
> before.
> 

Removed

>>   /* no error on failure as we get used for various FSC chips and not all 
>>      have the same amount of fan sensors */ 
> 
>>   /* no error on failure as we get used for various FSC chips and not all 
>>      have the same amount of temp sensors */ 
> 
> You could adjust the loops in print_fschmd() based on the chip type to
> fix this problem. This is what we do for other drivers.
> 
Done

> Other than that, your patch looks OK, well done, it wasn't an easy one.
> 
Thanks! Cycling home really helps :)

> As a side note, I am curious how the fscher driver was supposed to work
> before your patch. The driver creates fan#_div when libsensors lists
> fan#_ripple. So unless I'm missing something, it probably just wasn't
> working, and nobody ever bothered to report. Odd.
> 

It didn't work with "sensors -u", the normal "sensors" print code for the fsc 
chips using the old drivers doesn't show the divider, so there it worked fine.

Regards,

Hans

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] lm-sens 2.10.5 fschmd support
  2007-10-12  8:46 [lm-sensors] lm-sens 2.10.5 fschmd support Hans de Goede
  2007-10-13 17:14 ` Jean Delvare
  2007-10-14 11:57 ` Hans de Goede
@ 2007-10-15 13:17 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2007-10-15 13:17 UTC (permalink / raw)
  To: lm-sensors

On Sun, 14 Oct 2007 13:57:01 +0200, Hans de Goede wrote:
> Jean Delvare wrote:
> > As a side note, I am curious how the fscher driver was supposed to work
> > before your patch. The driver creates fan#_div when libsensors lists
> > fan#_ripple. So unless I'm missing something, it probably just wasn't
> > working, and nobody ever bothered to report. Odd.
> 
> It didn't work with "sensors -u", the normal "sensors" print code for the fsc 
> chips using the old drivers doesn't show the divider, so there it worked fine.

Ah, OK, that explains it. Thanks.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-15 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12  8:46 [lm-sensors] lm-sens 2.10.5 fschmd support Hans de Goede
2007-10-13 17:14 ` Jean Delvare
2007-10-14 11:57 ` Hans de Goede
2007-10-15 13:17 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.