Skip to content

RFC mm,drm/ttm: Always block GUP to TTM pages

Thomas Hellström (Intel) dri-devel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 61 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm,drm/ttm: Block fast GUP to TTM huge pagesdrivers/gpu/drm/ttm/ttm_bo_vm.c mm/gup.c mm/memremap.c+32 -1152 replies
2/2mm,drm/ttm: Use VM_PFNMAP for TTM vmasdrivers/gpu/drm/ttm/ttm_bo_vm.c include/linux/mm.h mm/internal.h+13 -199 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDaniel Vetter
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/2] mm,drm/ttm: Always block GUP to TTM pages

get_user_pages() to TTM pages is uwanted since TTM assumes it owns the pages exclusively and / or sets up page-table mappings to io memory.

The first patch make sures we stop fast gup to huge TTM pages using a trick with pmd_devmap() and pud_devmap() without a backing dev_pagemap.

The second patch makes sure we block normal gup by setting VM_PFNMAP

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel