drm/amdgpu: allow fragment processing for invalid PTEs
authorChristian König <christian.koenig@amd.com>
Fri, 7 Sep 2018 18:34:17 +0000 (20:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:11 +0000 (15:14 -0500)
That should improve the PRT performance on Vega quite a bit.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 2d2d6197c3dcc3128d22939b8c7b246f6f72f754..dd5a0cdd67bc0319be56fa3f0dba46b2c9993eb0 100644 (file)
@@ -1552,7 +1552,7 @@ static void amdgpu_vm_fragment(struct amdgpu_pte_update_params *params,
                max_frag = 31;
 
        /* system pages are non continuously */
-       if (params->src || !(flags & AMDGPU_PTE_VALID)) {
+       if (params->src) {
                *frag = 0;
                *frag_end = end;
                return;