From: Christian Emmerich Date: Tue, 10 Jul 2007 19:44:25 +0000 Subject: Re: [lm-sensors] Help needed for implementing&testing Fintek F75375 Message-Id: <80743.59813.qm@web25110.mail.ukl.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="0-892538531-1184096665=:59813" List-Id: References: <5327.79319.qm@web25109.mail.ukl.yahoo.com> In-Reply-To: <5327.79319.qm@web25109.mail.ukl.yahoo.com> To: lm-sensors@vger.kernel.org --0-892538531-1184096665=:59813 Content-Type: multipart/alternative; boundary="0-1846721365-1184096665=:59813" --0-1846721365-1184096665=:59813 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Jean, > The reject message explained that you shouldn't be sending HTML mails. > This makes your mails more than twice as big as they should, and that > explains the reject. Sorry, i'm not able to change it. I'm using just a freemail account. > Sounds like a bug in the driver then. Setting pwm1_enable to 0 should > turn the fan to full speed. Fixed, using new driver version lets the fan turn to full speed. > > I try to set limits in sensors.conf but i could see no change. > > You must run "sensors -s" after changing the limits > in /etc/sensors.conf for the new limits to be applied. Please test this, > this is a good way to test both the libsensors code you added, and the > driver itself. After using "sensors -s" i can see the limits i set in sensors.conf (e.g. "= VCC: +1.72 V (min =3D +1.65 V, max =3D +1.85 V)"). But a inx_alarm is missing, so i see only the values. What would be a good value for the sensors.conf.eg entry e.g. set in0_min 1.72 * 0.95 set in0_max 1.72 * 1.05 ? > > > Lastly, you really shouldn't have to divide the values by 1000. This > > > suggests that the magnitude wasn't set properly in libsensors (it > > > should be 3, I suggest it is 0). This issue is most probably related = to > > > the incorrect symbol names. > > > > I saw values >800V so i thought i have to divide it by 1000 in sensors.= conf. > > Magnitude is 3 and the symbol name is correct now, but the values are s= till > > over 800V. What's the reason? > > I guess that's a bug in the driver. What values do you see in the > in*_input sysfs files? Fixed, if i use the new driver version i can see correct values (e.g. 1.72V= ). > > > This means that the driver isn't reporting the values in RPM as it > > > should. Usually no compute statement is needed for fans. > > > > That's correct, the value is not in RPM, in the document '2005111153128= .pdf' you can download on the fintek page > > ( http://www.fintek.com.tw/eng/products.asp?BID=3D4&SID=3D5 )its writte= n on page 8: > > "Determine the fan counter according to: > > Count =3D (1.5=D710^6) / RPM " > > That means that the driver is reporting the count value, not the rpm. > > So i have to compute in sensors.conf: > > RPM =3D (1.5=D710^6)/ Count > > Almost all chips do that, but that's not the point. Our sysfs-interface > standard says that the conversion to RPM must occur in the driver and > not in user-space. So the f75375 driver needs to be updated. Fixed, if i use the new driver version i can see correct values (e.g. 2329 = RPM). > > > +#define SENSORS_F75373_FAN_FEATURES(nr) \ > > > + { { SENSORS_F75373_FAN(nr), "fan" #nr, \ > > > + NOMAP, NOMAP, R }, \ > > > + NOSYSCTL, VALUE(2), 0 }, \ > > > + { { SENSORS_F75373_FAN_MAX(nr), "fan" #nr "_max", \ > > > + SENSORS_F75373_FAN(nr), SENSORS_F75373_FAN(nr), RW }= , \ > > > + NOSYSCTL, VALUE(1), 0 }, \ > > > > > > Strange, I've never seen a fan speed sensor with a high limit. What > > > does it correspond to exactly? Why don't you display this value in > > > "sensors"? > > > > I get the information out of the documentation on page 26: > > "When power on, the PWMOUT1 will output full duty cycle (FFh) to > > enable system FAN. After 10 seconds when detecting FANIN1 > > signal, assuming the fan has been fully turned on, the fan speed > > count detected will be recorded in the register.". > > Dunno if it should be removed? > > Oh, I see, it is recording the maximum possible speed. It should be > marked read-only then, I guess. I am also reluctant to naming this > feature fan1_max, even if we don't use that name yet, because the _max > suffix is only used for limits at the moment so it might be confusing > to use _max for something else now. Maybe fan1_full? This should be > discussed separately. In the meantime, I suggest that you omit this > value in libsensors. I have omited the fan1_max/_full part. > > > + { { SENSORS_F75373_FAN_MIN(nr), "fan" #nr "_min", \ > > > + SENSORS_F75373_FAN(nr), NOMAP, R }, \ > > > + NOSYSCTL, VALUE(1), 0 } > > > > > > SENSORS_F75373_FAN(nr) instead of NOMAP. > > > > > > Is it really read-only? > > > > I changed it to SENSORS_F75373_FAN(nr), it is RW. > > But fanX_min is allways zero, so it lead to an error on calling > > 'sensors_get_feature(*name, SENSORS_F75373_FAN_MIN(i), &min)', > > i have to disable it, sensors output is now > > CPU Fan: 1866 RPM (min =3D 0 RPM) > > to > > CPU Fan: 1866 RPM > > fan1_min =3D 0 isn't an error per se. If you see an error, then something > else must be wrong. Can you read the value from fan1_min directly from > sysfs? Yes, i read 0 directly from sysfs, but i can set another value, i've discus= sed it with Riku Voipio, the author of the driver, he said maybe my bios is= setting it to zero. Should the fanx_min value be displayed using sensors (e.g. "CPU Fan: 1866 = RPM (min =3D 4242 RPM)" ) ? > > > > I only copied it from SENSORS_DME1737_PWM_FEATURES, should i remove it? > > Ah, I hadn't noticed that the DME1737 had definitions for PWM. It's > more of an exception than the rule. So yes, please remove the PWM stuff. I deleted the PWM- stuff. > > > + if (valid) { > > > + print_label(label, 10); > > > + print_temp_info(cur, max, 0, HYST , 0, 0); > > > + printf("%s\n", alarm ? "ALARM" : ""); > > > + } > > > > > > This doesn't make sense. What is SENSORS_F75373_TEMP_HYST exactly? Why > > > do you display it as an alarm? > > > > It was a mistake, i deleted the Alarm output, now it is only printf("\n= "), > > there seems not to be a value for an alarm. > > temp1_max_hyst is always zero, i don't now what it is exactly and > > when it is not zero. > > temp1_max_hyst is supposed to represent the hysteresis temperature > value for the temp1_max limit, and the value should be passed as the > 3rd argument to print_temp_info(). If it reads 0, maybe that's a driver > bug. Again, try reading the value directly from sysfs. And please > report the problems you find to the driver author so that he can fix > them. > tempx_max_hyst is always zero: root@pc:/sys/devices/pci0000:00/0000:00:01.1/i2c-2/2-002d# cat temp1_max_hy= st 0 but i can set it by hand. It's now shown ( e.g. "CPU Temp: +47=B0C (hig= h =3D +54=B0C, hyst =3D +41=B0C)" ). > > ERROR: Can't get feature `fan1_min' data! > > CPU PWM: 31.00 (pwm1) > > What's the reason? Did I still have to use "F75373"? > > I see. This suggests that the driver itself identifies the chip as > F75373, and that's not correct. You need to put "f75373" in sensors, > and the driver needs to be updated in the same way. Fixed in the driver. > > > Also, what about the F75375 support? As far as I know the f75375s > > > driver > > > supports both chips, so it'd be nice to have user-space support for > > > both. Also, it might be less confusing to use F75375 for all the > > > libsensors defines, rather than F75373, so that they match the driver > > > name. > > > > I changed every define/function from F75373 to F75375, i added also: > > #define SENSORS_F75373_PREFIX "f75373" > > #define SENSORS_F75375_PREFIX "f75375" > > and > > { SENSORS_F75375_PREFIX, f75375_features }, > > { SENSORS_F75373_PREFIX, f75375_features }, > > and > > { "F75375", print_f75375 }, > > { "F75373", print_f75375 }, > > Except for the leading capital, yes, it's OK. That being said, what's > the difference between the F75373 and the F75375? If the F75375 has > less inputs, then you'll need to adjust the code in "sensors" to not > try to display the missing inputs. Fixed i can now use f75375 & f75373. best regards christian. =20 --------------------------------- Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihr= er Startseite! --0-1846721365-1184096665=:59813 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Jean,

