]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: Make the Coresight timestamp perpetual
authorTomer Tayar <ttayar@habana.ai>
Tue, 27 Aug 2019 16:14:18 +0000 (16:14 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:27 +0000 (14:55 +0300)
commit413cf576fd50297429e967b050d63067c997645c
tree2bde78381830625877164e91408621c4ebc2415b
parent4fd2cb15cd0894520422b3e7d9cf68b7e6548b13
habanalabs: Make the Coresight timestamp perpetual

The Coresight timestamp is enabled for a specific debug session using
the HL_DEBUG_OP_TIMESTAMP opcode of the debug IOCTL.
In order to have a perpetual timestamp that would be comparable between
various debug sessions, this patch moves the timestamp enablement to be
part of the HW initialization.
The HL_DEBUG_OP_TIMESTAMP opcode turns to be deprecated and shouldn't be
used. Old user-space that will call it won't see any change in the
behavior of the debug session.

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/goya_coresight.c
include/uapi/misc/habanalabs.h