accel/qaic: Add support for periodic timesync
authorAjit Pal Singh <quic_ajitpals@quicinc.com>
Mon, 16 Oct 2023 17:01:13 +0000 (11:01 -0600)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 27 Oct 2023 16:05:42 +0000 (10:05 -0600)
commit6216fb03f8bd0b1439e9e799a306bafd5b462622
treee9f59cf8c8cf251b41d01de7e23a1f007c1d3a0a
parentbb8e97e26ce6437d2f57f37e8ba767a2b9cf0d65
accel/qaic: Add support for periodic timesync

Device and Host have a time synchronization mechanism that happens once
during boot when device is in SBL mode. After that, in mission-mode there
is no timesync. In an experiment after continuous operation, device time
drifted w.r.t. host by approximately 3 seconds per day. This drift leads
to mismatch in timestamp of device and Host logs. To correct this
implement periodic timesync in driver. This timesync is carried out via
QAIC_TIMESYNC_PERIODIC MHI channel.

Signed-off-by: Ajit Pal Singh <quic_ajitpals@quicinc.com>
Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231016170114.5446-2-quic_jhugo@quicinc.com
Documentation/accel/qaic/aic100.rst
Documentation/accel/qaic/qaic.rst
drivers/accel/qaic/Makefile
drivers/accel/qaic/mhi_controller.c
drivers/accel/qaic/qaic_drv.c
drivers/accel/qaic/qaic_timesync.c [new file with mode: 0644]
drivers/accel/qaic/qaic_timesync.h [new file with mode: 0644]