diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-03 16:42:27 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:54:42 -0400 |
commit | a0676f608322812f9a71e15144d25c32d60c954d (patch) | |
tree | 256ef7fb5f33f6bb26863eb27fbf59814d998f76 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
parent | eb6611135f3b588fd8b4c68ae95a00c78f832382 (diff) |
drm/amdgpu: gart fixes for vega10
Flags need to be 0 to be considered invalid.
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index 2916fabf3d1b..6d691abe889c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |||
@@ -229,7 +229,8 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset, | |||
229 | unsigned p; | 229 | unsigned p; |
230 | int i, j; | 230 | int i, j; |
231 | u64 page_base; | 231 | u64 page_base; |
232 | uint64_t flags = AMDGPU_PTE_SYSTEM; | 232 | /* Starting from VEGA10, system bit must be 0 to mean invalid. */ |
233 | uint64_t flags = 0; | ||
233 | 234 | ||
234 | if (!adev->gart.ready) { | 235 | if (!adev->gart.ready) { |
235 | WARN(1, "trying to unbind memory from uninitialized GART !\n"); | 236 | WARN(1, "trying to unbind memory from uninitialized GART !\n"); |