drm/amd: Don't init MEC2 firmware when it fails to load
authorjsg <jsg@openbsd.org>
Sun, 25 Feb 2024 23:57:35 +0000 (23:57 +0000)
committerjsg <jsg@openbsd.org>
Sun, 25 Feb 2024 23:57:35 +0000 (23:57 +0000)
From David McFarland
38fd4dfa2764280e48c862e89623def321d0328d in linux-6.6.y/6.6.18
8ef85a0ce24a6d9322dfa2a67477e473c3619b4f in mainline linux

sys/dev/pci/drm/amd/amdgpu/gfx_v10_0.c

index 8e9e703..a0bf452 100644 (file)
@@ -4020,8 +4020,6 @@ static int gfx_v10_0_init_microcode(struct amdgpu_device *adev)
                err = 0;
                adev->gfx.mec2_fw = NULL;
        }
-       amdgpu_gfx_cp_init_microcode(adev, AMDGPU_UCODE_ID_CP_MEC2);
-       amdgpu_gfx_cp_init_microcode(adev, AMDGPU_UCODE_ID_CP_MEC2_JT);
 
        gfx_v10_0_check_fw_write_wait(adev);
 out: