habanalabs: add gaudi profiler module
authorOmer Shpigelman <oshpigelman@habana.ai>
Mon, 11 May 2020 07:46:29 +0000 (10:46 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commit79fc7a9fffa8f6166315df6929c0cef5c9a04580
treefa6c92b1ccc451da8be54bf9223afbb72a533a0a
parent3a3a5bf19639aff2a322105de8501ccfe944af4e
habanalabs: add gaudi profiler module

Add the GAUDI code to initialize the ASIC's profiler. The profile receives
its initialization values from the user, same as in Goya, 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: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/gaudi/Makefile
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi/gaudiP.h
drivers/misc/habanalabs/gaudi/gaudi_coresight.c [new file with mode: 0644]