On Mon, Jun 15, 2026 at 02:26:05PM +0530, Tauro, Riana wrote: > On 05-06-2026 00:16, Raag Jadav wrote: > > Add get-error-threshold and set-error-threshold command support which > > allows querying/setting error threshold of the counter. Threshold in RAS > > context means the number of errors the hardware is expected to accumulate > > before it raises them to software. This is to have a fine grained control > > over error notifications that are raised by the hardware.
... > > + * + The driver can optionally implement query_error_threshold() and > > + * set_error_threshold() callbacks to facilitate getting/setting > > error > > + * threshold of the counter. Threshold in RAS context means the > > number of > > + * errors the hardware is expected to accumulate before it raises > > them to > > + * software. This is to have a fine grained control over error > > notifications > > + * that are raised by the hardware. > > + * + The driver is responsible for error threshold bounds checking. > > Can the threshold be set to 0? What should the behaviour be? Some may want it to be invalid while some may want it to act as a "disable notifications" toggle. So it's upto the drivers and their usecases, not for us to decide. Will add this. Raag
