]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Remove redundant pmfw backdoor loading
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 26 May 2025 07:49:42 +0000 (15:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Dec 2025 22:34:35 +0000 (17:34 -0500)
PMFW is integrated into ifwi for gfx 12_1 adapter,
making PMFW backdoor loading unnecessary.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c

index 51173d551671f6c77197152ac772fa8a5b8fd8d5..447395d36a3ebf1a80bdc2790d00a658e326986f 100644 (file)
@@ -2559,21 +2559,6 @@ static int gfx_v12_1_hw_init(struct amdgpu_ip_block *ip_block)
        if (r)
                return r;
 
-       if ((adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT ||
-            adev->firmware.load_type == AMDGPU_FW_LOAD_RLC_BACKDOOR_AUTO) &&
-            (amdgpu_dpm == 1)) {
-               /**
-                * For gfx 12, rlc firmware loading relies on smu firmware is
-                * loaded firstly, so in direct type, it has to load smc ucode
-                * here before rlc.
-                */
-               if (!(adev->flags & AMD_IS_APU)) {
-                       r = amdgpu_pm_load_smu_firmware(adev, NULL);
-                       if (r)
-                               return r;
-               }
-       }
-
        gfx_v12_1_init_golden_registers(adev);
 
        gfx_v12_1_constants_init(adev);