aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-01-30 05:09:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:52:56 -0400
commit284710fa6c3a5fddbc0f8c6b3a07861a312c18d2 (patch)
tree8e0b7dd3c8485a308e6066e548f1548fd72feae5 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parenta5f6b5b1e89067d3de30ae04693f96189cc05aec (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index c1b913541739..618f12884eed 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -294,6 +294,8 @@ struct amdgpu_gart_funcs {
294 uint32_t gpu_page_idx, /* pte/pde to update */ 294 uint32_t gpu_page_idx, /* pte/pde to update */
295 uint64_t addr, /* addr to write into pte/pde */ 295 uint64_t addr, /* addr to write into pte/pde */
296 uint32_t flags); /* access flags */ 296 uint32_t flags); /* access flags */
297 /* enable/disable PRT support */
298 void (*set_prt)(struct amdgpu_device *adev, bool enable);
297}; 299};
298 300
299/* provided by the ih block */ 301/* provided by the ih block */