Skip to content

Commit bc7b188

Browse files
Ralph CampbellBen Skeggs
authored andcommitted
drm/nouveau/svm: remove useless SVM range check
When nouveau processes GPU faults, it checks to see if the fault address falls within the "unmanaged" range which is reserved for fixed allocations instead of addresses chosen by the core mm code. If start is greater than or equal to svmm->unmanaged.limit, then limit will also be greater than svmm->unmanaged.limit which is greater than svmm->unmanaged.start and the start = max_t(u64, start, svmm->unmanaged.limit) will change nothing. Just remove the useless lines of code. Signed-off-by: Ralph Campbell <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
1 parent 822cab6 commit bc7b188

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/nouveau/nouveau_svm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,6 @@ nouveau_svm_fault(struct nvif_notify *notify)
663663
limit = start + (ARRAY_SIZE(args.phys) << PAGE_SHIFT);
664664
if (start < svmm->unmanaged.limit)
665665
limit = min_t(u64, limit, svmm->unmanaged.start);
666-
else
667-
if (limit > svmm->unmanaged.start)
668-
start = max_t(u64, start, svmm->unmanaged.limit);
669666
SVMM_DBG(svmm, "wndw %016llx-%016llx", start, limit);
670667

671668
mm = svmm->notifier.mm;

0 commit comments

Comments
 (0)