Skip to content

mm, drm/ttm: Fix pte insertion with customized protection

Thomas Hellström (VMware) dri-devel linux-mm lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 2 repliesIn review
  2. v42 patches 4 repliesSuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches9 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

*) Fixed a typo
*) Added acks.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: Add a vmf_insert_mixed_prot() functioninclude/linux/mm.h include/linux/mm_types.h mm/memory.c+47 -50 replies
2/2mm, drm/ttm: Fix vm page protection handlingdrivers/gpu/drm/ttm/ttm_bo_vm.c mm/memory.c+16 -70 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristian KönigAndrew MortonMichal Hocko
1/2A-b A-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/2] mm, drm/ttm: Fix pte insertion with customized protection

From: Thomas Hellstrom <[email protected]>

The drm/ttm module is using a modified on-stack copy of the struct vm_area_struct to be able to set a page protection with customized caching. Fix that by adding a vmf_insert_mixed_prot() function similar to the existing vmf_insert_pfn_prot() for use with drm/ttm.

Patches are acked to be merged through a drm tree.

Changes since v1:
*) Formatting fixes in patch 1
*) Updated commit message of patch 2.
Changes since v2:
*) Moved vmf_insert_mixed_prot() export to patch 2 (Michal Hocko) *) Documented under which conditions it's safe to use a page protection
different from struct vm_area_struct::vm_page_prot. (Michal Hocko)
Changes since v3:
*) More documentation regarding under which conditions it's safe to use a
page protection different from struct vm_area_struct::vm_page_prot. This time also in core vm. (Michal Hocko)
Changes since v4:
*) Fixed a typo
*) Added acks.

Cc Andrew Morton <[email protected]>
Cc Michal Hocko <[email protected]>
Cc "Matthew Wilcox (Oracle)" <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Ralph Campbell <[email protected]>
Cc "Jérôme Glisse" <[email protected]>
Cc "Christian König" <[email protected]>
Signature · 1 line
2.21.0