diff options
| author | Christian König <[email protected]> | 2020-09-21 13:55:39 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2020-09-24 14:16:50 +0000 |
| commit | 4671078eb8e390bd44c458e2f482fbb61f5bc612 (patch) | |
| tree | 1de180ec8005bb8c8b26159eea3387e5a7ec09d1 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/radeon: switch over to the new pin interface (diff) | |
| download | kernel-4671078eb8e390bd44c458e2f482fbb61f5bc612.tar.gz kernel-4671078eb8e390bd44c458e2f482fbb61f5bc612.zip | |
drm/amdgpu: switch over to the new pin interface
Stop using TTM_PL_FLAG_NO_EVICT.
Signed-off-by: Christian König <[email protected]>
Tested-by: Nirmoy Das <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Link: https://patchwork.freedesktop.org/patch/391617/?series=81973&rev=1
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 420931d36732..3e6243623082 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -609,7 +609,7 @@ void amdgpu_vm_del_from_lru_notify(struct ttm_buffer_object *bo) if (!amdgpu_bo_is_amdgpu_bo(bo)) return; - if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) + if (bo->pin_count) return; abo = ttm_to_amdgpu_bo(bo); |
