Matthew Auld 6ef295e342 drm/i915/ttm: ensure we unmap when purging
Purging can happen during swapping out, or directly invoked with the
madvise ioctl. In such cases this doesn't involve a ttm move, which
skips umapping the object.

v2(Thomas):
- add ttm_truncate helper, and just call into i915_ttm_move_notify() to
  handle the unmapping step

Fixes: 213d50927763 ("drm/i915/ttm: Introduce a TTM i915 gem object backend")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220106174910.280616-4-matthew.auld@intel.com
(cherry picked from commit ab4911b7d411ab2ef3b38322178b9138e156c393)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2022-01-10 14:00:47 +00:00
..
2021-12-14 10:24:28 +01:00
2021-12-14 10:24:28 +01:00
2021-08-10 20:14:01 +02:00
2021-12-14 10:24:28 +01:00
2021-12-14 10:24:28 +01:00
2021-12-14 10:24:28 +01:00
2021-10-28 14:59:38 +10:00
2021-12-10 15:08:21 +10:00
2021-11-23 09:38:55 +10:00
2021-12-10 15:08:21 +10:00
2021-12-14 10:24:28 +01:00
2021-11-05 11:15:14 +01:00
2021-12-16 14:48:27 +01:00
2021-08-10 20:14:01 +02:00
2021-12-14 10:24:28 +01:00
2021-12-14 10:24:28 +01:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-10-28 14:59:38 +10:00
2021-08-02 10:19:43 +02:00
2021-12-10 15:08:21 +10:00
2021-12-14 10:24:28 +01:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-08-28 19:00:20 +02:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-05-17 21:19:48 +02:00
2021-08-02 10:19:43 +02:00
2021-11-12 12:11:07 -08:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00
2021-12-10 12:36:52 +01:00
2021-12-10 12:36:52 +01:00