John Hubbard 2170ecfa76 drm/i915: convert get_user_pages() --> pin_user_pages()
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA),
using the categorization from [1].  That means that it's time to convert
the get_user_pages*() + put_page() calls to pin_user_pages*() +
unpin_user_pages() calls.

There is some helpful background in [2]: basically, this is a small part
of fixing a long-standing disconnect between pinning pages, and file
systems' use of those pages.

[1] Documentation/core-api/pin_user_pages.rst

[2] "Explicit pinning of user-space pages":
    https://lwn.net/Articles/807108/

Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Souptick Joarder <jrdr.linux@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: "Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://lkml.kernel.org/r/20200519002124.2025955-5-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-03 20:09:42 -07:00
..
2020-06-02 13:25:52 -07:00
2020-03-23 07:59:38 +01:00
2020-06-02 15:29:19 -07:00
2020-06-02 15:29:19 -07:00
2020-06-02 19:45:12 -07:00
2020-06-02 15:04:15 -07:00
2020-06-02 13:17:23 -07:00
2020-06-02 15:04:15 -07:00
2020-04-27 13:28:27 -07:00
2020-05-04 10:13:42 -06:00
2020-04-16 13:52:31 -07:00
2020-06-02 15:29:19 -07:00
2020-03-19 23:04:32 -05:00
2020-06-02 15:37:03 -07:00
2020-06-02 12:48:58 -07:00
2020-04-03 15:05:35 -07:00
2020-06-02 12:56:58 -07:00
2020-06-02 13:17:23 -07:00
2020-06-02 15:29:19 -07:00
2020-06-02 13:17:23 -07:00
2020-04-03 14:25:02 -07:00
2020-06-02 15:37:03 -07:00
2020-06-02 13:25:52 -07:00
2020-06-02 10:59:10 -07:00
2020-06-01 15:18:27 -07:00
2020-06-02 12:56:58 -07:00
2020-04-23 09:28:15 -07:00
2020-04-17 06:05:29 -04:00
2020-04-07 19:48:52 -07:00
2020-06-02 15:37:03 -07:00
2020-06-02 15:37:03 -07:00
2020-06-02 13:17:23 -07:00
2020-06-02 12:48:58 -07:00
2020-04-03 15:05:35 -07:00
2020-06-02 12:56:58 -07:00
2020-05-21 12:59:29 -07:00
2020-06-02 15:04:15 -07:00
2020-03-19 07:41:03 +01:00
2020-05-06 15:49:24 +03:00
2020-04-17 10:35:17 -07:00
2020-04-03 13:12:26 -07:00
2020-04-08 10:51:53 -07:00
2020-04-08 10:51:53 -07:00