diff options
author | Christian König <christian.koenig@amd.com> | 2017-08-09 08:15:46 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-31 13:45:24 -0400 |
commit | ea09729c930223edf492d0ca647c27e7eb0ccb12 (patch) | |
tree | 7af83967d9e12cb910cce6177163b9de84f4c4fc /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | ebe02de2c60caa3ee5a1b39c7c8b2a40e1fda2d8 (diff) |
drm/amdgpu: rework page directory filling v2
Keep track off relocated PDs/PTs instead of walking and checking all PDs.
v2: fix root PD handling
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 4e465e817fe8..c3753afe9853 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -129,6 +129,9 @@ struct amdgpu_vm { | |||
129 | /* BOs who needs a validation */ | 129 | /* BOs who needs a validation */ |
130 | struct list_head evicted; | 130 | struct list_head evicted; |
131 | 131 | ||
132 | /* PT BOs which relocated and their parent need an update */ | ||
133 | struct list_head relocated; | ||
134 | |||
132 | /* BOs moved, but not yet updated in the PT */ | 135 | /* BOs moved, but not yet updated in the PT */ |
133 | struct list_head moved; | 136 | struct list_head moved; |
134 | 137 | ||