habanalabs/gaudi2: remove privileged MME clock configuration
authorKoby Elbaz <kelbaz@habana.ai>
Wed, 28 Sep 2022 12:56:13 +0000 (15:56 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:40 +0000 (16:13 +0200)
Privileged MME clock configuration is removed as it is done by the f/w.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi2/gaudi2.c

index b368597..cb04892 100644 (file)
@@ -4535,7 +4535,7 @@ static void gaudi2_init_mme_acc(struct hl_device *hdev, u32 reg_base)
 static void gaudi2_init_dcore_mme(struct hl_device *hdev, int dcore_id,
                                                        bool config_qman_only)
 {
-       u32 queue_id_base, reg_base, clk_en_addr = 0;
+       u32 queue_id_base, reg_base;
 
        switch (dcore_id) {
        case 0:
@@ -4543,23 +4543,18 @@ static void gaudi2_init_dcore_mme(struct hl_device *hdev, int dcore_id,
                break;
        case 1:
                queue_id_base = GAUDI2_QUEUE_ID_DCORE1_MME_0_0;
-               clk_en_addr = mmDCORE1_MME_CTRL_LO_QM_SLV_CLK_EN;
                break;
        case 2:
                queue_id_base = GAUDI2_QUEUE_ID_DCORE2_MME_0_0;
                break;
        case 3:
                queue_id_base = GAUDI2_QUEUE_ID_DCORE3_MME_0_0;
-               clk_en_addr = mmDCORE3_MME_CTRL_LO_QM_SLV_CLK_EN;
                break;
        default:
                dev_err(hdev->dev, "Invalid dcore id %u\n", dcore_id);
                return;
        }
 
-       if (clk_en_addr && !(hdev->fw_components & FW_TYPE_BOOT_CPU))
-               WREG32(clk_en_addr, 0x1);
-
        if (!config_qman_only) {
                reg_base = gaudi2_mme_acc_blocks_bases[dcore_id];
                gaudi2_init_mme_acc(hdev, reg_base);