aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2018-09-07 18:34:17 +0000
committerAlex Deucher <[email protected]>2018-09-13 20:14:11 +0000
commit0c70dd4985b3ad440ec6c51f34f2b47877edf8fd (patch)
tree3958ede971a5ba2078661a875d9111d2f7240c49 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdgpu: use the maximum possible fragment size on Vega/Raven (diff)
downloadkernel-0c70dd4985b3ad440ec6c51f34f2b47877edf8fd.tar.gz
kernel-0c70dd4985b3ad440ec6c51f34f2b47877edf8fd.zip
drm/amdgpu: allow fragment processing for invalid PTEs
That should improve the PRT performance on Vega quite a bit. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Reviewed-by: Huang Rui <[email protected]> Acked-by: Junwei Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 2d2d6197c3dc..dd5a0cdd67bc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -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;