accel/habanalabs: remove commented code that won't be used
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 9 Apr 2023 11:24:05 +0000 (14:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 5 Jun 2023 12:31:33 +0000 (15:31 +0300)
Once it was decided that these security settings are to be done by FW
rather than by the driver, there's no reason to keep them in the code.

Signed-off-by: Koby Elbaz <kelbaz@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 acd3313..52a12c2 100644 (file)
@@ -3443,15 +3443,6 @@ static int gaudi2_init_protection_bits(struct hl_device *hdev)
                                ARRAY_SIZE(gaudi2_pb_thermal_sensor0), NULL, HL_PB_NA);
        }
 
-       /* HBM */
-       /* Temporarily skip until SW-63348 is solved
-        * instance_offset = mmHBM1_MC0_BASE - mmHBM0_MC0_BASE;
-        * rc |= hl_init_pb_with_mask(hdev, HL_PB_SHARED, HL_PB_NA, GAUDI2_HBM_NUM,
-        *              instance_offset, gaudi2_pb_hbm,
-        *              ARRAY_SIZE(gaudi2_pb_hbm), NULL, HL_PB_NA,
-        *              prop->dram_enabled_mask);
-        */
-
        /* Scheduler ARCs */
        instance_offset = mmARC_FARM_ARC1_AUX_BASE - mmARC_FARM_ARC0_AUX_BASE;
        rc |= hl_init_pb_ranges(hdev, HL_PB_SHARED, HL_PB_NA,