Commit 3023015f authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amd/pp: Fix memory leak on CI/AI

On CI/AI, fw was not loaded by smu, but
smu's fw still need to be released
when driver fini.
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e5081e30
...@@ -109,11 +109,11 @@ static int pp_sw_fini(void *handle) ...@@ -109,11 +109,11 @@ static int pp_sw_fini(void *handle)
hwmgr_sw_fini(hwmgr); hwmgr_sw_fini(hwmgr);
if (adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) { if (adev->firmware.load_type == AMDGPU_FW_LOAD_SMU)
release_firmware(adev->pm.fw);
adev->pm.fw = NULL;
amdgpu_ucode_fini_bo(adev); amdgpu_ucode_fini_bo(adev);
}
release_firmware(adev->pm.fw);
adev->pm.fw = NULL;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment