Maarten Lankhorst
0b4d1f0e93
drm/i915: Remove pages_mutex and intel_gtt->vma_ops.set/clear_pages members, v3.
...
Big delta, but boils down to moving set_pages to i915_vma.c, and removing
the special handling, all callers use the defaults anyway. We only remap
in ggtt, so default case will fall through.
Because we still don't require locking in i915_vma_unpin(), handle this by
using xchg in get_pages(), as it's locked with obj->mutex, and cmpxchg in
unpin, which only fails if we race a against a new pin.
Changes since v1:
- aliasing gtt sets ZERO_SIZE_PTR, not -ENODEV, remove special case
from __i915_vma_get_pages(). (Matt)
Changes since v2:
- Free correct old pages in __i915_vma_get_pages(). (Matt)
Remove race of clearing vma->pages accidentally from put,
free it but leave it set, as only get has the lock.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com >
Link: https://patchwork.freedesktop.org/patch/msgid/20211216142749.1966107-4-maarten.lankhorst@linux.intel.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com >
2021-12-20 16:31:02 +01:00
..
2021-10-14 12:22:55 +03:00
2021-03-19 18:31:49 +02:00
2021-11-09 10:02:41 -05:00
2021-03-19 18:31:49 +02:00
2021-07-08 14:05:15 +03:00
2021-02-08 12:09:28 +02:00
2021-11-17 08:46:47 -05:00
2021-10-13 13:41:16 +03:00
2021-09-09 12:59:07 +02:00
2021-12-17 21:49:50 -08:00
2021-07-08 14:05:15 +03:00
2021-05-26 09:40:54 -04:00
2021-05-19 23:59:23 -07:00
2021-10-05 11:52:41 +03:00
2021-08-26 10:40:41 +03:00
2021-08-26 10:40:41 +03:00
2021-11-01 16:39:18 -04:00
2021-03-18 14:44:16 +02:00
2021-12-01 09:21:47 +00:00
2021-10-27 06:10:04 -04:00
2021-09-29 08:58:39 +03:00
2021-10-01 10:48:59 +03:00
2021-10-14 18:47:25 +03:00
2021-10-01 13:45:37 +03:00
2021-09-15 18:08:29 +03:00
2021-03-29 12:39:35 -07:00
2021-07-30 10:11:24 -07:00
2021-04-28 11:17:11 +03:00
2021-10-12 12:58:40 +03:00
2021-10-07 20:56:10 +03:00
2021-10-14 18:45:59 +03:00
2021-11-09 10:02:41 -05:00
2021-10-04 13:04:36 +03:00
2021-05-05 21:05:58 +03:00
2021-10-14 12:22:55 +03:00
2021-10-01 13:45:37 +03:00
2021-10-14 18:04:17 +03:00
2021-09-15 18:08:29 +03:00
2021-10-12 12:03:58 -04:00
2021-12-17 21:49:50 -08:00
2021-10-12 12:58:40 +03:00
2021-09-23 10:06:15 -07:00
2021-06-21 16:15:29 -07:00
2021-11-17 17:36:49 -05:00
2021-09-29 23:57:37 +03:00
2021-01-21 13:27:42 +02:00
2021-09-09 13:10:40 +05:30
2021-04-28 11:07:01 +03:00
2021-10-12 12:10:39 +03:00
2021-10-06 22:12:48 +03:00
2021-10-25 21:21:07 -04:00
2021-10-08 13:14:25 +03:00
2021-11-18 09:36:39 +01:00
2021-09-30 11:27:55 +03:00
2021-10-14 12:22:55 +03:00
2021-10-04 12:43:01 +03:00
2021-09-29 23:57:37 +03:00
2021-08-25 17:14:31 +03:00
2021-10-14 12:22:55 +03:00
2021-10-01 10:48:59 +03:00
2021-12-20 16:31:02 +01:00
2021-08-24 20:46:52 +03:00
2021-09-07 15:39:43 -07:00
2021-09-07 15:39:43 -07:00
2021-05-05 21:04:42 +03:00
2021-09-08 19:34:41 +05:30
2021-10-14 12:22:55 +03:00
2021-09-30 11:21:35 +03:00
2021-10-01 10:48:59 +03:00
2021-09-30 11:20:13 +03:00
2021-10-12 12:58:40 +03:00
2021-10-12 12:58:40 +03:00
2021-11-09 10:02:44 -05:00
2021-08-24 20:47:17 +03:00
2021-12-01 09:21:47 +00:00
2021-08-20 16:48:51 +03:00
2021-10-12 12:58:40 +03:00
2021-10-14 18:05:04 +03:00
2021-10-01 11:51:17 +03:00
2021-05-26 06:46:33 -07:00
2021-08-30 12:39:59 -07:00
2021-09-30 15:04:44 -07:00
2021-07-30 10:19:47 -07:00
2021-10-14 18:04:17 +03:00
2021-01-13 08:29:32 +05:30
2021-11-09 10:02:41 -05:00
2021-11-09 10:02:41 -05:00
2021-10-14 23:23:55 +03:00
2021-02-02 13:58:42 +02:00
2021-05-21 08:55:23 +10:00
2021-10-01 10:48:59 +03:00
2021-08-26 10:40:41 +03:00
2021-12-17 21:49:50 -08:00
2021-09-30 11:20:40 +03:00
2021-09-30 11:20:13 +03:00
2021-05-05 21:04:42 +03:00
2021-10-12 12:58:33 +03:00
2021-10-12 12:58:33 +03:00
2021-10-01 10:48:59 +03:00
2021-10-01 10:48:59 +03:00
2021-09-30 15:04:45 -07:00
2021-09-23 10:06:17 -07:00
2021-05-19 23:59:12 -07:00
2021-05-19 23:59:12 -07:00
2021-06-24 11:19:49 +03:00
2021-09-30 11:20:13 +03:00
2021-10-14 18:45:35 +03:00
2021-10-04 12:42:55 +03:00
2021-07-08 14:05:15 +03:00
2021-03-29 22:54:50 +03:00
2021-09-29 23:58:11 +03:00
2021-09-29 23:58:04 +03:00
2021-09-15 18:08:29 +03:00
2021-10-05 11:52:48 +03:00
2021-09-15 18:08:29 +03:00
2021-09-15 18:08:29 +03:00
2021-07-23 11:32:43 +10:00
2021-05-26 06:46:37 -07:00
2021-03-29 12:39:35 -07:00
2021-07-30 10:19:17 -07:00
2021-02-08 12:12:41 +02:00
2021-10-11 18:09:39 +10:00
2021-03-29 22:54:50 +03:00
2021-10-14 12:22:55 +03:00
2021-10-14 12:22:55 +03:00