diff options
author | Jonathan Kim <jonathan.kim@amd.com> | 2022-07-28 18:36:09 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-28 22:28:54 +0200 |
commit | 1ff186ff32997049a6d263031819517eab4e93aa (patch) | |
tree | b619cd1fc021da573cf77f50b875f08e3133c706 /drivers/gpu | |
parent | drm/amd/pm: enable GFX ULV feature support for SMU13.0.0 (diff) | |
download | linux-1ff186ff32997049a6d263031819517eab4e93aa.tar.xz linux-1ff186ff32997049a6d263031819517eab4e93aa.zip |
drm/amdgpu: fix hive reference leak when reflecting psp topology info
Hives that require psp topology info to be reflected will leak hive
reference so fix it.
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Shaoyun Liu <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 3ee363bfbac2..6c23e89366bf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -1292,6 +1292,8 @@ static void psp_xgmi_reflect_topology_info(struct psp_context *psp, break; } + + amdgpu_put_xgmi_hive(hive); } int psp_xgmi_get_topology_info(struct psp_context *psp, |