Skip to contentSkip to conversation

gen6 (SNB) GPU still stalling besides latest patches

DISCUSSION Nicolas Kalkhof 3 participants 3 messages Jun 21, 2011

lore
Share & tools
lore
#0 lore raw

Hi Jesse,

I've tried your patch below. It locked up my machine a few seconds after X startup :(. I didn't use any boot parameter. I've changed the parameters during runtime by echoing sysfs.

I've filed a bug under https://bugs.freedesktop.org/show_bug.cgi?id=38529[../../jump.htm?goto=https%3A%2F%2Fbugs.freedesktop.org%2Fshow_bug.cgi%3Fid%3D38529][../../jump.htm?goto=https%3A%2F%2Fbugs.freedesktop.org%2Fshow_bug.cgi%3Fid%3D38529]. Chris Wilson already proposed a patch that solves the stalling and so far my system runs stable even with SNA enabled in xf86-video-intel.

However now it seems I'm unable to get my framebuffer console back after I bailed out of X. The screen stays black but my system is still responsive via ssh. This happens without your patch. I'll do some more investigation to make sure I didnt introduce this issue.

Thanks and regards,
nic

-----Ursprüngliche Nachricht-----
Von: "Jesse Barnes" <[email protected]>
Gesendet: Jun 21, 2011 6:55:27 PM
An: "Nicolas Kalkhof" <[email protected]>
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

Quoted 26 lines
Quoted 9 lines · On Tue, 21 Jun 2011 18:12:56 +0200 (CEST) "Nicolas Kalkhof" <[email protected]>…

Hi Jesse,

thanks for the infiormation. I've switched rc6 off by echo 0 > /sys/module/i915/parameters/i915_enable_rc6 this should do it, right?
cat /sys/module/i915/parameters/i915_enable_rc6 yields "0"

Are you referring to this patch? https://lkml.org/lkml/2011/6/17/371
It should be included in kernel 3.0-rc4 and didn't help here :(

So there are actually a few things that could go wrong in this area. The problem may be RC6 related, but it could also be turbo related (our GPU frequency adjustment code). Can you boot without the module parameter and try this patch and see what happens (after a cold boot)?

Thanks,
Jesse

drivers/gpu/drm/i915/intel_display.c +0 -0
index 81a9059..3c589cb 100644

drivers/gpu/drm/i915/intel_display.c void intel_modeset_init(struct drm_device *dev) · line 7793

Quoted 9 lines
drivers/gpu/drm/i915/intel_display.c +0 -3
@@ -7788,9 +7788,6 @@ void intel_modeset_init(struct drm_device *dev)
 intel_init_emon(dev);
 }
 
- if (IS_GEN6(dev))
- gen6_enable_rps(dev_priv);
-
 INIT_WORK(&dev_priv->idle_work, intel_idle_update);
 setup_timer(&dev_priv->idle_timer, intel_gpu_idle_timer,
 (unsigned long)dev);

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Intel-gfx mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#1 lore raw
Quoted 1 line · Nicolas Kalkhof

However now it seems I'm unable to get my framebuffer console back after I bailed out of X. The screen stays black but my system is still responsive via ssh. This happens without your patch. I'll do some more investigation to make sure I didnt introduce this issue.

No, that's another bug with /dev/dri/card0 not honouring O_NONBLOCK. Give X a swift kick and it'll wake up again.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw
Quoted 6 lines · Chris Wilson
Quoted 1 line · Nicolas Kalkhof

However now it seems I'm unable to get my framebuffer console back after I bailed out of X. The screen stays black but my system is still responsive via ssh. This happens without your patch. I'll do some more investigation to make sure I didnt introduce this issue.

No, that's another bug with /dev/dri/card0 not honouring O_NONBLOCK. Give X a swift kick and it'll wake up again.
-Chris

Any plans on fixing this (and related bugs)? The SNA driver makes X freeze sometimes for me, and it's hard to recover on a laptop when ctrl-alt-backspace and even alt-sysrq-v don't seem to give me control of my system back.

ssh-ing in and killall -9 Xorg works, but it's not so easy on a laptop.

--Andy