All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mm, drm/ttm: Fix pte insertion with customized protection
@ 2019-12-12  8:47 ` Thomas Hellström (VMware)
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Hellström (VMware) @ 2019-12-12  8:47 UTC (permalink / raw)
  To: linux-mm, linux-kernel, dri-devel
  Cc: pv-drivers, linux-graphics-maintainer, Thomas Hellstrom,
	Andrew Morton, Michal Hocko, Matthew Wilcox (Oracle),
	Kirill A. Shutemov, Ralph Campbell, Jérôme Glisse,
	Christian König

From: Thomas Hellstrom <thellstrom@vmware.com>

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.

I'd like to merge this 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)

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: "Christian König" <christian.koenig@amd.com>

-- 
2.21.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-12-23 22:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  8:47 [PATCH v4 0/2] mm, drm/ttm: Fix pte insertion with customized protection Thomas Hellström (VMware)
2019-12-12  8:47 ` Thomas Hellström (VMware)
2019-12-12  8:47 ` [PATCH v4 1/2] mm: Add a vmf_insert_mixed_prot() function Thomas Hellström (VMware)
2019-12-12  8:47   ` Thomas Hellström (VMware)
2019-12-12  8:51   ` Thomas Hellstrom
2019-12-12  8:51     ` Thomas Hellstrom
2019-12-20  8:23   ` Michal Hocko
2019-12-20  8:23     ` Michal Hocko
2019-12-12  8:47 ` [PATCH v4 2/2] mm, drm/ttm: Fix vm page protection handling Thomas Hellström (VMware)
2019-12-12  8:47   ` Thomas Hellström (VMware)
2019-12-20  8:06 ` Ack to merge through DRM tree? WAS [PATCH v4 0/2] mm, drm/ttm: Fix pte insertion with customized protection Thomas Hellström (VMware)
2019-12-20  8:06   ` Thomas Hellström (VMware)
2019-12-23 22:34   ` Andrew Morton
2019-12-23 22:34     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.