Skip to contentSkip to conversation

drm/i915: Undo gtt scratch pte unmapping again

PATCH In review Daniel Vetter 2 participants 5 messages Mar 26, 2014 – Mar 27, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Undo gtt scratch pte unmapping again

It apparently blows up on some machines. This functionally reverts

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64841

Reported-and-Tested-by Brad Jackson <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Todd Previte <[email protected]>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
index 5d61de18ae55..4467974eb53b 100644
@@ -1281,7 +1281,7 @@ void i915_gem_suspend_gtt_mappings(struct drm_device *dev)
 	dev_priv->gtt.base.clear_range(&dev_priv->gtt.base,
 				       dev_priv->gtt.base.start,
 				       dev_priv->gtt.base.total,
-				       false);
+				       true);
 }
 
 void i915_gem_restore_gtt_mappings(struct drm_device *dev)
Signature · 1 line
1.8.5.2
#1 lore raw

At Wed, 26 Mar 2014 20:10:09 +0100,

Quoted 9 lines · Daniel Vetter

It apparently blows up on some machines. This functionally reverts

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Quoted 7 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64841

Reported-and-Tested-by Brad Jackson <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Todd Previte <[email protected]>

The commit was the fix for the memory corruption and lock up at S4 on some (Haswell) machines. This revert will re-introduce the issue again very likely. I'm going to check with the latest tree, but this may take some time.

Wouldn't it be safer to revert this conditionally like I suggested in comment 10 of the bugzilla entry?

drivers/gpu/drm/i915/i915_gem_gtt.c +0 -0
@@ -818,7 +818,7 @@ void i915_gem_suspend_gtt_mappings(struct

drm_device *dev)

        /* Don't bother messing with faults pre GEN6 as we have little
         * documentation supporting that it's a good idea.
         */
-       if (INTEL_INFO(dev)->gen < 6)
+       if (INTEL_INFO(dev)->gen < 7)
                return;
 
        i915_check_and_clear_faults(dev);

thanks,

Takashi

Quoted 20 lines
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
index 5d61de18ae55..4467974eb53b 100644
@@ -1281,7 +1281,7 @@ void i915_gem_suspend_gtt_mappings(struct drm_device *dev)
 	dev_priv->gtt.base.clear_range(&dev_priv->gtt.base,
 				       dev_priv->gtt.base.start,
 				       dev_priv->gtt.base.total,
-				       false);
+				       true);
 }
 
 void i915_gem_restore_gtt_mappings(struct drm_device *dev)
Signature · 1 line
1.8.5.2
#2 lore raw
Quoted 16 lines · Takashi Iwai
Quoted 8 lines

It apparently blows up on some machines. This functionally reverts

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Quoted 7 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64841

Reported-and-Tested-by Brad Jackson <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Todd Previte <[email protected]>
Quoted 7 lines

The commit was the fix for the memory corruption and lock up at S4 on some (Haswell) machines. This revert will re-introduce the issue again very likely. I'm going to check with the latest tree, but this may take some time.

Wouldn't it be safer to revert this conditionally like I suggested in comment 10 of the bugzilla entry?

I know that this will blow up, but apparently no one from our side really bothered to test stuff or work on this. So regression wins and I've pushed out the revert - this bug has been lingering a bit too long.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#3 lore raw

At Thu, 27 Mar 2014 07:55:57 +0100,

Quoted 23 lines · Daniel Vetter
Quoted 21 lines · Takashi Iwai
Quoted 8 lines

It apparently blows up on some machines. This functionally reverts

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Quoted 7 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64841

Reported-and-Tested-by Brad Jackson <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Todd Previte <[email protected]>

The commit was the fix for the memory corruption and lock up at S4 on some (Haswell) machines. This revert will re-introduce the issue again very likely. I'm going to check with the latest tree, but this may take some time.

Quoted 7 lines
Quoted 2 lines

Wouldn't it be safer to revert this conditionally like I suggested in comment 10 of the bugzilla entry?

I know that this will blow up, but apparently no one from our side really bothered to test stuff or work on this. So regression wins and I've pushed out the revert - this bug has been lingering a bit too long.

Well, the problem is rather that no one who worked on the HSW S4 fix (including me) could reproduce the regression on SNB machines. Have you seen any similar report with gen7 or newer?

Takashi

#4 lore raw
In reply to Takashi Iwai

At Thu, 27 Mar 2014 07:41:41 +0100,

Quoted 20 lines · Takashi Iwai

At Wed, 26 Mar 2014 20:10:09 +0100,

Quoted 9 lines · Daniel Vetter

It apparently blows up on some machines. This functionally reverts

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Quoted 7 lines

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=64841

Reported-and-Tested-by Brad Jackson <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Paulo Zanoni <[email protected]>
Cc Todd Previte <[email protected]>
Quoted 4 lines

The commit was the fix for the memory corruption and lock up at S4 on some (Haswell) machines. This revert will re-introduce the issue again very likely. I'm going to check with the latest tree, but this may take some time.

Luckily I found the machine quickly and tested with your patch. As expected, this revert breaks S4 again on Haswell machines indeed. A test machine locks up after 4 times S4 cycle while 3.14-rc8 keeps working after 100 S4 cycles. Oh well.

Takashi

Quoted 47 lines

Wouldn't it be safer to revert this conditionally like I suggested in comment 10 of the bugzilla entry?

drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
@@ -818,7 +818,7 @@ void i915_gem_suspend_gtt_mappings(struct
 drm_device *dev)
        /* Don't bother messing with faults pre GEN6 as we have little
         * documentation supporting that it's a good idea.
         */
-       if (INTEL_INFO(dev)->gen < 6)
+       if (INTEL_INFO(dev)->gen < 7)
                return;
 
        i915_check_and_clear_faults(dev);

thanks,

Takashi

Quoted 20 lines
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -1
index 5d61de18ae55..4467974eb53b 100644
@@ -1281,7 +1281,7 @@ void i915_gem_suspend_gtt_mappings(struct drm_device *dev)
 	dev_priv->gtt.base.clear_range(&dev_priv->gtt.base,
 				       dev_priv->gtt.base.start,
 				       dev_priv->gtt.base.total,
-				       false);
+				       true);
 }
 
 void i915_gem_restore_gtt_mappings(struct drm_device *dev)
Signature · 1 line
1.8.5.2

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx