summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorZhang Lixu <lixu.zhang@intel.com>2025-01-22 09:29:00 +0800
committerJiri Kosina <jkosina@suse.com>2025-02-03 10:53:12 +0100
commit4b54ae69197b9f416baa0fceadff7e89075f8454 (patch)
treeac808b3ceae6b0bafe33369f1434a07a475eab6f /scripts/gdb/linux/lists.py
parentc098363828f7006ef5c5121b673bc5e26571e6c8 (diff)
HID: intel-ish-hid: fix the length of MNG_SYNC_FW_CLOCK in doorbell
The timestamps in the Firmware log and HID sensor samples are incorrect. They show 1970-01-01 because the current IPC driver only uses the first 8 bytes of bootup time when synchronizing time with the firmware. The firmware converts the bootup time to UTC time, which results in the display of 1970-01-01. In write_ipc_from_queue(), when sending the MNG_SYNC_FW_CLOCK message, the clock is updated according to the definition of ipc_time_update_msg. However, in _ish_sync_fw_clock(), the message length is specified as the size of uint64_t when building the doorbell. As a result, the firmware only receives the first 8 bytes of struct ipc_time_update_msg. This patch corrects the length in the doorbell to ensure the entire ipc_time_update_msg is sent, fixing the timestamp issue. Signed-off-by: Zhang Lixu <lixu.zhang@intel.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions