OSDN Git Service

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)
commitf297a0e9fe7d4b4d8a24d2ce97446f2faaf9d51b
tree58822a5158aebb7f41d730ec94852579d2a4eefe
parent519f4ed0a09cdf3834c5cbde1416acd9a979a709
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