]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Mar 2012 19:44:47 +0000 (11:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Mar 2012 19:44:47 +0000 (11:44 -0800)
added patches:
drm-i915-gen7-disable-the-rhwo-optimization-as-it-can-cause-gpu-hangs.patch
drm-i915-gen7-work-around-a-system-hang-on-ivb.patch

queue-3.0/drm-i915-gen7-disable-the-rhwo-optimization-as-it-can-cause-gpu-hangs.patch [new file with mode: 0644]
queue-3.0/drm-i915-gen7-work-around-a-system-hang-on-ivb.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/drm-i915-gen7-disable-the-rhwo-optimization-as-it-can-cause-gpu-hangs.patch b/queue-3.0/drm-i915-gen7-disable-the-rhwo-optimization-as-it-can-cause-gpu-hangs.patch
new file mode 100644 (file)
index 0000000..43a9c2d
--- /dev/null
@@ -0,0 +1,49 @@
+From d71de14ddf423ccc9a2e3f7e37553c99ead20d7c Mon Sep 17 00:00:00 2001
+From: Kenneth Graunke <kenneth@whitecape.org>
+Date: Wed, 8 Feb 2012 12:53:52 -0800
+Subject: drm/i915: gen7: Disable the RHWO optimization as it can cause GPU hangs.
+
+From: Kenneth Graunke <kenneth@whitecape.org>
+
+commit d71de14ddf423ccc9a2e3f7e37553c99ead20d7c upstream.
+
+The BSpec Workarounds page states that bits 10 and 26 must be set to
+avoid 3D ring hangs.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41353
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44610
+Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
+Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
+Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/i915/i915_reg.h      |    3 +++
+ drivers/gpu/drm/i915/intel_display.c |    4 ++++
+ 2 files changed, 7 insertions(+)
+
+--- a/drivers/gpu/drm/i915/i915_reg.h
++++ b/drivers/gpu/drm/i915/i915_reg.h
+@@ -2848,6 +2848,9 @@
+ #define  DISP_FBC_WM_DIS              (1<<15)
+ /* GEN7 chicken */
++#define GEN7_COMMON_SLICE_CHICKEN1            0x7010
++# define GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC    ((1<<10) | (1<<26))
++
+ #define GEN7_L3CNTLREG1                               0xB01C
+ #define  GEN7_WA_FOR_GEN7_L3_CONTROL                  0x3C4FFF8C
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -7464,6 +7464,10 @@ static void ivybridge_init_clock_gating(
+       I915_WRITE(ILK_DSPCLK_GATE, IVB_VRHUNIT_CLK_GATE);
++      /* Apply the WaDisableRHWOOptimizationForRenderHang workaround. */
++      I915_WRITE(GEN7_COMMON_SLICE_CHICKEN1,
++                 GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC);
++
+       /* WaApplyL3ControlAndL3ChickenMode requires those two on Ivy Bridge */
+       I915_WRITE(GEN7_L3CNTLREG1,
+                       GEN7_WA_FOR_GEN7_L3_CONTROL);
diff --git a/queue-3.0/drm-i915-gen7-work-around-a-system-hang-on-ivb.patch b/queue-3.0/drm-i915-gen7-work-around-a-system-hang-on-ivb.patch
new file mode 100644 (file)
index 0000000..755f001
--- /dev/null
@@ -0,0 +1,52 @@
+From db099c8f963fe656108e0a068274c5580a17f69b Mon Sep 17 00:00:00 2001
+From: Eugeni Dodonov <eugeni.dodonov@intel.com>
+Date: Wed, 8 Feb 2012 12:53:51 -0800
+Subject: drm/i915: gen7: work around a system hang on IVB
+
+From: Eugeni Dodonov <eugeni.dodonov@intel.com>
+
+commit db099c8f963fe656108e0a068274c5580a17f69b upstream.
+
+This adds the workaround for WaCatErrorRejectionIssue which could result
+in a system hang.
+
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41353
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44610
+Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
+Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
+Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
+Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/i915/i915_reg.h      |    4 ++++
+ drivers/gpu/drm/i915/intel_display.c |    5 +++++
+ 2 files changed, 9 insertions(+)
+
+--- a/drivers/gpu/drm/i915/i915_reg.h
++++ b/drivers/gpu/drm/i915/i915_reg.h
+@@ -2854,6 +2854,10 @@
+ #define GEN7_L3_CHICKEN_MODE_REGISTER         0xB030
+ #define  GEN7_WA_L3_CHICKEN_MODE                              0x20000000
++/* WaCatErrorRejectionIssue */
++#define GEN7_SQ_CHICKEN_MBCUNIT_CONFIG                0x9030
++#define  GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB     (1<<11)
++
+ /* PCH */
+ /* south display engine interrupt */
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -7470,6 +7470,11 @@ static void ivybridge_init_clock_gating(
+       I915_WRITE(GEN7_L3_CHICKEN_MODE_REGISTER,
+                       GEN7_WA_L3_CHICKEN_MODE);
++      /* This is required by WaCatErrorRejectionIssue */
++      I915_WRITE(GEN7_SQ_CHICKEN_MBCUNIT_CONFIG,
++                      I915_READ(GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) |
++                      GEN7_SQ_CHICKEN_MBCUNIT_SQINTMOB);
++
+       for_each_pipe(pipe)
+               I915_WRITE(DSPCNTR(pipe),
+                          I915_READ(DSPCNTR(pipe)) |
index 1089778ba39de89a90c681462faa4ed21f634fcc..fafc7bef23c7fa64fcbf344fd25cf495825f7e51 100644 (file)
@@ -39,3 +39,5 @@ avr32-select-generic-atomic64_t-support.patch
 kprobes-adjust-fix-a-memory-leak-in-function-pre_handler_kretprobe.patch
 drm-i915-gen7-implement-rczunit-workaround.patch
 drm-i915-gen7-implement-an-l3-caching-workaround.patch
+drm-i915-gen7-work-around-a-system-hang-on-ivb.patch
+drm-i915-gen7-disable-the-rhwo-optimization-as-it-can-cause-gpu-hangs.patch