drm/amdgpu: be explicit about cpu vram access for driver BOs (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Aug 2015 04:14:16 +0000 (00:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2015 14:29:32 +0000 (10:29 -0400)
commit857d913d057f8e7330e9f17eaa2b0eb7ad492c33
treeb87cd7e95038a9be3de7c01ce23f4f476a28cdb7
parentbddf8026386927985ef6d0d11c3ba78f70b76bad
drm/amdgpu: be explicit about cpu vram access for driver BOs (v2)

For kernel driver BOs, be explicit about whether we need
vram access up front.  This avoids unecessary migrations and
avoids using visible vram for buffers were it's not needed.

v2: line wrap fixes

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
12 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/fiji_smc.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/iceland_smc.c
drivers/gpu/drm/amd/amdgpu/tonga_smc.c