All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-21 17:41 Nicolas Kalkhof
  2011-06-21 18:18 ` Chris Wilson
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-21 17:41 UTC (permalink / raw)
  To: intel-gfx

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" <jbarnes@virtuousgeek.org>
Gesendet: Jun 21, 2011 6:55:27 PM
An: "Nicolas Kalkhof" <nkalkhof@web.de>
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

>On Tue, 21 Jun 2011 18:12:56 +0200 (CEST)
>"Nicolas Kalkhof" <nkalkhof@web.de> wrote:
>
>> 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
>
>diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_d
>index 81a9059..3c589cb 100644
>--- a/drivers/gpu/drm/i915/intel_display.c
>+++ b/drivers/gpu/drm/i915/intel_display.c
>@@ -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
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-21 18:38 Nicolas Kalkhof
  2011-06-21 19:11 ` Chris Wilson
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-21 18:38 UTC (permalink / raw)
  To: intel-gfx

Thanks for bringing that up. Is there a bug report for this issue? I was just about to file a report myself but I don't want to create any duplicates.

@Chris: What do you mean with giving X a kick? Neither mouse nor keyboard are responding anymore. Killing X from a remote ssh is the only option. :(

Btw. This only happens with SNA enabled. When using the classic (UXA?), dropping back to framebuffer console works fine.
I too have a laptop (T420). Is this issues restricted to mobile systems only?

Thanks and regards,
nic


-----Ursprüngliche Nachricht-----
Von: "Andrew Lutomirski" <luto@mit.edu>
Gesendet: Jun 21, 2011 8:24:21 PM
An: "Chris Wilson" <chris@chris-wilson.co.uk>
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

>On Tue, Jun 21, 2011 at 2:18 PM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>> On Tue, 21 Jun 2011 19:41:52 +0200 (CEST), "Nicolas Kalkhof" <nkalkhof@web.de> wrote:
>>> 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
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-21 16:12 Nicolas Kalkhof
  2011-06-21 16:55 ` Jesse Barnes
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-21 16:12 UTC (permalink / raw)
  To: intel-gfx

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 :(

regards
nico



-----Ursprüngliche Nachricht-----
Von: "Jesse Barnes" <jbarnes@virtuousgeek.org>
Gesendet: Jun 21, 2011 6:06:17 PM
An: "Nicolas Kalkhof" <nkalkhof@web.de>, intel-gfx@lists.freedesktop.org
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

>It's i915.i915_enable_rc6=0 for extra added redundancy. You might also
>try Daniel Blueman's IRQ fix.
>
>Jesse
>
>On Tue, 21 Jun 2011 07:57:13 +0200 (CEST)
>"Nicolas Kalkhof" <nkalkhof@web.de> wrote:
>
>> Hi Folks, ok, I'll give it a try this evening. Just one more thing: Should I pass enable_rc6 as a boot parameter like this: "i915.enable_rc6=0" or is it set by echoing sysfs (/sys/module/i915/parameters/...)? regards, nico
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: "Jesse Barnes" <jbarnes@virtuousgeek.org>
>> Gesendet: Jun 21, 2011 2:19:29 AM
>> An: "Ted Phelps" <phelps@gnusto.com>
>> Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches
>>
>> >On Tue, 21 Jun 2011 10:01:35 +1000
>> >Ted Phelps <phelps@gnusto.com> wrote:
>> >
>> >>
>> >> Hi Nicolas,
>> >>
>> >> Nicolas Kalkhof writes:
>> >> > SNB GPU still hangs frequently with kernel patches next-20110620
>> >> > raising "drm:i915_hangcheck_ring_idle *ERROR* Hangcheck timer
>> >> > elapsed... gen6 bsd ring idle". This happens when multiple
>> >> > applications (mplayer decoding vaapi stream and some openGL game)
>> >> > running at the same time. With either one running there is no
>> >> > stalling. Could someone please confirm the issue?
>> >> >
>> >> > /sys/module/i915/parameters/semaphores is set to 0
>> >> > xf86-video-intel compiled with --enable-sna
>> >>
>> >> I haven't tried SNA, but I've seen GPU hangs as well (SNB 2600K). I've
>> >> found that disabling RC6 (enable_rc6=0) seems to help. Can you see if
>> >> that helps?
>> >>
>> >> [Note to self: submit a bug report]
>> >
>> >Please do; and please try to confirm that your GPU hangs are really rc6
>> >related. RC6 provides a huge (multiple Watt) power savings, and we
>> >really want it to be robust.
>> >
>> >--
>> >Jesse Barnes, Intel Open Source Technology Center
>>
>>
>> ___________________________________________________________
>> Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
>> Toolbar eingebaut! http://produkte.web.de/go/toolbar
>>
>
>
>--
>Jesse Barnes, Intel Open Source Technology Center
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <935206610.2954520.1308635833489.JavaMail.fmail@mwmweb001>]
* Re: gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-21 16:01 Nicolas Kalkhof
  0 siblings, 0 replies; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-21 16:01 UTC (permalink / raw)
  To: intel-gfx

Hello!

sorry, setting i915.enable_rc6=0 didn't work for me. I've filed a bug:
https://bugs.freedesktop.org/show_bug.cgi?id=38529

thanks and regards
nico


-----Ursprüngliche Nachricht-----
Von: "Nicolas Kalkhof" <nkalkhof@web.de>
Gesendet: Jun 21, 2011 7:59:51 AM
An: intel-gfx@lists.freedesktop.org
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

>Hi Folks,
>ok, I'll give it a try this evening. Just one more thing: Should I pass enable_rc6 as a boot parameter like this: "i915.enable_rc6=0" or is it set by echoing sysfs (/sys/module/i915/parameters/...)?
>
>regards, nico
>
>
>-----Ursprüngliche Nachricht-----
>Von: "Jesse Barnes" <jbarnes@virtuousgeek.org>
>Gesendet: Jun 21, 2011 2:19:29 AM
>An: "Ted Phelps" <phelps@gnusto.com>
>Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches
>
>>On Tue, 21 Jun 2011 10:01:35 +1000
>>Ted Phelps <phelps@gnusto.com> wrote:
>>
>>>
>>> Hi Nicolas,
>>>
>>> Nicolas Kalkhof writes:
>>> > SNB GPU still hangs frequently with kernel patches next-20110620
>>> > raising "drm:i915_hangcheck_ring_idle *ERROR* Hangcheck timer
>>> > elapsed... gen6 bsd ring idle". This happens when multiple
>>> > applications (mplayer decoding vaapi stream and some openGL game)
>>> > running at the same time. With either one running there is no
>>> > stalling. Could someone please confirm the issue?
>>> >
>>> > /sys/module/i915/parameters/semaphores is set to 0
>>> > xf86-video-intel compiled with --enable-sna
>>>
>>> I haven't tried SNA, but I've seen GPU hangs as well (SNB 2600K). I've
>>> found that disabling RC6 (enable_rc6=0) seems to help. Can you see if
>>> that helps?
>>>
>>> [Note to self: submit a bug report]
>>
>>Please do; and please try to confirm that your GPU hangs are really rc6
>>related. RC6 provides a huge (multiple Watt) power savings, and we
>>really want it to be robust.
>>
>>--
>>Jesse Barnes, Intel Open Source Technology Center
>___________________________________________________________
>Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
>Toolbar eingebaut! http://produkte.web.de/go/toolbar
>_______________________________________________
>Intel-gfx mailing list
>Intel-gfx@lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/intel-gfx
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-21  5:59 Nicolas Kalkhof
  0 siblings, 0 replies; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-21  5:59 UTC (permalink / raw)
  To: intel-gfx

Hi Folks,
ok, I'll give it a try this evening. Just one more thing: Should I pass enable_rc6 as a boot parameter like this: "i915.enable_rc6=0" or is it set by echoing sysfs (/sys/module/i915/parameters/...)?

regards, nico


-----Ursprüngliche Nachricht-----
Von: "Jesse Barnes" <jbarnes@virtuousgeek.org>
Gesendet: Jun 21, 2011 2:19:29 AM
An: "Ted Phelps" <phelps@gnusto.com>
Betreff: Re: [Intel-gfx] gen6 (SNB) GPU still stalling besides latest patches

>On Tue, 21 Jun 2011 10:01:35 +1000
>Ted Phelps <phelps@gnusto.com> wrote:
>
>>
>> Hi Nicolas,
>>
>> Nicolas Kalkhof writes:
>> > SNB GPU still hangs frequently with kernel patches next-20110620
>> > raising "drm:i915_hangcheck_ring_idle *ERROR* Hangcheck timer
>> > elapsed... gen6 bsd ring idle". This happens when multiple
>> > applications (mplayer decoding vaapi stream and some openGL game)
>> > running at the same time. With either one running there is no
>> > stalling. Could someone please confirm the issue?
>> >
>> > /sys/module/i915/parameters/semaphores is set to 0
>> > xf86-video-intel compiled with --enable-sna
>>
>> I haven't tried SNA, but I've seen GPU hangs as well (SNB 2600K). I've
>> found that disabling RC6 (enable_rc6=0) seems to help. Can you see if
>> that helps?
>>
>> [Note to self: submit a bug report]
>
>Please do; and please try to confirm that your GPU hangs are really rc6
>related. RC6 provides a huge (multiple Watt) power savings, and we
>really want it to be robust.
>
>--
>Jesse Barnes, Intel Open Source Technology Center
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread
* gen6 (SNB) GPU still stalling besides latest patches
@ 2011-06-20 18:52 Nicolas Kalkhof
  2011-06-21  0:01 ` Ted Phelps
  0 siblings, 1 reply; 16+ messages in thread
From: Nicolas Kalkhof @ 2011-06-20 18:52 UTC (permalink / raw)
  To: intel-gfx

[-- Attachment #1: Type: text/html, Size: 1137 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-06-22 12:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 17:41 gen6 (SNB) GPU still stalling besides latest patches Nicolas Kalkhof
2011-06-21 18:18 ` Chris Wilson
2011-06-21 18:24   ` Andrew Lutomirski
  -- strict thread matches above, loose matches on Subject: below --
2011-06-21 18:38 Nicolas Kalkhof
2011-06-21 19:11 ` Chris Wilson
2011-06-21 19:16   ` Andrew Lutomirski
2011-06-21 19:33     ` Chris Wilson
2011-06-21 16:12 Nicolas Kalkhof
2011-06-21 16:55 ` Jesse Barnes
     [not found] <935206610.2954520.1308635833489.JavaMail.fmail@mwmweb001>
2011-06-21 16:06 ` Jesse Barnes
2011-06-21 16:01 Nicolas Kalkhof
2011-06-21  5:59 Nicolas Kalkhof
2011-06-20 18:52 Nicolas Kalkhof
2011-06-21  0:01 ` Ted Phelps
2011-06-21  0:19   ` Jesse Barnes
2011-06-22 12:46     ` Ted Phelps

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.