drm/shmem: drop pgprot_decrypted()
Subsystems (2)
PATCH 1/1 drm/shmem: drop pgprot_decrypted()
Was added by commit 95cf9264d5f3 ("x86, drm, fbdev: Do not specify encrypted memory for video mappings"), then it was kept through various changes.
While vram actually needs decrypted mappings this is not correct for shmem gem objects which live in main memory not io memory, so remove the call.
--- drivers/gpu/drm/drm_gem_shmem_helper.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/drm_gem_shmem_helper.c +0 -1
@@ -548,7 +548,6 @@ int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) vma->vm_page_prot =vm_get_page_prot (vma->vm_flags);if (!shmem->map_cached) vma->vm_page_prot =pgprot_writecombine (vma->vm_page_prot); - vma->vm_page_prot =pgprot_decrypted (vma->vm_page_prot); vma->vm_ops = &drm_gem_shmem_vm_ops;return 0 ;
Signature · 1 line
2.18.2
Quoted 18 lines · Gerd Hoffmann
Was added by commit
95cf9264d5f3("x86, drm, fbdev: Do not specify encrypted memory for video mappings"), then it was kept through various changes.While vram actually needs decrypted mappings this is not correct for shmem gem objects which live in main memory not io memory, so remove the call.
Signed-off-by Gerd Hoffmann <[email protected]>--- drivers/gpu/drm/drm_gem_shmem_helper.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/drm_gem_shmem_helper.c +0
-0
drivers/gpu/drm/drm_gem_shmem_helper.c int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) · line 553
Quoted 7 lines
drivers/gpu/drm/drm_gem_shmem_helper.c +0
-1@@ -548,7 +548,6 @@ int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) vma->vm_page_prot =vm_get_page_prot (vma->vm_flags);if (!shmem->map_cached) vma->vm_page_prot =pgprot_writecombine (vma->vm_page_prot); - vma->vm_page_prot =pgprot_decrypted (vma->vm_page_prot); vma->vm_ops = &drm_gem_shmem_vm_ops;return 0 ;
Thanks,
Thomas