2009-12-05 05:48:58

by Emmanuel Benisty

[permalink] [raw]
Subject: 2.6.31 -> 2.6.32 Sound and video regressions

Hi,

I hope I didn't miss something but given the traffic of LKML, that
could have happened.

I just wanted to report 2 regressions I am having now with 2.6.32.

Video
Screen is flickering/glitching like crazy in X. It happens whether
randomly or when conky is refreshed, when the mouse cursor moves and
like hell when a page is loading in the browser. Not so easy to
describe this issue.
Xorg.0.log is attached.
(I've uploaded an utterly crappy mobile phone video if needed but I
doubt this could be of any help, anyway, it's here
http://omploader.org/vMngzcA/Xorg.tar.bz2 )

Sound
The "Front" mixer channel has disappeared. I'm left with no sound and
no way to enable it.
alsa-info.sh output is attached.

As it may be useful, dmesg and kernel config are attached too.

This is a "simple user" report, I am aware that it is lacking any
technical expertise so, should anyone need any other information, I'll
happily submit what will be requested of course.

Thanks in advance.


Attachments:
dmesg.txt (32.94 kB)
Xorg.0.log (12.33 kB)
alsa-info.txt.N4M5qOkiEp (18.94 kB)
config (78.06 kB)
Download all attachments

2009-12-05 06:05:38

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Sat, Dec 5, 2009 at 12:48 PM, Emmanuel Benisty <[email protected]> wrote:
> As it may be useful, dmesg and kernel config are attached too.

Very sorry, wrong dmesg has been attached. Right one in this email.


Attachments:
dmesg-2.6.32.txt (32.73 kB)

2009-12-05 14:40:40

by Andy Lutomirski

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

Emmanuel Benisty wrote:
> Hi,
>
> I hope I didn't miss something but given the traffic of LKML, that
> could have happened.
>
> I just wanted to report 2 regressions I am having now with 2.6.32.
>
> Video
> Screen is flickering/glitching like crazy in X. It happens whether
> randomly or when conky is refreshed, when the mouse cursor moves and
> like hell when a page is loading in the browser. Not so easy to
> describe this issue.
> Xorg.0.log is attached.
> (I've uploaded an utterly crappy mobile phone video if needed but I
> doubt this could be of any help, anyway, it's here
> http://omploader.org/vMngzcA/Xorg.tar.bz2 )

That sounds like FIFO underruns, which (I think) were introduced when
self-refresh was enabled but should have been fixed. I personally have
no clue how to fix them, but if you told the Intel people what kind of
chip you have (lspci output), they can probably fix it. (cc added)

--Andy

2009-12-05 14:42:01

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Sat, Dec 5, 2009 at 9:34 PM, Andy Lutomirski <[email protected]> wrote:
> Emmanuel Benisty wrote:
>> I just wanted to report 2 regressions I am having now with 2.6.32.
>>
>> Video
>> Screen is flickering/glitching like crazy in X. It happens whether
>> randomly or when conky is refreshed, when the mouse cursor moves and
>> like hell when a page is loading in the browser. Not so easy to
>> describe this issue.
>> Xorg.0.log is attached.
>> (I've uploaded an utterly crappy mobile phone video if needed but I
>> doubt this could be of any help, anyway, it's here
>> http://omploader.org/vMngzcA/Xorg.tar.bz2 )
>
> That sounds like FIFO underruns, which (I think) were introduced when
> self-refresh was enabled but should have been fixed.  I personally have no
> clue how to fix them, but if you told the Intel people what kind of chip you
> have (lspci output), they can probably fix it.  (cc added)

Thanks for your reply Andy. lspci output is attached.


Attachments:
lspci.txt (2.36 kB)

2009-12-05 14:53:43

by Takashi Iwai

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

At Sat, 5 Dec 2009 12:48:57 +0700,
Emmanuel Benisty wrote:
>
> Sound
> The "Front" mixer channel has disappeared. I'm left with no sound and
> no way to enable it.
> alsa-info.sh output is attached.

Try to unmute "Speaker" mixer switch.


Takashi

2009-12-05 15:07:12

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Sat, Dec 5, 2009 at 9:53 PM, Takashi Iwai <[email protected]> wrote:
> At Sat, 5 Dec 2009 12:48:57 +0700,
> Emmanuel Benisty wrote:
>>
>> Sound
>> The "Front" mixer channel has disappeared. I'm left with no sound and
>> no way to enable it.
>> alsa-info.sh output is attached.
>
> Try to unmute "Speaker" mixer switch.

Thanks Takashi, actually it seems to be a kernel config problem: I
just tried the stock .32 kernel of the distribution I'm using and all
channels are there again. I just have to figure out what has changed
that requires my config to be modified.

2009-12-06 01:42:08

by Darren Salt

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

I demand that Andy Lutomirski may or may not have written...

> Emmanuel Benisty wrote:
[snip]
>> I just wanted to report 2 regressions I am having now with 2.6.32.
>> Video
>> Screen is flickering/glitching like crazy in X. It happens whether
>> randomly or when conky is refreshed, when the mouse cursor moves and
>> like hell when a page is loading in the browser. Not so easy to
>> describe this issue.
[snip]

> That sounds like FIFO underruns, which (I think) were introduced when
> self-refresh was enabled but should have been fixed. I personally have no
> clue how to fix them, but if you told the Intel people what kind of chip
> you have (lspci output), they can probably fix it.

It also sounds like what I'm seeing on my EeePC 901. It only happens after
resume, which makes STR a little less than useful; the display will, sooner
or later, show a single colour (which is, presumably, the result of a display
engine hang, as described in the comment immediately before
intel_calculate_wm) and, seemingly, be stuck like that until power-off or
reboot.

Whether it *is* the same problem, I couldn't say.

Needless to say, this problem goes away if I disable KMS.

--
| Darren Salt | linux at youmustbejoking | nr. Ashington, | Doon
| using Debian GNU/Linux | or ds ,demon,co,uk | Northumberland | Army
| + http://www.youmustbejoking.demon.co.uk/ & http://tlasd.wordpress.com/

Dumb luck beats sound planning every time. Trust me.

2009-12-07 01:40:06

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Sat, 05 Dec 2009 23:44:55 +0000
Darren Salt <[email protected]> wrote:

> I demand that Andy Lutomirski may or may not have written...
>
> > Emmanuel Benisty wrote:
> [snip]
> >> I just wanted to report 2 regressions I am having now with 2.6.32.
> >> Video
> >> Screen is flickering/glitching like crazy in X. It happens whether
> >> randomly or when conky is refreshed, when the mouse cursor moves
> >> and like hell when a page is loading in the browser. Not so easy to
> >> describe this issue.
> [snip]
>
> > That sounds like FIFO underruns, which (I think) were introduced
> > when self-refresh was enabled but should have been fixed. I
> > personally have no clue how to fix them, but if you told the Intel
> > people what kind of chip you have (lspci output), they can probably
> > fix it.
>
> It also sounds like what I'm seeing on my EeePC 901. It only happens
> after resume, which makes STR a little less than useful; the display
> will, sooner or later, show a single colour (which is, presumably,
> the result of a display engine hang, as described in the comment
> immediately before intel_calculate_wm) and, seemingly, be stuck like
> that until power-off or reboot.
>
> Whether it *is* the same problem, I couldn't say.
>
> Needless to say, this problem goes away if I disable KMS.

Arg, there are a few reports of this now, but I haven't been able to
reproduce it. I'll try harder... (FYI the upstream
bugs.freedesktop.org # for it is 24314).

--
Jesse Barnes, Intel Open Source Technology Center

2009-12-07 03:57:02

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes <[email protected]> wrote:
> On Sat, 05 Dec 2009 23:44:55 +0000
> Darren Salt <[email protected]> wrote:
>
>> I demand that Andy Lutomirski may or may not have written...
>>
>> > Emmanuel Benisty wrote:
>> [snip]
>> >> I just wanted to report 2 regressions I am having now with 2.6.32.
>> >> Video
>> >> Screen is flickering/glitching like crazy in X. It happens whether
>> >> randomly or when conky is refreshed, when the mouse cursor moves
>> >> and like hell when a page is loading in the browser. Not so easy to
>> >> describe this issue.
>> [snip]
>>
>> > That sounds like FIFO underruns, which (I think) were introduced
>> > when self-refresh was enabled but should have been fixed. I
>> > personally have no clue how to fix them, but if you told the Intel
>> > people what kind of chip you have (lspci output), they can probably
>> > fix it.
>>
>> It also sounds like what I'm seeing on my EeePC 901. It only happens
>> after resume, which makes STR a little less than useful; the display
>> will, sooner or later, show a single colour (which is, presumably,
>> the result of a display engine hang, as described in the comment
>> immediately before intel_calculate_wm) and, seemingly, be stuck like
>> that until power-off or reboot.
>>
>> Whether it *is* the same problem, I couldn't say.
>>
>> Needless to say, this problem goes away if I disable KMS.
>
> Arg, there are a few reports of this now, but I haven't been able to
> reproduce it.  I'll try harder...  (FYI the upstream
> bugs.freedesktop.org # for it is 24314).

It *seems* that we are facing two different issues here (I don't even
use S2R and the problem is there since the very first second I start
X). Anyway, I have bisected the problem on my box, it turns out to be
this one:

drm/i915: Fix render reclock availability detection

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154

2009-12-07 13:44:42

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty <[email protected]> wrote:
> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes <[email protected]> wrote:
>> On Sat, 05 Dec 2009 23:44:55 +0000
>> Darren Salt <[email protected]> wrote:
>>
>>> I demand that Andy Lutomirski may or may not have written...
>>>
>>> > Emmanuel Benisty wrote:
>>> [snip]
>>> >> I just wanted to report 2 regressions I am having now with 2.6.32.
>>> >> Video
>>> >> Screen is flickering/glitching like crazy in X. It happens whether
>>> >> randomly or when conky is refreshed, when the mouse cursor moves
>>> >> and like hell when a page is loading in the browser. Not so easy to
>>> >> describe this issue.
>>> [snip]
>>>
>>> > That sounds like FIFO underruns, which (I think) were introduced
>>> > when self-refresh was enabled but should have been fixed. I
>>> > personally have no clue how to fix them, but if you told the Intel
>>> > people what kind of chip you have (lspci output), they can probably
>>> > fix it.
>>>
>>> It also sounds like what I'm seeing on my EeePC 901. It only happens
>>> after resume, which makes STR a little less than useful; the display
>>> will, sooner or later, show a single colour (which is, presumably,
>>> the result of a display engine hang, as described in the comment
>>> immediately before intel_calculate_wm) and, seemingly, be stuck like
>>> that until power-off or reboot.
>>>
>>> Whether it *is* the same problem, I couldn't say.
>>>
>>> Needless to say, this problem goes away if I disable KMS.
>>
>> Arg, there are a few reports of this now, but I haven't been able to
>> reproduce it.  I'll try harder...  (FYI the upstream
>> bugs.freedesktop.org # for it is 24314).
>
> It *seems* that we are facing two different issues here (I don't even
> use S2R and the problem is there since the very first second I start
> X). Anyway, I have bisected the problem on my box, it turns out to be
> this one:
>
> drm/i915: Fix render reclock availability detection
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
>
So, I have reverted this commit and rebuilt 2.6.32. It completely
solved the issue described in my first post.

2009-12-08 13:20:04

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty <[email protected]> wrote:
> On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty <[email protected]> wrote:
>> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes <[email protected]> wrote:
>>> On Sat, 05 Dec 2009 23:44:55 +0000
>>> Darren Salt <[email protected]> wrote:
>>>
>>>> I demand that Andy Lutomirski may or may not have written...
>>>>
>>>> > Emmanuel Benisty wrote:
>>>> [snip]
>>>> >> I just wanted to report 2 regressions I am having now with 2.6.32.
>>>> >> Video
>>>> >> Screen is flickering/glitching like crazy in X. It happens whether
>>>> >> randomly or when conky is refreshed, when the mouse cursor moves
>>>> >> and like hell when a page is loading in the browser. Not so easy to
>>>> >> describe this issue.
>>>> [snip]
>>>>
>>>> > That sounds like FIFO underruns, which (I think) were introduced
>>>> > when self-refresh was enabled but should have been fixed. I
>>>> > personally have no clue how to fix them, but if you told the Intel
>>>> > people what kind of chip you have (lspci output), they can probably
>>>> > fix it.
>>>>
>>>> It also sounds like what I'm seeing on my EeePC 901. It only happens
>>>> after resume, which makes STR a little less than useful; the display
>>>> will, sooner or later, show a single colour (which is, presumably,
>>>> the result of a display engine hang, as described in the comment
>>>> immediately before intel_calculate_wm) and, seemingly, be stuck like
>>>> that until power-off or reboot.
>>>>
>>>> Whether it *is* the same problem, I couldn't say.
>>>>
>>>> Needless to say, this problem goes away if I disable KMS.
>>>
>>> Arg, there are a few reports of this now, but I haven't been able to
>>> reproduce it.  I'll try harder...  (FYI the upstream
>>> bugs.freedesktop.org # for it is 24314).
>>
>> It *seems* that we are facing two different issues here (I don't even
>> use S2R and the problem is there since the very first second I start
>> X). Anyway, I have bisected the problem on my box, it turns out to be
>> this one:
>>
>> drm/i915: Fix render reclock availability detection
>>
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
>>
> So, I have reverted this commit and rebuilt 2.6.32. It completely
> solved the issue described in my first post.
>

just FTR, it looks like I'm not alone:
http://forums.gentoo.org/viewtopic-p-6087556.html#6087556

2009-12-10 18:01:23

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Tue, 8 Dec 2009 20:20:07 +0700
Emmanuel Benisty <[email protected]> wrote:

> On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty
> <[email protected]> wrote:
> > On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty
> > <[email protected]> wrote:
> >> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes
> >> <[email protected]> wrote:
> >>> On Sat, 05 Dec 2009 23:44:55 +0000
> >>> Darren Salt <[email protected]> wrote:
> >>>
> >>>> I demand that Andy Lutomirski may or may not have written...
> >>>>
> >>>> > Emmanuel Benisty wrote:
> >>>> [snip]
> >>>> >> I just wanted to report 2 regressions I am having now with
> >>>> >> 2.6.32. Video
> >>>> >> Screen is flickering/glitching like crazy in X. It happens
> >>>> >> whether randomly or when conky is refreshed, when the mouse
> >>>> >> cursor moves and like hell when a page is loading in the
> >>>> >> browser. Not so easy to describe this issue.
> >>>> [snip]
> >>>>
> >>>> > That sounds like FIFO underruns, which (I think) were
> >>>> > introduced when self-refresh was enabled but should have been
> >>>> > fixed. I personally have no clue how to fix them, but if you
> >>>> > told the Intel people what kind of chip you have (lspci
> >>>> > output), they can probably fix it.
> >>>>
> >>>> It also sounds like what I'm seeing on my EeePC 901. It only
> >>>> happens after resume, which makes STR a little less than useful;
> >>>> the display will, sooner or later, show a single colour (which
> >>>> is, presumably, the result of a display engine hang, as
> >>>> described in the comment immediately before intel_calculate_wm)
> >>>> and, seemingly, be stuck like that until power-off or reboot.
> >>>>
> >>>> Whether it *is* the same problem, I couldn't say.
> >>>>
> >>>> Needless to say, this problem goes away if I disable KMS.
> >>>
> >>> Arg, there are a few reports of this now, but I haven't been able
> >>> to reproduce it.  I'll try harder...  (FYI the upstream
> >>> bugs.freedesktop.org # for it is 24314).
> >>
> >> It *seems* that we are facing two different issues here (I don't
> >> even use S2R and the problem is there since the very first second
> >> I start X). Anyway, I have bisected the problem on my box, it
> >> turns out to be this one:
> >>
> >> drm/i915: Fix render reclock availability detection
> >>
> >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
> >>
> > So, I have reverted this commit and rebuilt 2.6.32. It completely
> > solved the issue described in my first post.
> >
>
> just FTR, it looks like I'm not alone:
> http://forums.gentoo.org/viewtopic-p-6087556.html#6087556

Great, thanks for narrowing it down. I'll see if I can come up with a
fix.

--
Jesse Barnes, Intel Open Source Technology Center

2009-12-11 01:48:56

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Fri, Dec 11, 2009 at 12:54 AM, Jesse Barnes <[email protected]> wrote:
> On Tue, 8 Dec 2009 20:20:07 +0700
> Emmanuel Benisty <[email protected]> wrote:
>
>> On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty
>> <[email protected]> wrote:
>> >> It *seems* that we are facing two different issues here (I don't
>> >> even use S2R and the problem is there since the very first second
>> >> I start X). Anyway, I have bisected the problem on my box, it
>> >> turns out to be this one:
>> >>
>> >> drm/i915: Fix render reclock availability detection
>> >>
>> >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
>> >>
>> > So, I have reverted this commit and rebuilt 2.6.32. It completely
>> > solved the issue described in my first post.
>> >
>>
>> just FTR, it looks like I'm not alone:
>> http://forums.gentoo.org/viewtopic-p-6087556.html#6087556
>
> Great, thanks for narrowing it down.  I'll see if I can come up with a
> fix.

Thank you very much Jesse, I've opened a bug report here:
http://bugzilla.kernel.org/show_bug.cgi?id=14781

2009-12-17 19:06:34

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Thu, 10 Dec 2009 09:54:22 -0800
Jesse Barnes <[email protected]> wrote:

> On Tue, 8 Dec 2009 20:20:07 +0700
> Emmanuel Benisty <[email protected]> wrote:
>
> > On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty
> > <[email protected]> wrote:
> > > On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty
> > > <[email protected]> wrote:
> > >> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes
> > >> <[email protected]> wrote:
> > >>> On Sat, 05 Dec 2009 23:44:55 +0000
> > >>> Darren Salt <[email protected]> wrote:
> > >>>
> > >>>> I demand that Andy Lutomirski may or may not have written...
> > >>>>
> > >>>> > Emmanuel Benisty wrote:
> > >>>> [snip]
> > >>>> >> I just wanted to report 2 regressions I am having now with
> > >>>> >> 2.6.32. Video
> > >>>> >> Screen is flickering/glitching like crazy in X. It happens
> > >>>> >> whether randomly or when conky is refreshed, when the mouse
> > >>>> >> cursor moves and like hell when a page is loading in the
> > >>>> >> browser. Not so easy to describe this issue.
> > >>>> [snip]
> > >>>>
> > >>>> > That sounds like FIFO underruns, which (I think) were
> > >>>> > introduced when self-refresh was enabled but should have been
> > >>>> > fixed. I personally have no clue how to fix them, but if you
> > >>>> > told the Intel people what kind of chip you have (lspci
> > >>>> > output), they can probably fix it.
> > >>>>
> > >>>> It also sounds like what I'm seeing on my EeePC 901. It only
> > >>>> happens after resume, which makes STR a little less than
> > >>>> useful; the display will, sooner or later, show a single
> > >>>> colour (which is, presumably, the result of a display engine
> > >>>> hang, as described in the comment immediately before
> > >>>> intel_calculate_wm) and, seemingly, be stuck like that until
> > >>>> power-off or reboot.
> > >>>>
> > >>>> Whether it *is* the same problem, I couldn't say.
> > >>>>
> > >>>> Needless to say, this problem goes away if I disable KMS.
> > >>>
> > >>> Arg, there are a few reports of this now, but I haven't been
> > >>> able to reproduce it.  I'll try harder...  (FYI the upstream
> > >>> bugs.freedesktop.org # for it is 24314).
> > >>
> > >> It *seems* that we are facing two different issues here (I don't
> > >> even use S2R and the problem is there since the very first second
> > >> I start X). Anyway, I have bisected the problem on my box, it
> > >> turns out to be this one:
> > >>
> > >> drm/i915: Fix render reclock availability detection
> > >>
> > >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
> > >>
> > > So, I have reverted this commit and rebuilt 2.6.32. It completely
> > > solved the issue described in my first post.
> > >
> >
> > just FTR, it looks like I'm not alone:
> > http://forums.gentoo.org/viewtopic-p-6087556.html#6087556
>
> Great, thanks for narrowing it down. I'll see if I can come up with a
> fix.

Can you give this a try?

--
Jesse Barnes, Intel Open Source Technology Center

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_d
index 279dc96..5bde801 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3808,6 +3808,8 @@ void intel_decrease_renderclock(struct drm_device *dev)
{
drm_i915_private_t *dev_priv = dev->dev_private;

+ return;
+
if (IS_IRONLAKE(dev))
return;

2009-12-18 17:10:44

by Emmanuel Benisty

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Fri, Dec 18, 2009 at 2:05 AM, Jesse Barnes <[email protected]> wrote:
> On Thu, 10 Dec 2009 09:54:22 -0800
> Jesse Barnes <[email protected]> wrote:
>
>> On Tue, 8 Dec 2009 20:20:07 +0700
>> Emmanuel Benisty <[email protected]> wrote:
>>
>> > On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty
>> > <[email protected]> wrote:
>> > > On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty
>> > > <[email protected]> wrote:
>> > >> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes
>> > >> <[email protected]> wrote:
>> > >>> On Sat, 05 Dec 2009 23:44:55 +0000
>> > >>> Darren Salt <[email protected]> wrote:
>> > >>>
>> > >>>> I demand that Andy Lutomirski may or may not have written...
>> > >>>>
>> > >>>> > Emmanuel Benisty wrote:
>> > >>>> [snip]
>> > >>>> >> I just wanted to report 2 regressions I am having now with
>> > >>>> >> 2.6.32. Video
>> > >>>> >> Screen is flickering/glitching like crazy in X. It happens
>> > >>>> >> whether randomly or when conky is refreshed, when the mouse
>> > >>>> >> cursor moves and like hell when a page is loading in the
>> > >>>> >> browser. Not so easy to describe this issue.
>> > >>>> [snip]
>> > >>>>
>> > >>>> > That sounds like FIFO underruns, which (I think) were
>> > >>>> > introduced when self-refresh was enabled but should have been
>> > >>>> > fixed. I personally have no clue how to fix them, but if you
>> > >>>> > told the Intel people what kind of chip you have (lspci
>> > >>>> > output), they can probably fix it.
>> > >>>>
>> > >>>> It also sounds like what I'm seeing on my EeePC 901. It only
>> > >>>> happens after resume, which makes STR a little less than
>> > >>>> useful; the display will, sooner or later, show a single
>> > >>>> colour (which is, presumably, the result of a display engine
>> > >>>> hang, as described in the comment immediately before
>> > >>>> intel_calculate_wm) and, seemingly, be stuck like that until
>> > >>>> power-off or reboot.
>> > >>>>
>> > >>>> Whether it *is* the same problem, I couldn't say.
>> > >>>>
>> > >>>> Needless to say, this problem goes away if I disable KMS.
>> > >>>
>> > >>> Arg, there are a few reports of this now, but I haven't been
>> > >>> able to reproduce it.  I'll try harder...  (FYI the upstream
>> > >>> bugs.freedesktop.org # for it is 24314).
>> > >>
>> > >> It *seems* that we are facing two different issues here (I don't
>> > >> even use S2R and the problem is there since the very first second
>> > >> I start X). Anyway, I have bisected the problem on my box, it
>> > >> turns out to be this one:
>> > >>
>> > >> drm/i915: Fix render reclock availability detection
>> > >>
>> > >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
>> > >>
>> > > So, I have reverted this commit and rebuilt 2.6.32. It completely
>> > > solved the issue described in my first post.
>> > >
>> >
>> > just FTR, it looks like I'm not alone:
>> > http://forums.gentoo.org/viewtopic-p-6087556.html#6087556
>>
>> Great, thanks for narrowing it down.  I'll see if I can come up with a
>> fix.
>
> Can you give this a try?
>
> --
> Jesse Barnes, Intel Open Source Technology Center
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_d
> index 279dc96..5bde801 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -3808,6 +3808,8 @@ void intel_decrease_renderclock(struct drm_device *dev)
>  {
>        drm_i915_private_t *dev_priv = dev->dev_private;
>
> +       return;
> +
>        if (IS_IRONLAKE(dev))
>                return;
>
>

Thanks a lot Jesse, I have tried your bugzilla patch. Anyone
interested, it's here:
http://bugzilla.kernel.org/show_bug.cgi?id=14781

2009-12-18 17:16:52

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.31 -> 2.6.32 Sound and video regressions

On Sat, 19 Dec 2009 00:10:39 +0700
Emmanuel Benisty <[email protected]> wrote:

> On Fri, Dec 18, 2009 at 2:05 AM, Jesse Barnes
> <[email protected]> wrote:
> > On Thu, 10 Dec 2009 09:54:22 -0800
> > Jesse Barnes <[email protected]> wrote:
> >
> >> On Tue, 8 Dec 2009 20:20:07 +0700
> >> Emmanuel Benisty <[email protected]> wrote:
> >>
> >> > On Mon, Dec 7, 2009 at 8:38 PM, Emmanuel Benisty
> >> > <[email protected]> wrote:
> >> > > On Mon, Dec 7, 2009 at 10:52 AM, Emmanuel Benisty
> >> > > <[email protected]> wrote:
> >> > >> On Mon, Dec 7, 2009 at 8:32 AM, Jesse Barnes
> >> > >> <[email protected]> wrote:
> >> > >>> On Sat, 05 Dec 2009 23:44:55 +0000
> >> > >>> Darren Salt <[email protected]> wrote:
> >> > >>>
> >> > >>>> I demand that Andy Lutomirski may or may not have written...
> >> > >>>>
> >> > >>>> > Emmanuel Benisty wrote:
> >> > >>>> [snip]
> >> > >>>> >> I just wanted to report 2 regressions I am having now
> >> > >>>> >> with 2.6.32. Video
> >> > >>>> >> Screen is flickering/glitching like crazy in X. It
> >> > >>>> >> happens whether randomly or when conky is refreshed,
> >> > >>>> >> when the mouse cursor moves and like hell when a page is
> >> > >>>> >> loading in the browser. Not so easy to describe this
> >> > >>>> >> issue.
> >> > >>>> [snip]
> >> > >>>>
> >> > >>>> > That sounds like FIFO underruns, which (I think) were
> >> > >>>> > introduced when self-refresh was enabled but should have
> >> > >>>> > been fixed. I personally have no clue how to fix them,
> >> > >>>> > but if you told the Intel people what kind of chip you
> >> > >>>> > have (lspci output), they can probably fix it.
> >> > >>>>
> >> > >>>> It also sounds like what I'm seeing on my EeePC 901. It only
> >> > >>>> happens after resume, which makes STR a little less than
> >> > >>>> useful; the display will, sooner or later, show a single
> >> > >>>> colour (which is, presumably, the result of a display engine
> >> > >>>> hang, as described in the comment immediately before
> >> > >>>> intel_calculate_wm) and, seemingly, be stuck like that until
> >> > >>>> power-off or reboot.
> >> > >>>>
> >> > >>>> Whether it *is* the same problem, I couldn't say.
> >> > >>>>
> >> > >>>> Needless to say, this problem goes away if I disable KMS.
> >> > >>>
> >> > >>> Arg, there are a few reports of this now, but I haven't been
> >> > >>> able to reproduce it.  I'll try harder...  (FYI the upstream
> >> > >>> bugs.freedesktop.org # for it is 24314).
> >> > >>
> >> > >> It *seems* that we are facing two different issues here (I
> >> > >> don't even use S2R and the problem is there since the very
> >> > >> first second I start X). Anyway, I have bisected the problem
> >> > >> on my box, it turns out to be this one:
> >> > >>
> >> > >> drm/i915: Fix render reclock availability detection
> >> > >>
> >> > >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=181a5336d6cc836f05507410d66988c483ad0154
> >> > >>
> >> > > So, I have reverted this commit and rebuilt 2.6.32. It
> >> > > completely solved the issue described in my first post.
> >> > >
> >> >
> >> > just FTR, it looks like I'm not alone:
> >> > http://forums.gentoo.org/viewtopic-p-6087556.html#6087556
> >>
> >> Great, thanks for narrowing it down.  I'll see if I can come up
> >> with a fix.
> >
> > Can you give this a try?
> >
> > --
> > Jesse Barnes, Intel Open Source Technology Center
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c
> > b/drivers/gpu/drm/i915/intel_d index 279dc96..5bde801 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -3808,6 +3808,8 @@ void intel_decrease_renderclock(struct
> > drm_device *dev) {
> >        drm_i915_private_t *dev_priv = dev->dev_private;
> >
> > +       return;
> > +
> >        if (IS_IRONLAKE(dev))
> >                return;
> >
> >
>
> Thanks a lot Jesse, I have tried your bugzilla patch. Anyone
> interested, it's here:
> http://bugzilla.kernel.org/show_bug.cgi?id=14781
>

Ok, I'll follow further updates in the bug. If anyone else has
anything to report, please do it in the bug so it doesn't get lost.

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center