summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-01-30 11:09:31 +0100
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)
downloadlwn-284710fa6c3a5fddbc0f8c6b3a07861a312c18d2.tar.gz
lwn-284710fa6c3a5fddbc0f8c6b3a07861a312c18d2.zip
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 {
uint32_t gpu_page_idx, /* pte/pde to update */
uint64_t addr, /* addr to write into pte/pde */
uint32_t flags); /* access flags */
+ /* enable/disable PRT support */
+ void (*set_prt)(struct amdgpu_device *adev, bool enable);
};
/* provided by the ih block */