From: Ofir Bitton <obit...@habana.ai>

Unsecure relevant registers as TPC engine need access to
TPC status.

Signed-off-by: Ofir Bitton <obit...@habana.ai>
Reviewed-by: Oded Gabbay <ogab...@kernel.org>
Signed-off-by: Oded Gabbay <ogab...@kernel.org>
---
 drivers/misc/habanalabs/gaudi/gaudi_security.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/misc/habanalabs/gaudi/gaudi_security.c 
b/drivers/misc/habanalabs/gaudi/gaudi_security.c
index 7085f45814ae..9a706c5980ef 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi_security.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi_security.c
@@ -9556,7 +9556,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC0_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC0_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC0_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC0_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC0_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC0_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC0_CFG_TPC_STALL & 0x7F) >> 2);
@@ -10011,7 +10010,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC1_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC1_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC1_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC1_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC1_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC1_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC1_CFG_TPC_STALL & 0x7F) >> 2);
@@ -10465,7 +10463,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC2_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC2_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC2_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC2_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC2_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC2_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC2_CFG_TPC_STALL & 0x7F) >> 2);
@@ -10919,7 +10916,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC3_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC3_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC3_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC3_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC3_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC3_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC3_CFG_TPC_STALL & 0x7F) >> 2);
@@ -11373,7 +11369,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC4_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC4_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC4_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC4_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC4_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC4_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC4_CFG_TPC_STALL & 0x7F) >> 2);
@@ -11827,7 +11822,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC5_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC5_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC5_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC5_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC5_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC5_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC5_CFG_TPC_STALL & 0x7F) >> 2);
@@ -12283,7 +12277,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC6_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC6_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC6_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC6_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC6_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC6_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC6_CFG_TPC_STALL & 0x7F) >> 2);
@@ -12739,7 +12732,6 @@ static void gaudi_init_tpc_protection_bits(struct 
hl_device *hdev)
        mask = 1U << ((mmTPC7_CFG_PROT & 0x7F) >> 2);
        mask |= 1U << ((mmTPC7_CFG_VFLAGS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC7_CFG_SFLAGS & 0x7F) >> 2);
-       mask |= 1U << ((mmTPC7_CFG_STATUS & 0x7F) >> 2);
        mask |= 1U << ((mmTPC7_CFG_CFG_BASE_ADDRESS_HIGH & 0x7F) >> 2);
        mask |= 1U << ((mmTPC7_CFG_CFG_SUBTRACT_VALUE & 0x7F) >> 2);
        mask |= 1U << ((mmTPC7_CFG_TPC_STALL & 0x7F) >> 2);
-- 
2.25.1

Reply via email to