]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: add CPU-CP packet for engine core ASID cfg
authorTomer Tayar <ttayar@habana.ai>
Thu, 16 Dec 2021 14:31:18 +0000 (16:31 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 26 Dec 2021 12:39:53 +0000 (14:39 +0200)
commit3a89cb268b8be4a911381fc9a0992387f5c836c0
tree58822a5158aebb7f41d730ec94852579d2a4eefe
parenta0ebd9bfc0b3fc65168bead3efabb47c1c3d1e4e
habanalabs: add CPU-CP packet for engine core ASID cfg

In some cases the driver cannot configure ASID of some engines due to
the security level of the relevant registers.
For this a new CPU-CP packet is introduced, which will allow the driver
to ask the F/W to do this configuration instead.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/firmware_if.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/include/common/cpucp_if.h