]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/drm_gem.c
Merge airlied/drm-next into drm-misc-next
[J-linux.git] / drivers / gpu / drm / drm_gem.c
index 4e710ec40599407f9d11ad9c8959781cebe10d45..811f6d26d108c3f2e7bb796343855eaa500452cd 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/pagemap.h>
 #include <linux/shmem_fs.h>
 #include <linux/dma-buf.h>
+#include <linux/mem_encrypt.h>
 #include <drm/drmP.h>
 #include <drm/drm_vma_manager.h>
 #include <drm/drm_gem.h>
@@ -962,6 +963,7 @@ int drm_gem_mmap_obj(struct drm_gem_object *obj, unsigned long obj_size,
        vma->vm_ops = dev->driver->gem_vm_ops;
        vma->vm_private_data = obj;
        vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags));
+       vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
 
        /* Take a ref for this mapping of the object, so that the fault
         * handler can dereference the mmap offset's pointer to the object.
This page took 0.036909 seconds and 4 git commands to generate.