drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 21 Jun 2018 09:27:46 +0000 (11:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Jun 2018 19:57:17 +0000 (14:57 -0500)
commit38e624a18f9a05b8c894409be6b14709a7206c7c
tree0664fa0973a32fdc4559631eb2b906d5e0e707f9
parentfe2a19652918a5247418aed48a247414a5e45fe2
drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping

start / last / max_entries are numbers of GPU pages, pfn / count are
numbers of CPU pages. Convert between them accordingly.

Fixes badness on systems with > 4K page size.

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/106258
Reported-by: Matt Corallo <freedesktop@bluematt.me>
Tested-by: foxbat@ruin.net
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c