On 04/06/2019 17:17, Richard Cochran wrote: > On Mon, Jun 03, 2019 at 03:12:39PM +0300, Ido Schimmel wrote: >> From: Shalom Toledo <shal...@mellanox.com> >> >> The MTUTC register configures the HW UTC counter. > > Why is this called the "UTC" counter? > > The PTP time scale is TAI. Is this counter intended to reflect the > Linux CLOCK_REALTIME system time?
Exactly. The hardware doesn't have the ability to convert the FRC to UTC, so we, as a driver, need to do it and align the hardware with this value. > >> +/* MTUTC - Management UTC Register >> + * ------------------------------- >> + * Configures the HW UTC counter. >> + */ >> +#define MLXSW_REG_MTUTC_ID 0x9055 >> +#define MLXSW_REG_MTUTC_LEN 0x1C > > Thanks, > Richard >