diff options
author | Christian König <christian.koenig@amd.com> | 2015-05-26 12:24:15 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-05-28 06:03:39 +0200 |
commit | 161ab658a611df14fb0365b7b70a8c5fed3e4870 (patch) | |
tree | a2ae6aa23ac524962cb45998ae6b14a32a3986bd /drivers/gpu/drm/radeon/radeon.h | |
parent | drm/radeon: clean up radeon_audio_enable (diff) | |
download | linux-161ab658a611df14fb0365b7b70a8c5fed3e4870.tar.xz linux-161ab658a611df14fb0365b7b70a8c5fed3e4870.zip |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index b0b73f2edfc9..2ffca1d920d4 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; |