diff options
author | Christian König <christian.koenig@amd.com> | 2021-07-09 15:18:39 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-01-26 15:23:51 +0100 |
commit | de3688e469b08be958914674e8b01cb0cea42388 (patch) | |
tree | 6f0758e36daa479d3cecc175880c29968fe4499c /include/drm/ttm | |
parent | drm/nouveau/acr: Fix undefined behavior in nvkm_acr_hsfw_load_bl() (diff) | |
download | linux-de3688e469b08be958914674e8b01cb0cea42388.tar.xz linux-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 <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220124122514.1832-2-christian.koenig@amd.com
Diffstat (limited to 'include/drm/ttm')
-rw-r--r-- | include/drm/ttm/ttm_resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h index 5952051091cd..df1f06b7b504 100644 --- a/include/drm/ttm/ttm_resource.h +++ b/include/drm/ttm/ttm_resource.h @@ -261,6 +261,9 @@ ttm_resource_manager_cleanup(struct ttm_resource_manager *man) void ttm_resource_init(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res); +void ttm_resource_fini(struct ttm_resource_manager *man, + struct ttm_resource *res); + int ttm_resource_alloc(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource **res); |