All of lore.kernel.org
 help / color / mirror / Atom feed
* Notion of Flakiness in Sensor Readings
@ 2018-10-12 20:53 Patrick Venture
  2018-10-12 21:08 ` James Feist
  0 siblings, 1 reply; 11+ messages in thread
From: Patrick Venture @ 2018-10-12 20:53 UTC (permalink / raw)
  To: OpenBMC Maillist, Matt Spinler, Brad Bishop

Currently, there are a few approaches in phosphor-hwmon on how to
handle sensors being present sometimes, or flaky on reads.  We've
talked in the past about how to handle a read failure that should be
ignored.  A real failure that is flaky or temporary.

I was thinking of just adding a property to the Sensor.Value interface
to report information.  Basically, someone reading the value needs to
know if it's valid.  The idea of a range check for validity doesn't
work as cleanly for this specific purpose, in my opinion.  The min/max
can be used cleanly to determine the linearization though!

I was thinking perhaps a boolean, that you can check to see if the
value should be used or trusted.  Then, I thought, perhaps, a enum
with a series of states, starting with the states of "Valid',
"Invalid."  Not being able to think of a third state, I fell back onto
a boolean.

Thoughts?

Patrick

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

end of thread, other threads:[~2018-10-16  2:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 20:53 Notion of Flakiness in Sensor Readings Patrick Venture
2018-10-12 21:08 ` James Feist
2018-10-12 21:23   ` Patrick Venture
2018-10-12 21:28     ` Matt Spinler
2018-10-12 21:32       ` Patrick Venture
2018-10-15 13:39         ` Matthew Barth
2018-10-15 14:34           ` Patrick Venture
2018-10-16  1:14         ` Brad Bishop
2018-10-16  2:15           ` Patrick Venture
2018-10-16  2:30             ` Brad Bishop
2018-10-16  2:34               ` Patrick Venture

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.