mpt3sas: Fix incorrect system timestamp showed in IOC FW
Subsystems (2)
Sreekanth Reddy
maintainerPATCH 1/1 mpt3sas: Fix incorrect system timestamp showed in IOC FW
For updating the IOC Fimrware's timestamp with
system timestamp, driver issues the Mpi26IoUnitControlRequest message. While framing the Mpi26IoUnitControlRequest driver should copy the current timestamp value's lower 32 bits in IOCParameterValue field and higher 32 bits in Reserved7 field.
Fixes f98790c00375("mpt3sas: Sync time periodically between driver and firmware")
Signed-off-by Sreekanth Reddy <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +2 -2
@@ -639,8 +639,8 @@ static void _base_sync_drv_fw_timestamp(struct MPT3SAS_ADAPTER *ioc) mpi_request->IOCParameter =MPI26_SET_IOC_PARAMETER_SYNC_TIMESTAMP ; current_time =ktime_get_real (); TimeStamp =ktime_to_ms (current_time); - mpi_request->Reserved7 =cpu_to_le32 (TimeStamp &0xFFFFFFFF ); - mpi_request->IOCParameterValue =cpu_to_le32 (TimeStamp >>32 ); + mpi_request->Reserved7 =cpu_to_le32 (TimeStamp >>32 ); + mpi_request->IOCParameterValue =cpu_to_le32 (TimeStamp &0xFFFFFFFF );init_completion (&ioc->scsih_cmds.done); ioc->put_smid_default (ioc, smid); dinitprintk(ioc, ioc_info(ioc,
Signature · 1 line
2.27.0
Martin K. Petersen
AppliedQuoted 8 lines · Sreekanth Reddy
For updating the IOC Fimrware's timestamp with
system timestamp, driver issues the Mpi26IoUnitControlRequest message. While framing the Mpi26IoUnitControlRequest driver should copy the current timestamp value's lower 32 bits in IOCParameterValue field and higher 32 bits in Reserved7 field.[...]
Applied to 5.16/scsi-fixes, thanks!
[1/1] mpt3sas: Fix incorrect system timestamp showed in IOC FW
https://git.kernel.org/mkp/scsi/c/5ecae9f8c705
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering