From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Date: Tue, 28 Oct 2014 14:54:50 +0000 Subject: Re: [lm-sensors] [PATCH] sensord: do not fail if some sensor does not return data Message-Id: <201410281554.50100@pali> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============4206308818444681582==" List-Id: To: lm-sensors@vger.kernel.org --===============4206308818444681582== Content-Type: multipart/signed; boundary="nextPart1751006.xtzGfzrxpL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1751006.xtzGfzrxpL Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Monday 09 June 2014 18:23:31 Pali Roh=C3=A1r wrote: > On Saturday 17 May 2014 22:02:12 Pali Roh=C3=A1r wrote: > > Hello, > >=20 > > I see very annoying bug in sensord. When some hwmon driver > > returns -EINVAL (for any reason), sensord daemon will stop > > reading next sensors values. This means if first hwmon > > device fail to return value, sensord daemon will not log > > anything. > >=20 > > Returning -EINVAL from kernel driver is normal (e.g. when > > graphic card with has internal temperature sensor is turned > > off) and sensord should not fail on this. > >=20 > > Program sensors already handling this problem and will print > > N/A if there is reading error. > >=20 > > I'm sending simple patch which just report NaN value when > > kernel report error. And also sensord will continue to > > reading next hwmon interfaces. > >=20 > > Without this patch I see only these lines logged: > >=20 > > sensord: Chip: radeon-pci-0100 > > sensord: Adapter: PCI adapter > > sensord: Error getting sensor data: radeon/#0: Can't read > > sensord: sensor read error (-1) > >=20 > > And all other sensors are ignored and nothing more is > > logged. > >=20 > > After my patch all hwmon sensors data are logged: > >=20 > > sensord: Chip: radeon-pci-0100 > > sensord: Adapter: PCI adapter > > sensord: temp1: nan C > > sensord: Chip: i8k-virtual-0 > > sensord: Adapter: Virtual device > > sensord: Left Fan: 2685 RPM > > sensord: CPU: 49.0 C > > sensord: temp2: 55.0 C > > sensord: temp3: 39.0 C > > sensord: Chip: coretemp-isa-0000 > > sensord: Adapter: ISA adapter > > sensord: Physical id 0: 50.0 C > > sensord: Core 0: 47.0 C > > sensord: Core 1: 50.0 C >=20 > BUMP! >=20 > Can somebody review my patch? PING. =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart1751006.xtzGfzrxpL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlRPrjoACgkQi/DJPQPkQ1LF3QCgiXOqoDOSyBQQXComUcPJSzUM FFEAnAhU6mMwm0B7vCacvzdhm2u/CY8m =PA0G -----END PGP SIGNATURE----- --nextPart1751006.xtzGfzrxpL-- --===============4206308818444681582== 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 --===============4206308818444681582==--