diff options
author | Flora Cui <flora.cui@amd.com> | 2025-03-14 10:27:55 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-03-18 14:03:47 -0400 |
commit | b5aaa82e2b12feaaa6958f7fa0917ddcc03c24ee (patch) | |
tree | 7c4cdf91ec3c5e3051ce7f7bc2e5305d80a6fe2d /drivers/gpu/drm/amd/amdgpu | |
parent | bed6bc66e84c47079a4e70f22cf1d8b60a998b8b (diff) |
drm/amdgpu: release xcp_mgr on exit
Free on driver cleanup.
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index cc0b6c70fcb8..e63bcd5edab9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4807,6 +4807,9 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev) kfree(adev->fru_info); adev->fru_info = NULL; + kfree(adev->xcp_mgr); + adev->xcp_mgr = NULL; + px = amdgpu_device_supports_px(adev_to_drm(adev)); if (px || (!dev_is_removable(&adev->pdev->dev) && |