linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* add remap_pfn_range_notrack instead of reinventing it in i915 v2
@ 2021-03-26  5:55 Christoph Hellwig
  2021-03-26  5:55 ` [PATCH 1/4] mm: add remap_pfn_range_notrack Christoph Hellwig
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: Christoph Hellwig @ 2021-03-26  5:55 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.

Changes since v1:
 - create a io_mapping_map_user wrapper instead of exporting
   remap_pfn_range_notrack
 - switch to plain remap_pfn_range for remap_sg as it does not use
   a pre-verified pgprot from an iomap

Diffstat:
 drivers/gpu/drm/i915/Kconfig             |    1 
 drivers/gpu/drm/i915/gem/i915_gem_mman.c |    9 +-
 drivers/gpu/drm/i915/i915_drv.h          |    3 
 drivers/gpu/drm/i915/i915_mm.c           |  117 ++++++-------------------------
 include/linux/io-mapping.h               |    3 
 include/linux/mm.h                       |    2 
 mm/Kconfig                               |    3 
 mm/Makefile                              |    1 
 mm/io-mapping.c                          |   29 +++++++
 mm/memory.c                              |   51 ++++++++-----
 10 files changed, 97 insertions(+), 122 deletions(-)


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

end of thread, other threads:[~2021-10-21  6:18 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26  5:55 add remap_pfn_range_notrack instead of reinventing it in i915 v2 Christoph Hellwig
2021-03-26  5:55 ` [PATCH 1/4] mm: add remap_pfn_range_notrack Christoph Hellwig
2021-03-26  5:55 ` [PATCH 2/4] mm: add a io_mapping_map_user helper Christoph Hellwig
2021-10-20 15:40   ` [Intel-gfx] " Lucas De Marchi
2021-10-20 19:37     ` Peter Zijlstra
2021-10-21  6:18       ` Christoph Hellwig
2021-03-26  5:55 ` [PATCH 3/4] i915: use io_mapping_map_user Christoph Hellwig
2021-03-26  5:55 ` [PATCH 4/4] i915: fix remap_io_sg to verify the pgprot Christoph Hellwig
2021-05-08 19:33   ` [Intel-gfx] " youling257
2021-05-10  8:58     ` Christoph Hellwig
2021-05-16 16:06   ` Serge Belyshev
2021-05-17 12:37     ` Christoph Hellwig
2021-05-17 13:09       ` Serge Belyshev
2021-05-17 13:11         ` Christoph Hellwig
2021-05-17 17:06           ` [Intel-gfx] " Matthew Auld
2021-05-18 13:21             ` Christoph Hellwig
2021-05-18 15:00               ` Matthew Auld
2021-05-19  5:46                 ` Thomas Hellström (Intel)
2021-05-17 21:46           ` Thomas Hellström
2021-05-18  6:46             ` Thomas Hellström
2021-05-18 13:24               ` Christoph Hellwig
2021-05-18 13:33                 ` Thomas Hellström
2021-05-18 13:23             ` Christoph Hellwig
2021-05-19  5:51               ` Thomas Hellström
2021-04-08 10:36 ` add remap_pfn_range_notrack instead of reinventing it in i915 v2 Daniel Vetter
2021-04-08 11:28   ` Christoph Hellwig

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).