]> Git Repo - linux.git/commitdiff
drm/amdgpu: Add flag to wipe VRAM on release
authorFelix Kuehling <[email protected]>
Tue, 9 Jul 2019 00:09:21 +0000 (20:09 -0400)
committerAlex Deucher <[email protected]>
Fri, 2 Aug 2019 15:18:23 +0000 (10:18 -0500)
This memory allocation flag will be used to indicate BOs containing
sensitive data that should not be leaked to other processes.

Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
include/uapi/drm/amdgpu_drm.h

index 11cc573229627a918061ed548ca6af496f900b61..c99b4f2482c6bf9b80b87ba847700839cbc8bd7f 100644 (file)
@@ -128,6 +128,10 @@ extern "C" {
  * for the second page onward should be set to NC.
  */
 #define AMDGPU_GEM_CREATE_MQD_GFX9             (1 << 8)
+/* Flag that BO may contain sensitive data that must be wiped before
+ * releasing the memory
+ */
+#define AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE (1 << 9)
 
 struct drm_amdgpu_gem_create_in  {
        /** the requested memory size */
This page took 0.054174 seconds and 4 git commands to generate.