drm/amdgpu: fix offset calculation in amdgpu_vm_bo_clear_mappings()
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 26 Mar 2021 15:08:10 +0000 (16:08 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:47:02 +0000 (16:47 -0400)
commit84e070f58ad22879787602bb18df656c326f6492
treefb63fcb2fee74708ec43a12144e2e5c88190103c
parent53df89ddc0ccb016edbf8c4cc1d66e75ade28837
drm/amdgpu: fix offset calculation in amdgpu_vm_bo_clear_mappings()

Offset calculation wasn't correct as start addresses are in pfn
not in bytes.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c