habanalabs/gaudi2: unsecure tpc kernel_config registers
authorOfir Bitton <obitton@habana.ai>
Wed, 18 Jan 2023 07:36:06 +0000 (09:36 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:14 +0000 (11:52 +0200)
This is required in order to allow the kernel to control relevant
configuration space via load and store instructions.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2_security.c

index b2b5287..a212f82 100644 (file)
@@ -1561,6 +1561,7 @@ static const u32 gaudi2_pb_dcr0_tpc0_unsecured_regs[] = {
        mmDCORE0_TPC0_CFG_LUT_FUNC128_BASE_ADDR_HI,
        mmDCORE0_TPC0_CFG_LUT_FUNC256_BASE_ADDR_LO,
        mmDCORE0_TPC0_CFG_LUT_FUNC256_BASE_ADDR_HI,
+       mmDCORE0_TPC0_CFG_KERNEL_KERNEL_CONFIG,
        mmDCORE0_TPC0_CFG_KERNEL_SRF_0,
        mmDCORE0_TPC0_CFG_KERNEL_SRF_1,
        mmDCORE0_TPC0_CFG_KERNEL_SRF_2,