]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commita7083fc00a64ecbca0bb1b8b7e7258771d88adcc
tree54c65f0d4c63aa92a61b41450071dc65edebe17e
parent5727b509b734603d94ef07dd1960d0bc0d93f0d8
drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping

BugLink: http://bugs.launchpad.net/bugs/1808185
commit 38e624a18f9a05b8c894409be6b14709a7206c7c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c