habanalabs/gaudi2: add gaudi2 profiler module
authorBenjamin Dotan <bdotan@habana.ai>
Sun, 26 Jun 2022 18:35:07 +0000 (21:35 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:28 +0000 (09:09 +0300)
commitde88aa67af94af9e413dfbd794394c2176e649ce
tree9fd37018d54c924dc773960b5f7bda1979d2e3e6
parent4567214686124987d54c270bdff1a1810ccf71c3
habanalabs/gaudi2: add gaudi2 profiler module

Add the Gaudi2 code to initialize the ASIC's profiler. The profile
receives its initialization values from the user, same as in Gaudi2,
but the code to initialize is in the driver because the configuration
space of the device is not directly exposed to the user.

Signed-off-by: Benjamin Dotan <bdotan@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi2/Makefile
drivers/misc/habanalabs/gaudi2/gaudi2.c
drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c [new file with mode: 0644]
drivers/misc/habanalabs/gaudi2/gaudi2_coresight_regs.h [new file with mode: 0644]