Ville Syrjälä 1664ffee76 drm/i915: Mark ininitial fb obj as WT on eLLC machines to avoid rcu lockup during fbdev init
Currently we leave the cache_level of the initial fb obj
set to NONE. This means on eLLC machines the first pin_to_display()
will try to switch it to WT which requires a vma unbind+bind.
If that happens during the fbdev initialization rcu does not
seem operational which causes the unbind to get stuck. To
most appearances this looks like a dead machine on boot.

Avoid the unbind by already marking the object cache_level
as WT when creating it. We still do an excplicit ggtt pin
which will rewrite the PTEs anyway, so they will match whatever
cache level we set.

Cc: <stable@vger.kernel.org> # v5.7+
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2381
Signed-off-by: Ville Syrjälä <ville.syrjala@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/20201007120329.17076-1-ville.syrjala@linux.intel.com
Link: https://patchwork.freedesktop.org/patch/msgid/20201015122138.30161-1-chris@chris-wilson.co.uk
(cherry picked from commit d46b60a2e8d246f1f0faa38e52f4f5a73858c338)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2020-10-19 13:29:47 -04:00
..
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-09-23 09:52:24 +10:00
2020-09-16 13:08:10 +02:00
2020-08-11 11:58:31 +10:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-08-06 14:27:31 -07:00
2020-09-14 18:11:40 +02:00
2020-09-23 09:52:24 +10:00
2020-09-16 11:13:27 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-07-23 10:06:22 +02:00
2020-09-18 06:14:41 +10:00
2020-04-03 17:11:41 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-09-08 14:41:40 +10:00
2020-09-14 17:19:11 +02:00
2020-09-23 09:52:24 +10:00
2020-06-24 09:17:34 +02:00
2020-09-11 10:47:19 +02:00
2020-09-23 09:52:24 +10:00
2020-09-11 10:47:19 +02:00
2020-09-23 09:52:24 +10:00
2020-09-23 09:52:24 +10:00
2020-08-06 14:27:31 -07:00
2020-05-27 14:31:42 +03:00
2020-08-25 11:00:02 +02:00
2020-04-03 17:11:41 +02:00
2020-09-23 09:52:24 +10:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-09-23 09:52:24 +10:00
2020-09-21 10:45:08 +02:00
2020-06-24 15:45:51 +10:00
2020-05-29 12:58:11 +02:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-08-11 11:58:31 +10:00
2020-08-25 11:00:02 +02:00
2020-09-23 09:52:24 +10:00
2020-06-24 15:45:51 +10:00