Thread (43 messages) 43 messages, 5 authors, 5h ago

Re: [PATCH 08/13] mm: introduce vma_get_page_prot() and use it

From: Lorenzo Stoakes <ljs@kernel.org>
Date: 2026-07-02 15:40:38
Also in: dri-devel, intel-gfx, intel-xe, linux-arm-msm, linux-fbdev, linux-fsdevel, linux-mips, linux-samsung-soc, linux-sound, linux-tegra, lkml, nouveau, virtualization, xen-devel

On Thu, Jul 02, 2026 at 08:38:45PM +0800, Lance Yang wrote:
On Mon, Jun 29, 2026 at 08:25:31PM +0100, Lorenzo Stoakes wrote:
quoted
There's a large number of vm_get_page_prot(vma->vm_flags) invocations. Make
life easier by introducing vma_get_page_prot() parameterised by the VMA.

This also makes converting vm_get_page_prot() to vma_flags_t easier.

Also update the userland VMA tests to reflect the change.

No functional change intended.

Signed-off-by: Lorenzo Stoakes <ljs@kernel.org>
---
drivers/gpu/drm/drm_gem.c                   |  2 +-
drivers/gpu/drm/drm_gem_dma_helper.c        |  2 +-
drivers/gpu/drm/drm_gem_shmem_helper.c      |  2 +-
drivers/gpu/drm/etnaviv/etnaviv_gem.c       |  2 +-
drivers/gpu/drm/exynos/exynos_drm_gem.c     |  6 +++---
drivers/gpu/drm/i915/gem/i915_gem_mman.c    | 12 ++++++------
drivers/gpu/drm/msm/msm_gem.c               |  2 +-
drivers/gpu/drm/nouveau/nouveau_gem.c       |  2 +-
drivers/gpu/drm/omapdrm/omap_fbdev.c        |  2 +-
drivers/gpu/drm/omapdrm/omap_gem.c          |  6 +++---
drivers/gpu/drm/rockchip/rockchip_drm_gem.c |  2 +-
drivers/gpu/drm/tegra/gem.c                 |  2 +-
drivers/gpu/drm/virtio/virtgpu_vram.c       |  2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c  |  2 +-
drivers/gpu/drm/xe/xe_device.c              |  2 +-
drivers/gpu/drm/xe/xe_mmio_gem.c            |  2 +-
drivers/gpu/drm/xen/xen_drm_front_gem.c     |  2 +-
drivers/video/fbdev/core/fb_io_fops.c       |  2 +-
One missed?

drivers/gpu/drm/panthor/panthor_gem.c still has:

	vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);

Can use vma_get_page_prot(vma) too.
Oops! Will respin and update. Good spot!
[...]
Thanks, Lorenzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help