]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Add INFO IOCTL opcode for time sync information
authorTomer Tayar <ttayar@habana.ai>
Tue, 31 Mar 2020 19:46:36 +0000 (22:46 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commit25e7aeba601c1776cd21d610e3afc8768d0c7f2e
tree1a6c207adeafa3eebcca5627f1ef58e9705bbd8c
parentba7193c952f604a4e00a3f533d36733b47609e48
habanalabs: Add INFO IOCTL opcode for time sync information

Add a new opcode to the INFO IOCTL that retrieves the device time
alongside the host time, to allow a user application that want to measure
device time together with host time (such as a profiler) to synchronize
these times.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/habanalabs_ioctl.c
drivers/misc/habanalabs/include/goya/asic_reg/goya_regs.h
drivers/misc/habanalabs/include/goya/asic_reg/psoc_timestamp_regs.h [new file with mode: 0644]
include/uapi/misc/habanalabs.h