drm/amdgpu: add basic PRT support (v2)
authorChristian König <christian.koenig@amd.com>
Mon, 30 Jan 2017 10:09:31 +0000 (11:09 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:52:56 +0000 (23:52 -0400)
commit284710fa6c3a5fddbc0f8c6b3a07861a312c18d2
tree8e0b7dd3c8485a308e6066e548f1548fd72feae5
parenta5f6b5b1e89067d3de30ae04693f96189cc05aec
drm/amdgpu: add basic PRT support (v2)

Future hardware generations can handle PRT flags on a per page basis,
but current hardware can only turn it on globally.

Add the basic handling for both, a global callback to enable/disable
triggered by setting a per mapping flag.

v2: agd: rebase fixes

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h