net/mlx5: Add periodic update of host time to firmware
authorAya Levin <ayal@nvidia.com>
Wed, 13 Oct 2021 06:45:22 +0000 (09:45 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 25 Oct 2021 20:51:19 +0000 (13:51 -0700)
commit5a1023deeed02a2078bcc11eec1c4be31e85892d
treed3904d2f6a8855178b438744d0706a4243d65809
parentb87ef75cb5c98a16a7b8e01765277890a6a175cd
net/mlx5: Add periodic update of host time to firmware

Firmware logs its asserts also to non-volatile memory. In order to
reduce drift between the NIC and the host, the driver sets the host
epoch-time to the firmware every hour.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h