diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0466-drm-amd-pp-Fix-memory-leak-on-CI-AI.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0466-drm-amd-pp-Fix-memory-leak-on-CI-AI.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0466-drm-amd-pp-Fix-memory-leak-on-CI-AI.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0466-drm-amd-pp-Fix-memory-leak-on-CI-AI.patch new file mode 100644 index 00000000..3208ba38 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0466-drm-amd-pp-Fix-memory-leak-on-CI-AI.patch @@ -0,0 +1,38 @@ +From c1cfff9aa38c40c1a6a2651e7d44902cc811fced Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Sat, 29 Sep 2018 14:52:31 +0800 +Subject: [PATCH 0466/2940] 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: Evan Quan <evan.quan@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +index 9d8fa2e39bad..e51d961a94b2 100644 +--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c ++++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c +@@ -109,11 +109,11 @@ static int pp_sw_fini(void *handle) + + hwmgr_sw_fini(hwmgr); + +- if (adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) { +- release_firmware(adev->pm.fw); +- adev->pm.fw = NULL; ++ if (adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) + amdgpu_ucode_fini_bo(adev); +- } ++ ++ release_firmware(adev->pm.fw); ++ adev->pm.fw = NULL; + + return 0; + } +-- +2.17.1 + |