diff options
author | Alex Deucher <[email protected]> | 2019-08-07 21:43:24 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-04-28 16:20:28 -0400 |
commit | 35ce006004821c5e9ae8fe03d048567cec99c41e (patch) | |
tree | 2cfcb7ffbf765c4027d1294b9bce85260fcf9248 | |
parent | 82a7cf006ee1f91d7818eb298ae1ec052c9a14ee (diff) |
drm/amdgpu: add UAPI for creating encrypted buffers
Add a flag to the GEM_CREATE ioctl to create encrypted buffers.
Buffers with this flag set will be created with the TMZ bit set
in the PTEs or engines accessing them. This is required in order
to properly access the data from the engines.
Signed-off-by: Alex Deucher <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | include/uapi/drm/amdgpu_drm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index d28b4ce744d5..4a0829d35e72 100644 --- a/include/uapi/drm/amdgpu_drm.h +++ b/include/uapi/drm/amdgpu_drm.h @@ -133,6 +133,11 @@ extern "C" { * releasing the memory */ #define AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE (1 << 9) +/* Flag that BO will be encrypted and that the TMZ bit should be + * set in the PTEs when mapping this buffer via GPUVM or + * accessing it with various hw blocks + */ +#define AMDGPU_GEM_CREATE_ENCRYPTED (1 << 10) struct drm_amdgpu_gem_create_in { /** the requested memory size */ |