]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/svm: remove useless SVM range check
authorRalph Campbell <rcampbell@nvidia.com>
Wed, 4 Mar 2020 00:13:38 +0000 (16:13 -0800)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Apr 2020 04:37:49 +0000 (14:37 +1000)
commitd6388ea77f43db1151a4b3efea135481a28b55bc
tree6d1123dbe8b11fc75fcb2d618e4b6328655485c7
parent00c9a735fafc35bce2f559eb85a9f0c1bd3440d2
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 <rcampbell@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_svm.c