drm/amdgpu: gart fixes for vega10
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Mar 2017 21:42:27 +0000 (16:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:54:42 +0000 (23:54 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c

index 2916fab..6d691ab 100644 (file)
@@ -229,7 +229,8 @@ void amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,
        unsigned p;
        int i, j;
        u64 page_base;
-       uint64_t flags = AMDGPU_PTE_SYSTEM;
+       /* Starting from VEGA10, system bit must be 0 to mean invalid. */
+       uint64_t flags = 0;
 
        if (!adev->gart.ready) {
                WARN(1, "trying to unbind memory from uninitialized GART !\n");