Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Fix mismerge of non-coherent DMA patch

The patch for supporting non coherent PCI DMA in the DRM was mismerged
causing the page protection to be updated for the wrong type of
mapping.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Benjamin Herrenschmidt and committed by
Dave Airlie
5ff64611 b1721d0d

+1 -1
+1 -1
drivers/char/drm/drm_vm.c
··· 640 640 /* Don't let this area swap. Change when 641 641 DRM_KERNEL advisory is supported. */ 642 642 vma->vm_flags |= VM_RESERVED; 643 - vma->vm_page_prot = drm_dma_prot(map->type, vma); 644 643 break; 645 644 case _DRM_SCATTER_GATHER: 646 645 vma->vm_ops = &drm_vm_sg_ops; 647 646 vma->vm_private_data = (void *)map; 648 647 vma->vm_flags |= VM_RESERVED; 648 + vma->vm_page_prot = drm_dma_prot(map->type, vma); 649 649 break; 650 650 default: 651 651 return -EINVAL; /* This should never happen. */