public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fix For Korg Bug #14897 (GM45 Display Flicker)
@ 2010-01-27  9:31 David John
  2010-01-27  9:49 ` [PATCH] Disable SR when more than one pipe is enabled David John
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: David John @ 2010-01-27  9:31 UTC (permalink / raw)
  To: Jesse Barnes, yakui.zhao; +Cc: linux-kernel@vger.kernel.org

Hi Jesse, Yakui,

Sorry for the delay, but I was busy with other work last week. I got
some time to look into this on Monday and the problem seems to be this:

With the external display connected on VGA, intel_update_watermarks
calls update_wm a couple of times in sequence with the following params:

1) planea_clock = 148500 planeb_clock = 0, sr_hdisplay=1920 (VGA)
2) planea_clock = 148500 planeb_clock = 72330, sr_hdisplay=1366 (LVDS)

In update_wm (in my case g4x_update_wm), for 1) sr_entries is calculated
correctly and self refresh is enabled. For 2) sr_entries remains zero
and the SR watermark is set as such. However, SR remains
active. On mode switch to console, this causes a FIFO underrun and the
display flicker.

The solution that I see is to simply disable SR if more than one pipe is
enabled. I've written a patch that does this. Also another point is that
the G45 docs state that a particular sequence has to be followed if SR
is to be used when only one pipe is active for Cantiga (Pg 30, G45 Vol
3). I didn't see any code doing this, but I did not see any untoward
behaviour either, with only my patch applied.

I've updated the patch to fix i965 and i9xx as I assume the same problem
will occur on those chipsets as well, but this has _not_been tested as I
don't have the relevant platforms.

Patch follows this mail. Please let me know if any changes are required.

The VGA output powering-on on mode change mentioned in my bug report is
a separate DRM bug for which I will send a patch later.

Regards,
David.

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

end of thread, other threads:[~2010-02-04 16:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27  9:31 Fix For Korg Bug #14897 (GM45 Display Flicker) David John
2010-01-27  9:49 ` [PATCH] Disable SR when more than one pipe is enabled David John
2010-01-27 16:51   ` Jesse Barnes
2010-01-28  6:58     ` David John
2010-02-04 16:35   ` Eric Anholt
2010-01-27 13:52 ` Fix For Korg Bug #14897 (GM45 Display Flicker) ykzhao
2010-01-27 14:59   ` David John
2010-01-27 16:56     ` Jesse Barnes
2010-01-27 16:48 ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox