Chris Wilson
c4d52feb2c
drm/i915: Move over to intel_context_lookup()
...
In preparation for an ever growing number of engines and so ever
increasing static array of HW contexts within the GEM context, move the
array over to an rbtree, allocated upon first use.
Unfortunately, this imposes an rbtree lookup at a few frequent callsites,
but we should be able to mitigate those by moving over to using the HW
context as our primary type and so only incur the lookup on the boundary
with the user GEM context and engines.
v2: Check for no HW context in guc_stage_desc_init
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190308132522.21573-4-chris@chris-wilson.co.uk
2019-03-08 13:59:52 +00:00
..
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2018-06-18 14:45:58 +03:00
2019-01-09 10:26:36 +02:00
2019-02-05 17:20:11 +00:00
2019-03-06 10:00:50 +00:00
2019-03-08 10:57:12 +00:00
2019-03-05 18:19:50 +00:00
2019-03-08 13:59:41 +00:00
2019-03-08 10:57:05 +00:00
2019-03-08 10:57:08 +00:00
2018-11-20 12:49:24 +02:00
2018-03-09 22:21:41 +00:00
2018-03-09 22:21:41 +00:00
2018-08-17 11:22:15 +02:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-02-28 11:08:02 +00:00
2019-03-08 10:57:12 +00:00
2019-03-08 13:59:52 +00:00
2019-02-20 16:40:13 +00:00
2019-01-25 14:27:22 +00:00
2019-03-05 18:20:05 +00:00
2019-03-05 18:19:50 +00:00
2019-02-28 11:08:02 +00:00
2019-03-06 10:00:50 +00:00
2019-03-06 10:00:50 +00:00
2019-03-05 18:19:50 +00:00
2018-02-21 20:57:22 +00:00
2019-01-28 16:24:13 +00:00
2019-02-28 11:08:02 +00:00
2019-01-09 10:26:36 +02:00
2019-02-28 11:08:02 +00:00
2019-03-08 13:59:52 +00:00
2019-03-07 18:09:26 +00:00
2017-11-30 10:11:49 +02:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-03-05 18:20:06 +00:00
2019-03-05 15:46:02 +00:00
2019-01-24 13:20:42 +01:00
2019-03-05 18:19:50 +00:00
2017-12-22 11:12:15 +00:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2018-10-23 15:09:16 +01:00
2019-01-29 10:41:58 +01:00
2019-01-29 10:41:58 +01:00
2019-03-07 12:08:41 -08:00
2019-03-08 13:59:52 +00:00
2019-03-05 18:19:50 +00:00
2019-02-12 15:37:24 +02:00
2018-06-07 10:24:50 +08:00
2019-02-26 10:32:57 +00:00
2018-03-08 10:07:18 +00:00
2019-03-07 23:21:46 +02:00
2019-03-08 10:57:08 +00:00
2019-03-06 10:00:50 +00:00
2019-03-05 18:19:50 +00:00
2019-02-20 16:31:08 +00:00
2019-03-06 10:00:50 +00:00
2019-03-06 10:00:50 +00:00
2019-01-29 19:59:57 +00:00
2019-02-05 09:43:23 -08:00
2019-03-01 17:45:07 +00:00
2019-03-01 17:45:07 +00:00
2018-09-26 13:32:03 +01:00
2019-01-14 16:18:25 +00:00
2019-03-08 13:59:44 +00:00
2019-03-01 17:40:33 +00:00
2019-03-08 13:59:44 +00:00
2017-11-02 11:10:55 +01:00
2019-02-26 09:55:37 +00:00
2018-11-29 22:00:49 +02:00
2018-06-05 21:11:20 +01:00
2018-06-05 16:57:01 +03:00
2019-03-06 10:00:50 +00:00
2019-03-06 10:00:50 +00:00
2019-02-14 15:22:34 +02:00
2019-01-09 10:26:36 +02:00
2019-02-20 11:04:08 +02:00
2019-02-11 10:35:35 +01:00
2019-02-20 11:53:48 +02:00
2019-01-31 16:28:33 +02:00
2019-03-04 16:29:28 +00:00
2019-03-04 10:08:13 -08:00
2019-02-13 11:25:44 +01:00
2018-11-15 16:36:58 -08:00
2019-02-20 20:38:36 +01:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-02-04 14:42:34 +10:00
2019-01-21 11:09:16 +02:00
2019-03-04 15:07:59 -08:00
2019-03-05 18:19:50 +00:00
2019-03-05 18:19:50 +00:00
2019-03-06 17:23:27 +02:00
2019-02-20 11:53:48 +02:00
2018-06-18 14:46:04 +03:00
2019-01-17 09:02:06 +02:00
2019-02-11 10:35:35 +01:00
2019-03-08 13:25:31 +02:00
2019-01-17 09:02:00 +02:00
2019-03-01 16:46:33 -08:00
2019-01-29 14:35:02 -08:00
2019-02-26 19:54:48 +02:00
2019-01-09 10:35:05 +01:00
2018-11-13 17:20:32 +02:00
2019-01-21 10:45:23 +01:00
2019-01-24 19:44:16 +10:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:52 +00:00
2019-02-04 14:42:34 +10:00
2019-02-20 11:04:08 +02:00
2019-02-05 09:43:23 -08:00
2019-01-09 10:26:36 +02:00
2019-03-01 17:45:07 +00:00
2019-03-08 13:59:52 +00:00
2018-01-03 14:02:10 +00:00
2019-02-20 23:53:04 +00:00
2019-02-20 23:53:04 +00:00
2019-01-08 22:41:09 +00:00
2017-12-06 14:41:47 +00:00
2018-10-23 09:42:25 +01:00
2019-02-22 11:25:32 +00:00
2018-06-12 15:44:47 +01:00
2018-10-23 09:42:25 +01:00
2019-03-08 13:59:52 +00:00
2018-08-28 13:41:27 +01:00
2019-02-20 23:53:04 +00:00
2019-03-08 13:59:44 +00:00
2019-01-10 11:38:34 +08:00
2019-03-05 18:19:50 +00:00
2019-02-21 10:05:25 +00:00
2019-02-26 19:54:48 +02:00
2019-02-05 09:43:23 -08:00
2019-01-08 22:41:09 +00:00
2018-03-02 09:04:45 +00:00
2019-01-14 16:18:25 +00:00
2018-06-28 22:51:33 +01:00
2019-02-05 09:43:23 -08:00
2019-01-24 13:20:42 +01:00
2018-08-01 17:03:31 +01:00
2019-03-08 13:59:52 +00:00
2019-02-05 11:31:52 +00:00
2019-02-26 19:54:48 +02:00
2019-01-24 13:02:08 +01:00
2019-03-05 18:19:50 +00:00
2019-01-09 10:26:36 +02:00
2019-02-18 13:27:15 +10:00
2018-11-30 09:46:31 +00:00
2019-03-05 18:19:50 +00:00
2019-01-24 13:02:48 +01:00
2019-02-20 22:52:31 +02:00
2019-03-08 10:07:49 +02:00
2019-02-07 13:16:53 -08:00
2018-10-18 13:40:13 +03:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 10:07:49 +02:00
2019-02-26 19:54:48 +02:00
2019-02-08 14:29:39 +02:00
2019-01-29 23:27:31 +02:00
2019-01-08 22:41:09 +00:00
2018-10-04 07:29:47 +01:00
2019-02-20 23:53:21 +00:00
2019-02-20 23:53:21 +00:00
2019-02-05 20:44:43 +02:00
2018-08-15 13:41:05 -07:00
2018-11-15 16:22:17 +02:00
2019-01-14 16:18:30 +00:00
2018-12-31 15:27:23 +02:00
2018-03-14 15:35:37 +02:00
2019-03-08 13:59:44 +00:00
2019-03-05 18:55:06 +00:00
2019-03-08 13:59:44 +00:00
2018-12-22 00:25:54 +09:00
2019-01-14 16:17:50 +00:00
2019-03-08 13:59:52 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 13:59:44 +00:00
2019-03-08 13:59:44 +00:00
2019-01-21 10:45:23 +01:00
2019-02-05 09:43:23 -08:00