> The reject message explained that you shouldn't be sendin= g HTML mails.
> This makes your mails more than twice as big as the= y should, and that
> explains the reject.
Sorry, i'm not able = to change it. I'm using just a freemail account.

> Sounds like a bug in the driver then. Setting pwm1_enab= le to 0 should
> turn the fan to full speed.
Fixed, using new driver version lets the fan turn to full speed.=

> > I try to set limits in = sensors.conf but i could see no change.
>
> You must run "s= ensors -s" after changing the limits
> in /etc/sensors.conf for the= new limits to be applied. Please test this,
> this is a good way t= o test both the libsensors code you added, and the
> driver itself.=
After using "sensors -s" i can see the limits i set in sensors.conf (e.g. "VCC: +1.72 V (min =3D +1.65 V, max= =3D +1.85 V)").
But a inx_alarm is missing, so i see only the values.=
What would be a good value for the sensors.conf.eg entry e.g.<= br style=3D"font-family: courier;">se= t in0_min   1.72 * 0.95
set in0_max   1.72 * 1.05 = ?

> > > Lastly, you reall= y shouldn't have to divide the values by 1000. This
> > > sug= gests that the magnitude wasn't set properly in libsensors (it
> > > should be 3, I suggest it i= s 0). This issue is most probably related to
> > > the incorr= ect symbol names.
> >
= > > I saw values >800V so i = thought i have to divide it by 1000 in sensors.conf.
> > Magnitu= de is 3 and the symbol name is correct now, but the values are still=
&= gt; > over 800V. What's the reason?
>
> I guess that's a= bug in the driver. What values do you see in the
> in*_input sysfs files?
Fixed, if i use the new drive= r version i can see correct values (e.g. 1.72V).

