habanalabs: add hwmgr module for gaudi
authorOded Gabbay <oded.gabbay@gmail.com>
Mon, 11 May 2020 07:41:37 +0000 (10:41 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commitbcaf415204e231be000d76c07f6dde22edabea6a
treef5ebcffcb0ce14f8d574ce59acadf931aa955130
parentac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399
habanalabs: add hwmgr module for gaudi

The hwmgr module is responsible for messages sent to GAUDI F/W that are
not common to all habanalabs ASICs.

In GAUDI, we provide the user a simplified mode of controlling the ASIC
clock frequency. Instead of three different clocks, we present a single
clock property that the user can configure via sysfs.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Documentation/ABI/testing/sysfs-driver-habanalabs
drivers/misc/habanalabs/gaudi/Makefile
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi/gaudiP.h
drivers/misc/habanalabs/gaudi/gaudi_hwmgr.c [new file with mode: 0644]