* [PATCH] mpt3sas: Fix incorrect system timestamp showed in IOC FW
@ 2021-11-17 12:32 Sreekanth Reddy
2021-11-19 4:16 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Sreekanth Reddy @ 2021-11-17 12:32 UTC (permalink / raw)
To: linux-scsi, martin.petersen; +Cc: suganath-prabu.subramani, Sreekanth Reddy
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
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 <sreekanth.reddy@broadcom.com>
---
drivers/scsi/mpt3sas/mpt3sas_base.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index 27eb652b564f..81dab9b82f79 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -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,
--
2.27.0
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mpt3sas: Fix incorrect system timestamp showed in IOC FW
2021-11-17 12:32 [PATCH] mpt3sas: Fix incorrect system timestamp showed in IOC FW Sreekanth Reddy
@ 2021-11-19 4:16 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2021-11-19 4:16 UTC (permalink / raw)
To: linux-scsi, Sreekanth Reddy; +Cc: Martin K . Petersen, suganath-prabu.subramani
On Wed, 17 Nov 2021 18:02:15 +0530, Sreekanth Reddy wrote:
> 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
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-19 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17 12:32 [PATCH] mpt3sas: Fix incorrect system timestamp showed in IOC FW Sreekanth Reddy
2021-11-19 4:16 ` Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.