summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-06-30 11:05:54 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-07-14 11:06:21 -0400
commitabca90f1c8103528ca4b194fdc69e933bd23db4c (patch)
tree3c020449c92270995b55e41fd4e81ad8d0101fc5 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
parent0c2c421e2657da6eece66bd22eaaedf21dcebef7 (diff)
downloadop-kernel-dev-abca90f1c8103528ca4b194fdc69e933bd23db4c.zip
op-kernel-dev-abca90f1c8103528ca4b194fdc69e933bd23db4c.tar.gz
drm/amdgpu: use the GTT windows for BO moves v2
This way we don't need to map the full BO at a time any more. v2: use fixed windows for src/dst Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
index c8059f0..4f5c1da 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
@@ -52,6 +52,8 @@ struct amdgpu_mman {
/* buffer handling */
const struct amdgpu_buffer_funcs *buffer_funcs;
struct amdgpu_ring *buffer_funcs_ring;
+
+ struct mutex gtt_window_lock;
/* Scheduler entity for buffer moves */
struct amd_sched_entity entity;
};
OpenPOWER on IntegriCloud