diff options
author | Roger.He <Hongbo.He@amd.com> | 2017-04-21 01:08:43 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-28 17:33:08 -0400 |
commit | 82521316395a37a2ec1d7e396c055f3c7de9d93b (patch) | |
tree | 45fa90db68afefba7d11671ee969e13eea354cc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | 4a9ed1009b8b01409bdda899c0ff0d7fd2c6d094 (diff) |
drm/amdgpu: validate shadow before restoring from it
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger.He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 15a723adca76..382485115b06 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -175,6 +175,7 @@ int amdgpu_bo_backup_to_shadow(struct amdgpu_device *adev, | |||
175 | struct amdgpu_bo *bo, | 175 | struct amdgpu_bo *bo, |
176 | struct reservation_object *resv, | 176 | struct reservation_object *resv, |
177 | struct dma_fence **fence, bool direct); | 177 | struct dma_fence **fence, bool direct); |
178 | int amdgpu_bo_validate(struct amdgpu_bo *bo); | ||
178 | int amdgpu_bo_restore_from_shadow(struct amdgpu_device *adev, | 179 | int amdgpu_bo_restore_from_shadow(struct amdgpu_device *adev, |
179 | struct amdgpu_ring *ring, | 180 | struct amdgpu_ring *ring, |
180 | struct amdgpu_bo *bo, | 181 | struct amdgpu_bo *bo, |