* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
@ 2007-10-07 12:08 ` Hans de Goede
2007-10-07 14:59 ` Jean Delvare
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Hans de Goede @ 2007-10-07 12:08 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> Hi all,
>
> lm-sensors 2.10.4 is 3 months old now, so we should think about
> releasing 2.10.5. There are no big changes, as expected in a stable
> branch, but a good load of bugfixes. Proposed schedule:
>
> * October 10th: SVN freeze
> * October 11th-14th: testing
> * October 15th: release
>
<ugh> thats awefully short notice. I would really like to add support for the
new FSC driver, and fix things so that they will work with both the old and the
new drivers, but I don't think I'll get around to doing that before the 10th.
Any chance we could slip a couple of days if I don't get around to doing this
before the 10th?
---
While I'm talking about the FSC, currently the temp code for both the fscpos
and the fscher looks like this:
if (!sensors_get_label_and_valid(*name,SENSORS_FSCPOS_TEMP1,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_FSCPOS_TEMP1,&temp) &&
!sensors_get_feature(*name,SENSORS_FSCPOS_TEMP1_STATE,&state)) {
if (valid) {
print_label(label,10);
if((int) state & 0x01)
printf("\t%+6.2f C\n", temp);
else
printf("\tfailed\n");
}
} else
printf("ERROR: Can't get TEMP1 data!\n");
free(label);
Notice the SENSORS_FSCPOS_TEMP1_STATE, which is a sysfs attr file containing a
copy of the status register, the new driver doesn't have this. It has a
tempX_fault instead and adds a tempX_alarm.
So I'm thinking to just go the common denominater way here and only read and
display the temp (thus displaying something like 0 or 255 for not connected
sensors), does this sound ok?
---
For fans it reads:
if (!sensors_get_label_and_valid(*name,SENSORS_FSCPOS_FAN1,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_FSCPOS_FAN1,&fan) &&
!sensors_get_feature(*name,SENSORS_FSCPOS_FAN1_STATE,&state)) {
if (valid) {
print_label(label,10);
if((int) state & 0x04)
printf("\tfaulty\n");
else
printf("\t%6.0f RPM\n", fan);
}
} else
printf("ERROR: Can't get FAN1 data!\n");
free(label);
Again using a raw dump of the status register and dead wrong actually as 0x04
is not a fault bit but an alarm bit (rather major difference if you ask me).
Again I'm thinking to just go the common denominater way here and only read and
display the rpms (displaying 0 for a not connected fan) does this sound ok?
---
For the fscscy the temp code looks like this:
if (!sensors_get_label_and_valid(*name,SENSORS_FSCSCY_TEMP1,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1,&temp) &&
!sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_LIM,&templim) &&
!sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MIN,&tempmin) &&
!sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MAX,&tempmax) &&
!sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_STATE,&state)) {
if (valid) {
print_label(label,10);
if((int) state & 0x01)
printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n
temp,tempmin,tempmax,templim);
else
printf("\tfailed\n");
}
} else
printf("ERROR: Can't get TEMP1 data!\n");
free(label);
Again using a raw dump of the status register, and even worse using software
maintained min and max values, which are not limits, but the lowest / highest
value measured since the driver was loaded <ugh>.
Proposed solution once again: display only the temp and no other info, it would
be nice to preserve the display of the limit, but thats called temp#_lim, where
as in the new driver it is called temp#_max, which in the old driver was not a
limit as described above, so just displaying only the temp seems for the best.
---
Alternatively I could test for the readability of SENSORS_FSC***_TEMP1_STATE
and switch between the code for the old driver and new to be written code for
the new driver, that might be better as it will also reduce the chance of
regressions.
Any input much appreciated.
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
2007-10-07 12:08 ` Hans de Goede
@ 2007-10-07 14:59 ` Jean Delvare
2007-10-07 15:04 ` Hans de Goede
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2007-10-07 14:59 UTC (permalink / raw)
To: lm-sensors
Hi Hans,
On Sun, 07 Oct 2007 14:08:46 +0200, Hans de Goede wrote:
> Jean Delvare wrote:
> > Hi all,
> >
> > lm-sensors 2.10.4 is 3 months old now, so we should think about
> > releasing 2.10.5. There are no big changes, as expected in a stable
> > branch, but a good load of bugfixes. Proposed schedule:
> >
> > * October 10th: SVN freeze
> > * October 11th-14th: testing
> > * October 15th: release
>
> <ugh> thats awefully short notice.
The release date of 2.10.5 has been set to October 16th long ago:
http://www.lm-sensors.org/milestone/2.10.5
> I would really like to add support for the
> new FSC driver, and fix things so that they will work with both the old and the
> new drivers, but I don't think I'll get around to doing that before the 10th.
>
> Any chance we could slip a couple of days if I don't get around to doing this
> before the 10th?
Sure, no problem. As long as it doesn't shift too much, that's fine
with me.
> While I'm talking about the FSC, currently the temp code for both the fscpos
> and the fscher looks like this:
>
> if (!sensors_get_label_and_valid(*name,SENSORS_FSCPOS_TEMP1,&label,&valid) &&
> !sensors_get_feature(*name,SENSORS_FSCPOS_TEMP1,&temp) &&
> !sensors_get_feature(*name,SENSORS_FSCPOS_TEMP1_STATE,&state)) {
> if (valid) {
> print_label(label,10);
> if((int) state & 0x01)
> printf("\t%+6.2f C\n", temp);
> else
> printf("\tfailed\n");
> }
> } else
> printf("ERROR: Can't get TEMP1 data!\n");
> free(label);
>
> Notice the SENSORS_FSCPOS_TEMP1_STATE, which is a sysfs attr file containing a
> copy of the status register, the new driver doesn't have this. It has a
> tempX_fault instead and adds a tempX_alarm.
>
> So I'm thinking to just go the common denominater way here and only read and
> display the temp (thus displaying something like 0 or 255 for not connected
> sensors), does this sound ok?
Your change should not cause a regression. This means that you should
keep using the value read from the state file where available, and only
if not, display whatever bogus value the driver returned.
Alternatively, you could add new symbols for the fault files in
libsensors, so that you always have a way to get the information.
Whether it's worth doing when lm-sensors 3 offers full support out of
the box, is up to you.
> For fans it reads:
> if (!sensors_get_label_and_valid(*name,SENSORS_FSCPOS_FAN1,&label,&valid) &&
> !sensors_get_feature(*name,SENSORS_FSCPOS_FAN1,&fan) &&
> !sensors_get_feature(*name,SENSORS_FSCPOS_FAN1_STATE,&state)) {
> if (valid) {
> print_label(label,10);
> if((int) state & 0x04)
> printf("\tfaulty\n");
> else
> printf("\t%6.0f RPM\n", fan);
> }
> } else
> printf("ERROR: Can't get FAN1 data!\n");
> free(label);
>
> Again using a raw dump of the status register and dead wrong actually as 0x04
> is not a fault bit but an alarm bit (rather major difference if you ask me).
Please fix this bug.
> Again I'm thinking to just go the common denominater way here and only read and
> display the rpms (displaying 0 for a not connected fan) does this sound ok?
As above for temperatures, you shouldn't introduce a regression.
> For the fscscy the temp code looks like this:
> if (!sensors_get_label_and_valid(*name,SENSORS_FSCSCY_TEMP1,&label,&valid) &&
> !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1,&temp) &&
> !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_LIM,&templim) &&
> !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MIN,&tempmin) &&
> !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MAX,&tempmax) &&
> !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_STATE,&state)) {
> if (valid) {
> print_label(label,10);
> if((int) state & 0x01)
> printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n
> temp,tempmin,tempmax,templim);
> else
> printf("\tfailed\n");
> }
> } else
> printf("ERROR: Can't get TEMP1 data!\n");
> free(label);
>
> Again using a raw dump of the status register, and even worse using software
> maintained min and max values, which are not limits, but the lowest / highest
> value measured since the driver was loaded <ugh>.
This is confusing and should be removed.
> Proposed solution once again: display only the temp and no other info, it would
> be nice to preserve the display of the limit, but thats called temp#_lim, where
> as in the new driver it is called temp#_max, which in the old driver was not a
> limit as described above, so just displaying only the temp seems for the best.
You can translate temp#_lim to temp#_max in lib/chips.c.
> Alternatively I could test for the readability of SENSORS_FSC***_TEMP1_STATE
> and switch between the code for the old driver and new to be written code for
> the new driver, that might be better as it will also reduce the chance of
> regressions.
My point exactly :)
--
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
2007-10-07 12:08 ` Hans de Goede
2007-10-07 14:59 ` Jean Delvare
@ 2007-10-07 15:04 ` Hans de Goede
2007-10-15 21:09 ` Jean Delvare
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Hans de Goede @ 2007-10-07 15:04 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> Hi Hans,
>
> On Sun, 07 Oct 2007 14:08:46 +0200, Hans de Goede wrote:
>> Jean Delvare wrote:
>>> Hi all,
>>>
>>> lm-sensors 2.10.4 is 3 months old now, so we should think about
>>> releasing 2.10.5. There are no big changes, as expected in a stable
>>> branch, but a good load of bugfixes. Proposed schedule:
>>>
>>> * October 10th: SVN freeze
>>> * October 11th-14th: testing
>>> * October 15th: release
>> <ugh> thats awefully short notice.
>
> The release date of 2.10.5 has been set to October 16th long ago:
> http://www.lm-sensors.org/milestone/2.10.5
>
Ah, I never look there, I'll try to take a peek there now and then from now on.
>> Alternatively I could test for the readability of SENSORS_FSC***_TEMP1_STATE
>> and switch between the code for the old driver and new to be written code for
>> the new driver, that might be better as it will also reduce the chance of
>> regressions.
>
> My point exactly :)
>
Yes,
After writing all the stuff snipped above, pressing enter and giving it a
second thought, I've come to the conclusion that this way is both the easiest
and the best.
I'm working on integrating your driver review changes now (so that I can test
tomorrow when I have access to the actual hardware) and then I'll start working
on a userspace patch.
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (2 preceding siblings ...)
2007-10-07 15:04 ` Hans de Goede
@ 2007-10-15 21:09 ` Jean Delvare
2007-10-16 5:54 ` Hans de Goede
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2007-10-15 21:09 UTC (permalink / raw)
To: lm-sensors
On Sun, 07 Oct 2007 14:08:46 +0200, Hans de Goede wrote:
> Jean Delvare wrote:
> > Hi all,
> >
> > lm-sensors 2.10.4 is 3 months old now, so we should think about
> > releasing 2.10.5. There are no big changes, as expected in a stable
> > branch, but a good load of bugfixes. Proposed schedule:
> >
> > * October 10th: SVN freeze
> > * October 11th-14th: testing
> > * October 15th: release
>
> <ugh> thats awefully short notice. I would really like to add support for the
> new FSC driver, and fix things so that they will work with both the old and the
> new drivers, but I don't think I'll get around to doing that before the 10th.
>
> Any chance we could slip a couple of days if I don't get around to doing this
> before the 10th?
It looks like we're all done with merging stuff in trunk? So let the
testing phase begin. Updated schedule:
* October 15th: SVN freeze
* October 16th-21st: testing
* October 22nd: release
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (3 preceding siblings ...)
2007-10-15 21:09 ` Jean Delvare
@ 2007-10-16 5:54 ` Hans de Goede
2007-10-23 15:15 ` Jean Delvare
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Hans de Goede @ 2007-10-16 5:54 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> On Sun, 07 Oct 2007 14:08:46 +0200, Hans de Goede wrote:
>> Jean Delvare wrote:
>>> Hi all,
>>>
>>> lm-sensors 2.10.4 is 3 months old now, so we should think about
>>> releasing 2.10.5. There are no big changes, as expected in a stable
>>> branch, but a good load of bugfixes. Proposed schedule:
>>>
>>> * October 10th: SVN freeze
>>> * October 11th-14th: testing
>>> * October 15th: release
>> <ugh> thats awefully short notice. I would really like to add support for the
>> new FSC driver, and fix things so that they will work with both the old and the
>> new drivers, but I don't think I'll get around to doing that before the 10th.
>>
>> Any chance we could slip a couple of days if I don't get around to doing this
>> before the 10th?
>
> It looks like we're all done with merging stuff in trunk?
Atleast I am, yes.
> So let the
> testing phase begin. Updated schedule:
>
> * October 15th: SVN freeze
> * October 16th-21st: testing
> * October 22nd: release
>
Sounds good,
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (4 preceding siblings ...)
2007-10-16 5:54 ` Hans de Goede
@ 2007-10-23 15:15 ` Jean Delvare
2007-10-23 17:36 ` Philip Edelbrock
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2007-10-23 15:15 UTC (permalink / raw)
To: lm-sensors
On Mon, 15 Oct 2007 23:09:19 +0200, Jean Delvare wrote:
> It looks like we're all done with merging stuff in trunk? So let the
> testing phase begin. Updated schedule:
>
> * October 15th: SVN freeze
> * October 16th-21st: testing
> * October 22nd: release
I am done with testing, I've committed patches for the minor issues I
found while testing. So, as far as I am concerned, we are ready to
release.
Philip, will you have the time to do a lm-sensors release this week?
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (5 preceding siblings ...)
2007-10-23 15:15 ` Jean Delvare
@ 2007-10-23 17:36 ` Philip Edelbrock
2007-10-25 4:40 ` Philip Edelbrock
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Philip Edelbrock @ 2007-10-23 17:36 UTC (permalink / raw)
To: lm-sensors
On Oct 23, 2007, at 8:15 AM, Jean Delvare wrote:
> On Mon, 15 Oct 2007 23:09:19 +0200, Jean Delvare wrote:
>> It looks like we're all done with merging stuff in trunk? So let the
>> testing phase begin. Updated schedule:
>>
>> * October 15th: SVN freeze
>> * October 16th-21st: testing
>> * October 22nd: release
>
> I am done with testing, I've committed patches for the minor issues I
> found while testing. So, as far as I am concerned, we are ready to
> release.
>
> Philip, will you have the time to do a lm-sensors release this week?
Hi Jean, sure I'll try to get the release done today or tomorrow.
Phil
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (6 preceding siblings ...)
2007-10-23 17:36 ` Philip Edelbrock
@ 2007-10-25 4:40 ` Philip Edelbrock
2007-10-25 19:54 ` Jean Delvare
2007-10-26 1:18 ` Philip Edelbrock
9 siblings, 0 replies; 11+ messages in thread
From: Philip Edelbrock @ 2007-10-25 4:40 UTC (permalink / raw)
To: lm-sensors
On Oct 23, 2007, at 10:36 AM, Philip Edelbrock wrote:
>
> On Oct 23, 2007, at 8:15 AM, Jean Delvare wrote:
>
>> On Mon, 15 Oct 2007 23:09:19 +0200, Jean Delvare wrote:
>>> It looks like we're all done with merging stuff in trunk? So let the
>>> testing phase begin. Updated schedule:
>>>
>>> * October 15th: SVN freeze
>>> * October 16th-21st: testing
>>> * October 22nd: release
>>
>> I am done with testing, I've committed patches for the minor issues I
>> found while testing. So, as far as I am concerned, we are ready to
>> release.
>>
>> Philip, will you have the time to do a lm-sensors release this week?
>
> Hi Jean, sure I'll try to get the release done today or tomorrow.
>
>
> Phil
OK, the release is done. I did both an lm-sensors and i2c for 2.10.5.
Please check and make wiki/other changes as needed.
Phil
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (7 preceding siblings ...)
2007-10-25 4:40 ` Philip Edelbrock
@ 2007-10-25 19:54 ` Jean Delvare
2007-10-26 1:18 ` Philip Edelbrock
9 siblings, 0 replies; 11+ messages in thread
From: Jean Delvare @ 2007-10-25 19:54 UTC (permalink / raw)
To: lm-sensors
Hi Philip,
On Wed, 24 Oct 2007 21:40:52 -0700, Philip Edelbrock wrote:
> On Oct 23, 2007, at 10:36 AM, Philip Edelbrock wrote:
> > On Oct 23, 2007, at 8:15 AM, Jean Delvare wrote:
> >> Philip, will you have the time to do a lm-sensors release this week?
> >
> > Hi Jean, sure I'll try to get the release done today or tomorrow.
>
> OK, the release is done. I did both an lm-sensors and i2c for 2.10.5.
Great, thank you. You didn't tag the i2c repository though?
> Please check and make wiki/other changes as needed.
I've added a news item on the main page to announce the new release.
I've also posted an announcement on Freshmeat.
--
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] 11+ messages in thread* Re: [lm-sensors] Call for 2.10.5
2007-10-07 9:40 [lm-sensors] Call for 2.10.5 Jean Delvare
` (8 preceding siblings ...)
2007-10-25 19:54 ` Jean Delvare
@ 2007-10-26 1:18 ` Philip Edelbrock
9 siblings, 0 replies; 11+ messages in thread
From: Philip Edelbrock @ 2007-10-26 1:18 UTC (permalink / raw)
To: lm-sensors
On Oct 25, 2007, at 12:54 PM, Jean Delvare wrote:
> Hi Philip,
>
> On Wed, 24 Oct 2007 21:40:52 -0700, Philip Edelbrock wrote:
>> On Oct 23, 2007, at 10:36 AM, Philip Edelbrock wrote:
>>> On Oct 23, 2007, at 8:15 AM, Jean Delvare wrote:
>>>> Philip, will you have the time to do a lm-sensors release this
>>>> week?
>>>
>>> Hi Jean, sure I'll try to get the release done today or tomorrow.
>>
>> OK, the release is done. I did both an lm-sensors and i2c for 2.10.5.
>
> Great, thank you. You didn't tag the i2c repository though?
Good catch, thanks. Done. I also prep'ed the CHANGES and version
headers.
>
>> Please check and make wiki/other changes as needed.
>
> I've added a news item on the main page to announce the new release.
> I've also posted an announcement on Freshmeat.
OK, thanks.
Phil
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 11+ messages in thread