Skip to content

Commit 852d765

Browse files
committed
drm/shmem: drop pgprot_decrypted()
Was added by commit 95cf926 ("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]> Reviewed-by: Thomas Hellstrom <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6be7e07 commit 852d765

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/drm_gem_shmem_helper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
548548
vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
549549
if (!shmem->map_cached)
550550
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
551-
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
552551
vma->vm_ops = &drm_gem_shmem_vm_ops;
553552

554553
return 0;

0 commit comments

Comments
 (0)