drm/ttm: add back a reference to the bdev to the res manager
It is simply a lot cleaner to have this around instead of adding the device throughout the call chain. Signed-off-by:Christian König <christian.koenig@amd.com> Reviewed-by:
Huang Rui <ray.huang@amd.com> Acked-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220124122514.1832-3-christian.koenig@amd.com
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 2 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 2 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
- drivers/gpu/drm/i915/i915_ttm_buddy_manager.c 1 addition, 1 deletiondrivers/gpu/drm/i915/i915_ttm_buddy_manager.c
- drivers/gpu/drm/nouveau/nouveau_ttm.c 2 additions, 2 deletionsdrivers/gpu/drm/nouveau/nouveau_ttm.c
- drivers/gpu/drm/ttm/ttm_range_manager.c 1 addition, 1 deletiondrivers/gpu/drm/ttm/ttm_range_manager.c
- drivers/gpu/drm/ttm/ttm_resource.c 3 additions, 0 deletionsdrivers/gpu/drm/ttm/ttm_resource.c
- drivers/gpu/drm/ttm/ttm_sys_manager.c 1 addition, 1 deletiondrivers/gpu/drm/ttm/ttm_sys_manager.c
- drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
- drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c 1 addition, 1 deletiondrivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
- include/drm/ttm/ttm_resource.h 9 additions, 7 deletionsinclude/drm/ttm/ttm_resource.h
Please register or sign in to comment