drm/amdgpu: handle multiple MM nodes in the VMs v2
authorChristian König <christian.koenig@amd.com>
Tue, 16 Aug 2016 15:38:37 +0000 (17:38 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:38:15 +0000 (14:38 -0400)
commit63e0ba40e52c60f25ab67e27c89ed2b99b847562
tree430821cc3185ac5001fc250e970b007202865ac0
parentd2e938701ac54cc44f28f79aa1dd640ba43b936f
drm/amdgpu: handle multiple MM nodes in the VMs v2

This allows us to map scattered VRAM BOs to the VMs.

v2: fix offset handling, use pfn instead of offset,
    fix PAGE_SIZE != AMDGPU_GPU_PAGE_SIZE case

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c