> > > This means that the driver isn't reporting th= e values in RPM as it
> > > should. Usually no compute statem= ent is needed for fans.
> >
> > That's correct, the v= alue is not in RPM, in the document '2005111153128.pdf' you can download on= the fintek page
> > ( http://www.fintek.com.tw/eng/products.asp?BID=3D4&SID=3D5 )its written= on page 8:
> > "Determine the fan counter according to:<= br style=3D"font-family: courier;">&g= t; > Count =3D (1.5=D710^6) / RPM "
> > That means that the d= river is reporting the count value, not the rpm.
> > So i have t= o compute in sensors.conf:
> > RPM =3D (1.5=D710^6)/ Count
= >
> Almost all chips do that, but that's not the point. Our sysf= s-interface
> standard says that th= e conversion to RPM must occur in the driver and
> not in user-spac= e. So the f75375 driver needs to be updated.
Fixed, if i use the new d= river version i can see correct values (e.g. 2329 RPM).

> > > +#define SENSORS_F75373_FAN_FEATURES(n= r) \
> > > +        { { SE= NSORS_F75373_FAN(nr), "fan" #nr, \
> > > +   &= nbsp;            NOM= AP, NOMAP, R }, \

>= > > +          &nb= sp;     NOSYSCTL, VALUE(2), 0 }, \
> > > = +        { { SENSORS_F75373_FAN_MAX(nr),= "fan" #nr "_max", \
> > > +     &n= bsp;          SENSORS_F75373_F= AN(nr), SENSORS_F75373_FAN(nr), RW }, \
> > > +  &n= bsp;            = ; NOSYSCTL, VALUE(1), 0 }, \
> > >
> > > Strange, I've never seen a = fan speed sensor with a high limit. What
> > > does it corres= pond to exactly? Why don't you display this value in
> > > "s= ensors"?
> >
> > I get the information out of the doc= umentation on page 26:
> > "When power on, the PWMOUT1 will outp= ut full duty cycle (FFh) to
> > enable system FAN. After 10 seco= nds when detecting FANIN1
> > signal, assuming the fan has been fully turned on, the fan speed>= > count detected will be recorded in the register.".
> > Dun= no if it should be removed?
>
> Oh, I see, it is recording = the maximum possible speed. It should be
> marked read-only then, I= guess. I am also reluctant to naming this
> feature fan1_max, even= if we don't use that name yet, because the _max
> suffix is only u= sed for limits at the moment so it might be confusing
> to use _max for something else now. Maybe fan1_full= ? This should be
> discussed separately. In the meantime, I suggest= that you omit this
> value in libsensors.
I have omited the= fan1_max/_full part.

> > = > +        { { SENSORS_F75373_FAN_MIN= (nr), "fan" #nr "_min", \
> > > +    &nbs= p;           SENSORS_F753= 73_FAN(nr), NOMAP, R }, \
>= > > +          &nb= sp;     NOSYSCTL, VALUE(1), 0 }
> > >
> > = >
> > > Is it really read-only?
> >
> &= gt; I changed it to SENSORS_F75373_FAN(nr), it is RW.
> > But fa= nX_min is allways zero, so it lead to an error on calling
> > 'sensors_get_feature(*name, SENSORS_F75373_FAN_M= IN(i), &min)',
> > i have to disable it, sensors output is n= ow
> > CPU Fan:  1866 RPM  (min =3D    = 0 RPM)
> > to
> > CPU Fan:  1866 RPM
>
> fan1_min =3D 0 isn't an error per se. If you see an error, then so= mething
> else must be wrong. Can you read the value from fan1_min directly from
> sysfs?
Yes, i re= ad 0 directly from sysfs, but i can set another value, i've discussed it wi= th Riku Voipio, the author of the driver, he said maybe my bios is setting = it to zero.
Should the fanx_min value be displayed using sensors (e.g.= "CPU Fan:  1866 RPM  (min =3D  4242 RPM)" ) ?

> >
> > I only copied it from = SENSORS_DME1737_PWM_FEATURES, should i remove it?
>
> Ah, I hadn't noticed that the DME1737= had definitions for PWM. It's
> more of an exception than the rule= . So yes, please remove the PWM stuff.

I deleted the PWM- stuff.


> > > +    if (= valid) {
> > > +      print_label(la= bel, 10);
> > > +      print_temp_in= fo(cur, max, 0, HYST , 0, 0);
> > > +    =   printf("%s\n", alarm ? "ALARM" : "");
> > > +    }
> > ><= br style=3D"font-family: courier;">&g= t; > > This doesn't make sense. What is SENSORS_F75373_TEMP_HYST exac= tly? Why
> > > do you display it as an alarm?
> ><= /span>
> > It was a mistake, i deleted the Alarm output, now it is only= printf("\n"),
> > there seems not to be a value for an alarm.
> > temp1_max_hyst is always zero, i don't now what it is exactly and
> > when it is not zero.

> temp1_max_hyst is supposed to represent the hysteresis tem= perature
> value for the temp1_max limit, and the value should be p= assed as the
> 3rd argument to print_temp_info(). If it reads 0, ma= ybe that's a driver
> bug. Again, try reading the value directly = from sysfs. And please
> report the problems you find to the driver= author so that he can fix
>= them.
>
tempx_max_hyst is always zero:
<output>

root@pc:/sys/devices/pci0000:00/0000:00:01.1/i2c-2/2-002d# cat temp1_max= _hyst
0
</output>
but i can set it by hand. It's now s= hown ( e.g. "CPU Temp:    +47=B0C  (high =3D  = ; +54=B0C, hyst =3D   +41=B0C)" ).

> > ERROR: Can't get feature `fan1_m= in' data!
> > CPU PWM: 31.00 (pwm1)
> > What's the re= ason? Did I still have to use "F75373"?
>
> I see. This sug= gests that the driver itself identifies the chip as
> F75373, and t= hat's not correct. You need to put "f75373" in sensors,
> and the d= river needs to be updated in the same way.
Fixed in the driver.=

>= > > Also, what about the F75375 support? As far as I know the f75375= s
> > >  driver
> > > supports both chips,= so it'd be nice to have user-space support for
> > > both. A= lso, it might be less confusing to use F75375 for all the
> > = > libsensors defines, rather than F75373, so that they match the driver<= /span>
> > > name.
> >
> > I changed every define/function from F75373 to F75375,= i added also:
> > #define SENSORS_F75373_PREFIX "f75373"=
&= gt; > #define SENSORS_F75375_PREFIX "f75375"
> > and>= ; > { SENSORS_F75375_PREFIX, f75375_features },
> > { SENSORS= _F75373_PREFIX, f75375_features },
> > and

> > { "F75= 375", print_f75375 },
> > { "F75373", print_f75375 },
>
> Except for the leading capit= al, yes, it's OK. That being said, what's
> the difference between = the F75373 and the F75375? If the F75375 has
> less inputs, then yo= u'll need to adjust the code in "sensors" to not
> try to display t= he missing inputs.
Fixed i can now use f75375 & f75373.

best regards
christian.


Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite! --0-1846721365-1184096665=:59813-- --0-892538531-1184096665=:59813 Content-Type: application/octet-stream; name="fintek_75373s_support_v3.patch" Content-Transfer-Encoding: base64 Content-Description: pat943948581 Content-Disposition: attachment; filename="fintek_75373s_support_v3.patch" ZGlmZiAtdXJOIGxtLXNlbnNvcnNfb3JnL2V0Yy9zZW5zb3JzLmNvbmYuZWcg bG0tc2Vuc29ycy9ldGMvc2Vuc29ycy5jb25mLmVnCi0tLSBsbS1zZW5zb3Jz X29yZy9ldGMvc2Vuc29ycy5jb25mLmVnCTIwMDctMDctMDIgMTg6NTY6MDAu MDAwMDAwMDAwICswMjAwCisrKyBsbS1zZW5zb3JzL2V0Yy9zZW5zb3JzLmNv bmYuZWcJMjAwNy0wNy0xMCAyMDowMTozNy4wMDAwMDAwMDAgKzAyMDAKQEAg LTI5MjcsMyArMjkyNywyMyBAQAogICAgIGNvbXB1dGUgaW42ICAgICAgIChA ICogNS4yNSksIChAIC8gNS4yNSkKICAgICBjb21wdXRlIGluNyAgICAgICAo QCAqIDIpLCAoQCAvIDIpCiAgICAgY29tcHV0ZSBpbjggICAgICAgKEAgKiAy KSwgKEAgLyAyKQorCisKKyMKKyMgU2FtcGxlIGNvbmZpZ3VyYXRpb24gZm9y IHRoZSBGaW50ZWsgRjc1Mzc1L0Y3NTM3M1MKKyMKK2NoaXAgImY3NTM3NS0q IiAiZjc1MzczLSoiCisKKyMgVm9sdGFnZXMKKyAgIGxhYmVsIGluMCAiVkND IgorICAgbGFiZWwgaW4xICJWMSIKKyAgIGxhYmVsIGluMiAiVjIiCisgICBs YWJlbCBpbjMgIlYzIgorICAgIAorIyBGYW5zCisgICBsYWJlbCBmYW4xICJD UFUgRmFuIgorICAgbGFiZWwgZmFuMiAiU3lzIEZhbiIKKworIyBUZW1wZXJh dHVyZXMKKyAgIGxhYmVsIHRlbXAxICJDUFUgVGVtcCIKKyAgIGxhYmVsIHRl bXAyICJTeXMgVGVtcCIKZGlmZiAtdXJOIGxtLXNlbnNvcnNfb3JnL2xpYi9j aGlwcy5jIGxtLXNlbnNvcnMvbGliL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Y3VyKSAmJgorICAgICAgIXNl bnNvcnNfZ2V0X2ZlYXR1cmUoKm5hbWUsIFNFTlNPUlNfRjc1Mzc1X0lOX01B WChpKSwgJm1heCkgJiYKKyAgICAgICFzZW5zb3JzX2dldF9mZWF0dXJlKCpu YW1lLCBTRU5TT1JTX0Y3NTM3NV9JTl9NSU4oaSksICZtaW4pKSB7CisgICAg aWYgKHZhbGlkKSB7CisgICAgICBwcmludF9sYWJlbChsYWJlbCwgMTApOwor ICAgICAgcHJpbnRmKCIlKzYuMmYgViAgKG1pbiA9ICUrNi4yZiBWLCBtYXgg PSAlKzYuMmYgVilcbiIsCisgICAgICAgICAgICAgY3VyLCBtaW4sIG1heCk7 CisgICAgfQorICB9IGVsc2UgeworICAgIHByaW50ZigiRVJST1I6IENhbid0 IGdldCBpbiVkIGRhdGEhXG4iLCBpKTsKKyAgfQorICBmcmVlKGxhYmVsKTsK K30KKworc3RhdGljIHZvaWQgcHJpbnRfZjc1Mzc1X3RlbXAoY29uc3Qgc2Vu c29yc19jaGlwX25hbWUgKm5hbWUsIGludCBpKQoreworICBjaGFyICpsYWJl bDsKKyAgZG91YmxlIGN1ciwgbWF4LCBoeXN0OworICBpbnQgdmFsaWQ7CisK KyAgaWYgKCFzZW5zb3JzX2dldF9sYWJlbF9hbmRfdmFsaWQoKm5hbWUsIFNF TlNPUlNfRjc1Mzc1X1RFTVAoaSksICZsYWJlbCwKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgJnZhbGlkKSAmJgorICAgICAgIXNlbnNv cnNfZ2V0X2ZlYXR1cmUoKm5hbWUsIFNFTlNPUlNfRjc1Mzc1X1RFTVAoaSks ICZjdXIpICYmCisgICAgICAhc2Vuc29yc19nZXRfZmVhdHVyZSgqbmFtZSwg U0VOU09SU19GNzUzNzVfVEVNUF9NQVgoaSksICZtYXgpICYmCisgICAgICAh c2Vuc29yc19nZXRfZmVhdHVyZSgqbmFtZSwgU0VOU09SU19GNzUzNzVfVEVN UF9IWVNUKGkpLCAmaHlzdCkpIHsKKyAgICBpZiAodmFsaWQpIHsKKyAgICAg IHByaW50X2xhYmVsKGxhYmVsLCAxMCk7CisgICAgICBwcmludF90ZW1wX2lu Zm8oY3VyLCBtYXgsIGh5c3QsIEhZU1QsIDAsIDApOworICAgICAgcHJpbnRm KCJcbiIpOworICAgIH0KKyAgfSBlbHNlIHsKKyAgICBwcmludGYoIkVSUk9S OiBDYW4ndCBnZXQgdGVtcCVkIGRhdGEhXG4iLCBpKTsKKyAgfQorICBmcmVl KGxhYmVsKTsKK30KKworc3RhdGljIHZvaWQgcHJpbnRfZjc1Mzc1X2Zhbihj b25zdCBzZW5zb3JzX2NoaXBfbmFtZSAqbmFtZSwgaW50IGkpCit7CisgIGNo YXIgKmxhYmVsOworICBkb3VibGUgY3VyOworICBpbnQgdmFsaWQ7CisKKyAg aWYgKCFzZW5zb3JzX2dldF9sYWJlbF9hbmRfdmFsaWQoKm5hbWUsIFNFTlNP UlNfRjc1Mzc1X0ZBTihpKSwgJmxhYmVsLAorICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAmdmFsaWQpICYmCisgICAgICAhc2Vuc29yc19n ZXRfZmVhdHVyZSgqbmFtZSwgU0VOU09SU19GNzUzNzVfRkFOKGkpLCAmY3Vy KSkgeworICAgIGlmICh2YWxpZCkgeworICAgICAgcHJpbnRfbGFiZWwobGFi ZWwsIDEwKTsKKyAgICAgIC8qcHJpbnRmKCIlNC4wZiBSUE0gIChtaW4gPSAl NC4wZiBSUE0pXG4iLCAKKyAgICAgICAgICAgICBjdXIsIG1pbik7Ki8KKyAg ICAgIHByaW50ZigiJTQuMGYgUlBNXG4iLAorICAgICAgICAgICAgIGN1cik7 CisgICAgfQorICB9IGVsc2UgeworICAgIHByaW50ZigiRVJST1I6IENhbid0 IGdldCBmYW4lZCBkYXRhIVxuIiwgaSk7CisgIH0KKyAgZnJlZShsYWJlbCk7 Cit9CisKK3ZvaWQgcHJpbnRfZjc1Mzc1KG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ogCiAjZW5kaWYgLyogZGVm IFBST0dfU0VOU09SU19DSElQU19IICovCmRpZmYgLXVyTiBsbS1zZW5zb3Jz X29yZy9wcm9nL3NlbnNvcnMvbWFpbi5jIGxtLXNlbnNvcnMvcHJvZy9zZW5z b3JzL21haW4uYwotLS0gbG0tc2Vuc29yc19vcmcvcHJvZy9zZW5zb3JzL21h aW4uYwkyMDA3LTA3LTAyIDE4OjU2OjAwLjAwMDAwMDAwMCArMDIwMAorKysg bG0tc2Vuc29ycy9wcm9nL3NlbnNvcnMvbWFpbi5jCTIwMDctMDctMTAgMjA6 MzI6NTUuMDAwMDAwMDAwICswMjAwCkBAIC00MjYsNiArNDI2LDggQEAKICAJ eyAiZG1lMTczNyIsIHByaW50X2RtZTE3MzcgfSwKIAl7ICJhcHBsZXNtYyIs IHByaW50X2FwcGxlc21jIH0sCiAJeyAiZjcxODgyZmciLCBwcmludF9mNzE4 ODJmZyB9LAorICAgICAgICB7ICJmNzUzNzUiLCBwcmludF9mNzUzNzUgfSwK KyAgICAgICAgeyAiZjc1MzczIiwgcHJpbnRfZjc1Mzc1IH0sCiAJeyBOVUxM LCBOVUxMIH0KIH07CiAK --0-892538531-1184096665=:59813 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors --0-892538531-1184096665=:59813--