drm/nouveau/nouveau: fix the start/end range for migration
authorRalph Campbell <rcampbell@nvidia.com>
Mon, 31 Aug 2020 20:31:11 +0000 (13:31 -0700)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 29 Oct 2020 23:34:11 +0000 (09:34 +1000)
commitcfa736f5a6f31ca8a05459b5720aac030247ad1b
tree7f571635d6f5cddf9f5102c8f93284f7947fc052
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
drm/nouveau/nouveau: fix the start/end range for migration

The user level OpenCL code shouldn't have to align start and end
addresses to a page boundary. That is better handled in the nouveau
driver. The npages field is also redundant since it can be computed
from the start and end addresses.

Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_svm.c