drm/amdgpu: fix amdgpu_fill_buffer (v2)
authorChristian König <christian.koenig@amd.com>
Thu, 17 Nov 2016 11:06:38 +0000 (12:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2016 20:08:44 +0000 (15:08 -0500)
commitf29224a6197dc71a7f3c557f41ae56c58192c345
tree488feb44c7e16a065ca1c355a74642c6bb036091
parent3b1c9036a678e917c2df6ed12cb96681b7dd92b4
drm/amdgpu: fix amdgpu_fill_buffer (v2)

The mem start is relative to the domain in the address space, so this
worked only when VRAM was mapped at offset 0.

It also didn't handled multiple drm_mm_nodes for split VRAM.

v2: rebase on dma_fence renaming

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