All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] sensord exits on any error
@ 2008-12-05 18:34 Andy Poling
  2008-12-05 20:27 ` Jean Delvare
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Andy Poling @ 2008-12-05 18:34 UTC (permalink / raw)
  To: lm-sensors

We are using lm-sensors in an embedded system, and have noticed that when
errors occur, sensord exits.

We occasionally encounter SMBus collisions which cause transient errors on
SMBus reads by the sensor chip driver.

We modified the most recent w83793 driver (which is much improved in dealing
with SMBus issues) to return cached data for up to 30 seconds in the case of
SMBus errors, and then to return EAGAIN on the sysfs file read if the SMBus
errors persist.

However sensord exits when it gets EAGAIN.  We have patched sensord not to
exit on errors, but instead to log them and continue.  This seems to us to be
the robust behavior for an important system monitoring daemon - if the error
is transient it rides it out, and if it is permanent it complains to get
attention.  It's about a 2-line change in the main loop of sensord.

I'd like to push these patches upstream, but wanted to first see if it is
acceptable to change the behavior of the w83793 driver and sensord in this
way.

-Andy

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

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

end of thread, other threads:[~2008-12-16  9:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 18:34 [lm-sensors] sensord exits on any error Andy Poling
2008-12-05 20:27 ` Jean Delvare
2008-12-06  0:34 ` Andy Poling
2008-12-06  8:48 ` Jean Delvare
2008-12-12  8:01 ` Jean Delvare
2008-12-12 21:45 ` Andy Poling
2008-12-14 15:44 ` Jean Delvare
2008-12-16  9:05 ` Andy Poling
2008-12-16  9:29 ` 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.