]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: mpt3sas: Fix incorrect system timestamp
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Wed, 17 Nov 2021 12:32:15 +0000 (18:02 +0530)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:34:38 +0000 (07:34 +0100)
commit16387985278bf977c35cb5eb30e7111599852ac8
treecefb15b96c3bfe9fcd5eef154eea8ac8c35aa15e
parentb2d6cdcc7baec5e1ebcdad62fac4332d0a70a59e
scsi: mpt3sas: Fix incorrect system timestamp

BugLink: https://bugs.launchpad.net/bugs/1953370
[ Upstream commit 5ecae9f8c705fae85fe4d2ed9f1b9cddf91e88e9 ]

For updating the IOC firmware's timestamp with system timestamp, the driver
issues the Mpi26IoUnitControlRequest message. While framing the
Mpi26IoUnitControlRequest, the driver should copy the lower 32 bits of the
current timestamp into IOCParameterValue field and the higher 32 bits into
Reserved7 field.

Link: https://lore.kernel.org/r/20211117123215.25487-1-sreekanth.reddy@broadcom.com
Fixes: f98790c00375 ("scsi: mpt3sas: Sync time periodically between driver and firmware")
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/scsi/mpt3sas/mpt3sas_base.c