summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2023-01-18 10:36:06 +0300
committerOded Gabbay <ogabbay@kernel.org>2023-01-26 12:52:14 +0300
commitce582bea86bf0c7ae6f8269873bd82dbc0158e53 (patch)
tree63c1606a4300ec85e424d32ad3c8cf3fdea68758 /drivers
parent44155bb62762335c3e0e9cdec04ad7c03cd41fb2 (diff)
downloadlinux-ce582bea86bf0c7ae6f8269873bd82dbc0158e53.tar.xz
habanalabs/gaudi2: unsecure tpc kernel_config registers
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/accel/habanalabs/gaudi2/gaudi2_security.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/gaudi2/gaudi2_security.c b/drivers/accel/habanalabs/gaudi2/gaudi2_security.c
index b2b528788e39..a212f82e6604 100644
--- a/drivers/accel/habanalabs/gaudi2/gaudi2_security.c
+++ b/drivers/accel/habanalabs/gaudi2/gaudi2_security.c
@@ -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,