Zhenyu Wang
6bb2a2af8b
drm/i915/gvt: Fix crash after request->hw_context change
...
When we do shadowing, workload's request might not be allocated yet,
so we still require shadow context's object. And when complete workload,
delay to zero workload's request pointer after used for update guest context.
v2: Move request alloc earlier as already try to track shadow status
depending on request state, which also facilitate to use request->hw_context
for target engine context reference.
Fixes: 1fc44d9b1afb ("drm/i915: Store a pointer to intel_context in i915_request")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180521081752.31056-1-zhenyuw@linux.intel.com
2018-05-21 10:55:30 +01:00
..
2018-05-21 10:55:30 +01:00
2018-05-19 12:50:59 +01:00
2017-06-01 15:53:03 +03:00
2017-05-10 13:47:55 +03:00
2018-02-14 12:04:31 +00:00
2018-02-06 11:41:40 -08:00
2018-05-18 09:35:17 +01:00
2018-05-08 09:20:59 +01:00
2018-05-18 09:35:22 +01:00
2018-03-09 22:21:41 +00:00
2018-03-09 22:21:41 +00:00
2018-02-16 14:12:48 +00:00
2017-07-27 22:07:24 +02:00
2018-05-18 09:35:22 +01:00
2018-05-18 09:35:28 +01:00
2018-02-16 14:12:48 +00:00
2018-02-21 20:57:22 +00:00
2018-05-04 07:26:56 +01:00
2018-02-09 22:29:02 +00:00
2018-05-13 10:29:18 +01:00
2018-05-13 10:29:18 +01:00
2018-02-16 14:12:48 +00:00
2017-08-15 15:46:57 +01:00
2018-02-21 20:57:22 +00:00
2018-02-21 20:57:22 +00:00
2018-02-21 20:57:22 +00:00
2018-02-21 20:57:22 +00:00
2018-04-21 10:05:38 +02:00
2017-12-07 23:26:55 +00:00
2018-05-08 12:24:39 +01:00
2018-05-18 09:35:22 +01:00
2018-05-16 20:20:33 +01:00
2017-11-30 10:11:49 +02:00
2017-10-07 10:11:41 +01:00
2018-05-18 09:35:22 +01:00
2018-05-17 15:35:08 -07:00
2018-02-15 16:22:21 +00:00
2018-04-25 16:12:24 +01:00
2017-12-22 11:12:15 +00:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-09-18 19:46:36 +01:00
2018-02-12 23:34:50 -08:00
2017-11-13 15:59:03 +00:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2018-02-12 23:34:55 -08:00
2017-11-13 15:59:24 +00:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2018-03-29 13:25:30 +01:00
2018-03-29 13:25:30 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2017-11-02 14:52:58 +00:00
2017-08-03 18:18:05 +01:00
2018-05-17 20:52:39 +01:00
2018-05-17 20:52:39 +01:00
2018-03-20 16:26:39 +02:00
2018-05-18 09:35:22 +01:00
2018-04-18 14:17:09 +03:00
2018-03-09 22:21:41 +00:00
2017-10-16 13:56:29 +03:00
2018-03-08 10:07:24 +00:00
2018-03-08 10:07:18 +00:00
2018-05-17 19:39:01 +03:00
2018-05-18 09:35:22 +01:00
2018-05-18 09:35:22 +01:00
2018-04-18 21:09:11 +01:00
2017-11-10 11:31:58 +00:00
2017-09-29 12:30:17 +01:00
2018-01-15 10:29:18 +00:00
2017-07-09 18:48:37 -07:00
2018-02-08 15:08:51 +00:00
2017-05-03 11:08:48 +01:00
2018-03-12 11:24:49 -07:00
2018-05-02 23:57:18 +01:00
2018-05-02 23:57:18 +01:00
2017-11-02 11:10:55 +01:00
2018-05-18 09:35:17 +01:00
2018-04-30 16:01:18 +01:00
2017-08-15 10:12:48 +08:00
2017-10-16 13:56:29 +03:00
2018-05-04 07:26:56 +01:00
2018-05-04 07:26:56 +01:00
2017-11-02 11:10:55 +01:00
2018-05-11 09:53:22 +02:00
2018-04-09 15:58:53 +02:00
2018-04-18 14:26:15 +03:00
2018-05-09 05:34:20 -07:00
2018-05-19 12:50:58 +01:00
2018-05-03 06:33:18 -07:00
2018-03-21 09:40:55 -04:00
2018-05-17 19:29:49 +03:00
2018-05-02 13:05:01 +03:00
2018-05-18 17:23:40 +03:00
2018-04-26 18:14:29 +03:00
2018-03-21 10:36:33 +02:00
2018-05-17 15:35:10 -07:00
2018-04-20 14:28:15 -07:00
2017-09-22 14:50:36 +03:00
2018-04-26 18:21:02 +03:00
2018-04-07 18:26:15 -04:00
2018-05-18 17:23:40 +03:00
2018-04-10 13:12:22 +03:00
2018-05-07 16:49:57 -07:00
2018-05-07 16:42:47 -07:00
2018-05-18 17:23:40 +03:00
2017-08-16 18:02:00 +03:00
2018-04-19 15:20:10 +03:00
2018-01-29 21:55:07 +02:00
2017-03-07 15:18:43 +02:00
2018-05-17 19:39:01 +03:00
2018-05-19 12:50:58 +01:00
2018-04-10 16:29:24 +02:00
2018-05-02 12:20:32 +03:00
2017-09-25 16:54:09 +03:00
2018-03-13 13:50:22 -07:00
2018-03-15 10:00:03 +00:00
2018-04-30 16:01:13 +01:00
2018-01-03 14:02:10 +00:00
2018-04-10 17:15:29 +01:00
2018-03-28 20:35:17 +01:00
2018-03-23 17:03:24 +00:00
2017-12-06 14:41:47 +00:00
2018-04-13 13:23:02 +01:00
2018-03-21 15:09:14 +00:00
2018-03-21 15:09:14 +00:00
2018-03-14 15:35:37 +02:00
2018-05-18 09:35:22 +01:00
2017-12-14 08:06:54 +00:00
2018-04-13 13:23:02 +01:00
2018-03-28 20:35:18 +01:00
2017-12-06 14:41:49 +00:00
2017-05-30 15:59:47 +03:00
2018-05-03 10:43:45 +01:00
2018-04-06 09:57:31 +03:00
2018-05-17 19:33:38 +03:00
2018-03-23 14:59:09 -07:00
2018-03-23 17:03:24 +00:00
2018-03-02 09:04:45 +00:00
2018-03-21 15:04:28 +00:00
2018-03-21 15:04:28 +00:00
2018-02-16 09:36:04 +10:00
2018-02-08 17:28:53 +00:00
2018-03-07 15:07:39 +02:00
2018-05-19 12:50:58 +01:00
2018-05-18 09:35:22 +01:00
2018-01-30 10:24:19 -08:00
2018-05-19 12:50:56 +01:00
2018-05-03 16:41:04 -07:00
2018-02-21 20:57:22 +00:00
2018-01-19 11:58:48 +02:00
2017-12-22 09:19:48 +00:00
2017-12-22 09:19:48 +00:00
2018-03-13 13:49:39 -07:00
2018-02-14 12:02:44 +00:00
2018-05-04 10:23:43 +03:00
2018-05-11 15:54:18 +03:00
2018-05-09 05:34:20 -07:00
2017-08-14 12:15:49 +03:00
2018-05-18 09:35:28 +01:00
2018-05-19 12:50:58 +01:00
2018-05-07 17:42:22 +03:00
2018-05-17 19:33:38 +03:00
2017-10-11 08:56:56 +01:00
2018-05-11 10:19:48 +02:00
2018-05-17 19:38:12 +03:00
2018-03-23 17:03:24 +00:00
2018-05-02 13:40:17 -07:00
2018-03-29 11:29:30 +01:00
2018-03-23 17:03:24 +00:00
2018-05-16 20:20:39 +01:00
2018-03-20 16:26:28 +02:00
2018-02-07 12:32:14 -08:00
2018-03-28 14:42:56 +03:00
2018-03-14 15:35:37 +02:00
2018-05-13 10:29:44 +01:00
2018-04-14 18:36:45 +01:00
2017-09-19 13:06:21 +01:00
2018-03-28 20:38:23 +01:00
2018-05-08 12:44:31 +01:00