summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-05-26 12:24:15 +0200
committerAlex Deucher <alexander.deucher@amd.com>2015-05-28 00:03:39 -0400
commit161ab658a611df14fb0365b7b70a8c5fed3e4870 (patch)
treea2ae6aa23ac524962cb45998ae6b14a32a3986bd /drivers/gpu/drm/radeon/radeon.h
parent010621936103fcfc15375ccdc92c0f583923d489 (diff)
downloadlinux-0-day-161ab658a611df14fb0365b7b70a8c5fed3e4870.tar.gz
linux-0-day-161ab658a611df14fb0365b7b70a8c5fed3e4870.tar.xz
drm/radeon: stop using addr to check for BO move
It is theoretically possible that a swapped out BO gets the same GTT address, but different backing pages while being swapped in. Instead just use another VA state to note updated areas. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index b0b73f2edfc9b..2ffca1d920d48 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -467,7 +467,6 @@ struct radeon_bo_va {
/* protected by bo being reserved */
struct list_head bo_list;
uint32_t flags;
- uint64_t addr;
struct radeon_fence *last_pt_update;
unsigned ref_count;
@@ -941,6 +940,9 @@ struct radeon_vm {
/* BOs freed, but not yet updated in the PT */
struct list_head freed;
+ /* BOs cleared in the PT */
+ struct list_head cleared;
+
/* contains the page directory */
struct radeon_bo *page_directory;
unsigned max_pde_used;