]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:39:07 +0000 (12:39 +0100)
commit009296595df7cdb41845feceae449e549759d4e0
treea0bed24ba1cbef699530661a19142628de07e154
parent5f23480fd3e6d92015f15163c1090ab2d48e3fe2
drm/nouveau/nouveau: fix the start/end range for migration

[ Upstream commit cfa736f5a6f31ca8a05459b5720aac030247ad1b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nouveau_svm.c