diff options
| author | Christian König <[email protected]> | 2021-08-30 07:22:06 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2022-01-26 14:29:24 +0000 |
| commit | 3f268ef06f8cf3c481dbd5843d564f5170c6df54 (patch) | |
| tree | 102bbd239b2a6faeb16b64c2faf83e2cbb915bac /drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | |
| parent | drm/ttm: add ttm_resource_fini v2 (diff) | |
| download | kernel-3f268ef06f8cf3c481dbd5843d564f5170c6df54.tar.gz kernel-3f268ef06f8cf3c481dbd5843d564f5170c6df54.zip | |
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 <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Acked-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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c index ffddec08e931..6f7189d32f0a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c @@ -153,7 +153,7 @@ int amdgpu_preempt_mgr_init(struct amdgpu_device *adev) man->use_tt = true; man->func = &amdgpu_preempt_mgr_func; - ttm_resource_manager_init(man, (1 << 30)); + ttm_resource_manager_init(man, &adev->mman.bdev, (1 << 30)); atomic64_set(&mgr->used, 0); |
