On Fri, Jul 14, 2023 at 08:43:30PM +0000, Keller, Jacob E wrote:

> > With this patch applied, one will get proper error in last line,
> > "Timer expired", and more modern suggestion about how to approach fixing it
> > 
> 
>
> I think changing the message about what might be causing timeout is
> unnecessary. It may be helpful purely in the context of some
> devices, but it is not a good general message as not all hardware
> and drivers have the same design. In the *general* case if this
> timeout is hit then it is usually a bug in the driver for that
> hardware. In the specific case for ice hardware, the mention of
> thread starvation is accurate, but that is unlikely to be general
> across all hardware.

But the point about kthread priority is a good hint.  How about
keeping the part about possible driver bug (since we have had many,
Many, MANY questions on this list when somebody is developing a new
driver) and adding a hint about kworker scheduling priority?

> Thus, I think we should leave the error message alone and just fix
> the errno value. Improving the errno value is important since it
> would be less confusing than seeing arbitrary error values which are
> unrelated to the actual error.

Yeah, errno fix is needed.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to