aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2015-08-14 14:08:40 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:51:23 -0400
commit05906dec7d7daf197b9b773295c95ad6b9af2a5a (patch)
tree3459b59ade856c84a50539a894edc237bf7636da /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentb325a789c7e6554a14fae3c2310ee22fa4ca7cf6 (diff)
drm/amdgpu: wait on page directory changes. v2
Pagetables can be moved and therefore the page directory update can be necessary for the current cs even if none of the the bo's are moved. In that scenario there is no fence between the sdma0 and gfx ring, so we add one. v2 (chk): rebased Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 68beb40e283b..2fc58e658986 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -982,6 +982,7 @@ struct amdgpu_vm {
982 /* contains the page directory */ 982 /* contains the page directory */
983 struct amdgpu_bo *page_directory; 983 struct amdgpu_bo *page_directory;
984 unsigned max_pde_used; 984 unsigned max_pde_used;
985 struct fence *page_directory_fence;
985 986
986 /* array of page tables, one for each page directory entry */ 987 /* array of page tables, one for each page directory entry */
987 struct amdgpu_vm_pt *page_tables; 988 struct amdgpu_vm_pt *page_tables;