drm/ttm: add back a reference to the bdev to the res manager
authorChristian König <christian.koenig@amd.com>
Mon, 30 Aug 2021 07:22:06 +0000 (09:22 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 26 Jan 2022 14:29:24 +0000 (15:29 +0100)
commit3f268ef06f8cf3c481dbd5843d564f5170c6df54
tree102bbd239b2a6faeb16b64c2faf83e2cbb915bac
parentde3688e469b08be958914674e8b01cb0cea42388
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
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
drivers/gpu/drm/i915/i915_ttm_buddy_manager.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/ttm/ttm_range_manager.c
drivers/gpu/drm/ttm/ttm_resource.c
drivers/gpu/drm/ttm/ttm_sys_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c
include/drm/ttm/ttm_resource.h