aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMonk Liu <[email protected]>2017-11-14 08:52:14 +0000
committerAlex Deucher <[email protected]>2017-12-06 17:47:51 +0000
commit84e5b5161e7159bcf24dfeed9f985bd86e354ea8 (patch)
tree39b58d34375f10352b20ea60463eea2bdb084e08 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu:cleanup unused stack var (diff)
downloadkernel-84e5b5161e7159bcf24dfeed9f985bd86e354ea8.tar.gz
kernel-84e5b5161e7159bcf24dfeed9f985bd86e354ea8.zip
drm/amdgpu:free CSA in unified place
instead of doing it in each GFX ip's sw_fini Signed-off-by: Monk Liu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 29c81c387420..fdce06b5b2b8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1893,6 +1893,7 @@ static int amdgpu_fini(struct amdgpu_device *adev)
if (!adev->ip_blocks[i].status.hw)
continue;
if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC) {
+ amdgpu_free_static_csa(adev);
amdgpu_wb_fini(adev);
amdgpu_vram_scratch_fini(adev);
}