drm/amdgpu: finalizing mem_partitions at the end of GMC v9 sw_fini
authorLe Ma <le.ma@amd.com>
Mon, 13 Nov 2023 10:05:34 +0000 (18:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 05:47:05 +0000 (00:47 -0500)
commitbdb72185d310fc8049c7ea95221d640e9e7165e5
treedcc1c882aa00338da2bf55bbf5d2a8e636a677eb
parent0288603040c38ccfeb5342f34a52673366d90038
drm/amdgpu: finalizing mem_partitions at the end of GMC v9 sw_fini

The valid num_mem_partitions is required during ttm pool fini,
thus move the cleanup at the end of the function.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c