linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* add remap_pfn_range_notrack instead of reinventing it in i915
@ 2021-03-01  8:33 Christoph Hellwig
  2021-03-01  8:33 ` [PATCH 1/2] mm: add remap_pfn_range_notrack Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christoph Hellwig @ 2021-03-01  8:33 UTC (permalink / raw)
  To: Andrew Morton, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi
  Cc: Chris Wilson, Daniel Vetter, Peter Zijlstra, intel-gfx,
	dri-devel, linux-mm

Hi all,

i915 has some reason to want to avoid the track_pfn_remap overhead in
remap_pfn_range.  Add a function to the core VM to do just that rather
than reinventing the functionality poorly in the driver.

Note that the remap_io_sg path does get exercises when using Xorg on my
Thinkpad X1, so this should be considered lightly tested, I've not
managed to hit the remap_io_mapping path at all.


Diffstat:
 drivers/gpu/drm/i915/i915_mm.c |  101 ++++++++++-------------------------------
 include/linux/mm.h             |    2 
 mm/memory.c                    |   52 ++++++++++++---------
 3 files changed, 60 insertions(+), 95 deletions(-)


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

end of thread, other threads:[~2021-03-01  9:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01  8:33 add remap_pfn_range_notrack instead of reinventing it in i915 Christoph Hellwig
2021-03-01  8:33 ` [PATCH 1/2] mm: add remap_pfn_range_notrack Christoph Hellwig
2021-03-01  8:33 ` [PATCH 2/2] i915: use remap_pfn_range_notrack Christoph Hellwig
2021-03-01  8:44 ` add remap_pfn_range_notrack instead of reinventing it in i915 Daniel Vetter
2021-03-01  8:45   ` Christoph Hellwig
2021-03-01  9:13     ` [Intel-gfx] " Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).