History

drm/amdgpu: Add flag to wipe VRAM on release

This memory allocation flag will be used to indicate BOs containing sensitive data that should not be leaked to other processes.

Felix Kuehling committed 7 years ago

Commit d8f49811 parent 274840e1 file · +4 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/amdgpu_drm.h+4−0
@@ -128,6 +128,10 @@ extern "C" { · 127 unmodified lines
128128 * for the second page onward should be set to NC.
129129 */
130130 #define AMDGPU_GEM_CREATE_MQD_GFX9 (1 << 8)
131+/* Flag that BO may contain sensitive data that must be wiped before
132+ * releasing the memory
133+ */
134+#define AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE (1 << 9)
131135
132136 struct drm_amdgpu_gem_create_in {
133137 /** the requested memory size */