diff options
author | Christian König <christian.koenig@amd.com> | 2020-09-21 15:55:39 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-09-24 16:16:50 +0200 |
commit | 4671078eb8e390bd44c458e2f482fbb61f5bc612 (patch) | |
tree | 1de180ec8005bb8c8b26159eea3387e5a7ec09d1 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | drm/radeon: switch over to the new pin interface (diff) | |
download | linux-4671078eb8e390bd44c458e2f482fbb61f5bc612.tar.xz linux-4671078eb8e390bd44c458e2f482fbb61f5bc612.zip |
drm/amdgpu: switch over to the new pin interface
Stop using TTM_PL_FLAG_NO_EVICT.
Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/391617/?series=81973&rev=1
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index aa7f230c71bf..59b52804622d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -860,7 +860,7 @@ static int amdgpu_debugfs_gem_bo_info(int id, void *ptr, void *data) seq_printf(m, "\t0x%08x: %12ld byte %s", id, amdgpu_bo_size(bo), placement); - pin_count = READ_ONCE(bo->pin_count); + pin_count = READ_ONCE(bo->tbo.pin_count); if (pin_count) seq_printf(m, " pin count %d", pin_count); |