Re: [PATCH] drm/cma-helper: Set VM_DONTEXPAND for mmap

2021-08-25 Thread Alyssa Rosenzweig
> drm_gem_cma_mmap() cannot assume every implementation of dma_mmap_wc() > will end up calling remap_pfn_range() (which happens to set the relevant > vma flag, among others), so in order to make sure expectations around > VM_DONTEXPAND are met, let it explicitly set the flag like most other > GEM m

[PATCH] drm/cma-helper: Set VM_DONTEXPAND for mmap

2021-08-25 Thread Robin Murphy
drm_gem_cma_mmap() cannot assume every implementation of dma_mmap_wc() will end up calling remap_pfn_range() (which happens to set the relevant vma flag, among others), so in order to make sure expectations around VM_DONTEXPAND are met, let it explicitly set the flag like most other GEM mmap implem