On Fri, Oct 30, 2026 at 08:08:42PM +0530, Soumyadeep Hore wrote:
> The ice_read_clock() function was incorrectly using clock_gettime()
> with CLOCK_MONOTONIC_RAW to return system time instead of the actual
> hardware PHC time. This caused txtime scheduling to use a completely
> different time base than the PHC, resulting in all scheduled timestamps
> being interpreted as past time by the hardware.
>
> Replace the system clock read with ice_timesync_read_time() which reads
> the actual PHC register value, ensuring the application can compute
> correct future timestamps relative to the hardware clock.
>
> Fixes: 327fe144ca39 ("net/ice: support clock read")
> Cc: [email protected]
>
> Signed-off-by: Soumyadeep Hore <[email protected]>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>