On Tue, May 17, 2022 at 11:02:53AM +0200, Miroslav Lichvar wrote:
> On Mon, May 16, 2022 at 07:30:09AM -0700, Richard Cochran wrote:
> > On Mon, May 16, 2022 at 11:37:58AM +0200, Miroslav Lichvar wrote:
> > > What interval do you suggest? 10 milliseconds? Of real time or
> > > perhaps consumed CPU time (CLOCK_PROCESS_CPUTIME_ID)?
> > 
> > I would use monotonic clock (real time not process time).
> > 
> > Duration?  I don't know... how long do these errors persist?
> 
> The ice driver returns EBUSY when it fails to get a lock for the PTP
> clock, e.g. on concurrent reads. That's a random occurence and I'd not
> expect a time interval here.

Sounds like you want one or two (not 99) retries then.
 
> In the ionic driver there is EBUSY returned when the FW is upgraded. I
> have no idea how long that could take and if applications are supposed
> to work when that happens. Some other drivers seem to return EIO on
> firmware reset/upgrade.

This case should be a real error.  I think nobody would expect
anything to work during FW upgrade.

Thanks,
Richard


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

Reply via email to