summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-07-01 02:08:14 +0000
committerjsg <jsg@openbsd.org>2020-07-01 02:08:14 +0000
commit712f623d7fa07a271f333fffba2099f1210b7d14 (patch)
tree3ad851b210bddb785f9651ad2fe1b32ff80e1e1c
parentRe-enable silent mode in perl Configure (diff)
downloadwireguard-openbsd-712f623d7fa07a271f333fffba2099f1210b7d14.tar.xz
wireguard-openbsd-712f623d7fa07a271f333fffba2099f1210b7d14.zip
disable logical ring contexts on cherryview/braswell
avoids gpu hangs seen when starting Xorg seen with 4.19 and 5.7 drm 'intel_engine_reset *NOTICE* Resetting rcs0 for stopped heartbeat on rcs0' reported by multiple people on bugs@ workaround tested by Martin Ziemer and myself
-rw-r--r--sys/dev/pci/drm/i915/i915_pci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/i915_pci.c b/sys/dev/pci/drm/i915/i915_pci.c
index 38a66df95eb..97b3504abb1 100644
--- a/sys/dev/pci/drm/i915/i915_pci.c
+++ b/sys/dev/pci/drm/i915/i915_pci.c
@@ -588,7 +588,15 @@ static const struct intel_device_info chv_info = {
.has_runtime_pm = 1,
.has_rc6 = 1,
.has_rps = true,
+#ifdef __linux__
.has_logical_ring_contexts = 1,
+#else
+ /*
+ * avoid 'Resetting rcs0 for stopped heartbeat on rcs0' GPU hang
+ * when starting X
+ */
+ .has_logical_ring_contexts = 0,
+#endif
.display.has_gmch = 1,
.ppgtt_type = INTEL_PPGTT_ALIASING,
.ppgtt_size = 32,