diff options
| author | Christian König <[email protected]> | 2021-07-09 13:18:39 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2022-01-26 14:23:51 +0000 |
| commit | de3688e469b08be958914674e8b01cb0cea42388 (patch) | |
| tree | 6f0758e36daa479d3cecc175880c29968fe4499c /drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | |
| parent | drm/nouveau/acr: Fix undefined behavior in nvkm_acr_hsfw_load_bl() (diff) | |
| download | kernel-de3688e469b08be958914674e8b01cb0cea42388.tar.gz kernel-de3688e469b08be958914674e8b01cb0cea42388.zip | |
drm/ttm: add ttm_resource_fini v2
Make sure we call the common cleanup function in all
implementations of the resource manager.
v2: fix missing case in i915, rudimentary kerneldoc, should be
filled in more when we add more functionality
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c index d02c8637f909..ffddec08e931 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c @@ -95,6 +95,7 @@ static void amdgpu_preempt_mgr_del(struct ttm_resource_manager *man, struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man); atomic64_sub(res->num_pages, &mgr->used); + ttm_resource_fini(man, res); kfree(res); } |
