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_cs.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_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 12598a4b5c78..d50b63a93d37 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -410,7 +410,7 @@ static int amdgpu_cs_bo_validate(struct amdgpu_cs_parser *p, uint32_t domain; int r; - if (bo->pin_count) + if (bo->tbo.pin_count) return 0; /* Don't move this buffer if we have depleted our allowance |
