Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2010-01-31 Thread Luca Tettamanti
2010/1/30 Dave Airlie airl...@gmail.com: 2009/12/24 Rafał Miłecki zaj...@gmail.com: I applied patches from http://www.botchco.com/alex/xorg/pm/ and now engine reclocks between 110MHz and 680MHz. The problem is I see ~10 black horizontal lines for a one frame time on almost every reclock. I

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2010-01-31 Thread Rafał Miłecki
W dniu 31 stycznia 2010 14:30 użytkownik Luca Tettamanti kronos...@gmail.com napisał: 2010/1/30 Dave Airlie airl...@gmail.com: 2009/12/24 Rafał Miłecki zaj...@gmail.com: I applied patches from http://www.botchco.com/alex/xorg/pm/ and now engine reclocks between 110MHz and 680MHz. The problem

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2010-01-30 Thread Dave Airlie
2009/12/24 Rafał Miłecki zaj...@gmail.com: I applied patches from http://www.botchco.com/alex/xorg/pm/ and now engine reclocks between 110MHz and 680MHz. The problem is I see ~10 black horizontal lines for a one frame time on almost every reclock. I tried to fix this or at least understand it

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-30 Thread Luca Tettamanti
On Wed, Dec 30, 2009 at 08:03:53AM +0100, Michel Dänzer wrote: On Tue, 2009-12-29 at 19:35 +0100, Luca Tettamanti wrote: Il Mon, Dec 28, 2009 at 05:27:13PM -0500, Alex Deucher ha scritto: 2009/12/28 Luca Tettamanti kronos...@gmail.com: On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-30 Thread Luca Tettamanti
On Wed, Dec 30, 2009 at 10:56 AM, Luca Tettamanti kronos...@gmail.com wrote: On Wed, Dec 30, 2009 at 08:03:53AM +0100, Michel Dänzer wrote: On Tue, 2009-12-29 at 19:35 +0100, Luca Tettamanti wrote: Il Mon, Dec 28, 2009 at 05:27:13PM -0500, Alex Deucher ha scritto: 2009/12/28 Luca Tettamanti

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-29 Thread Alex Deucher
2009/12/29 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher alexdeuc...@gmail.com: 2009/12/28 Luca Tettamanti kronos...@gmail.com: On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex Deucher wrote: 2009/12/28 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-29 Thread Luca Tettamanti
Il Mon, Dec 28, 2009 at 05:27:13PM -0500, Alex Deucher ha scritto: 2009/12/28 Luca Tettamanti kronos...@gmail.com: On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex Deucher wrote: 2009/12/28 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher alexdeuc...@gmail.com: On Mon, Dec

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-29 Thread Xavier Bestel
On Tue, 2009-12-29 at 19:35 +0100, Luca Tettamanti wrote: I've adapted Rafał's patch to do the reclock when the idle interrupt is fired (which btw should take care of the special case for nr CRTCs 1). Unfortunately I still see the black frame when reclocking is performed. So I tried recloking

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-29 Thread Michel Dänzer
On Tue, 2009-12-29 at 19:35 +0100, Luca Tettamanti wrote: Il Mon, Dec 28, 2009 at 05:27:13PM -0500, Alex Deucher ha scritto: 2009/12/28 Luca Tettamanti kronos...@gmail.com: On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex Deucher wrote: 2009/12/28 Luca Tettamanti kronos...@gmail.com:

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Luca Tettamanti
On Sun, Dec 27, 2009 at 1:55 AM, Rafał Miłecki zaj...@gmail.com wrote: W dniu 26 grudnia 2009 20:08 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: It may be that the engine doesn't like to be reclocked while it's running.  Perhaps we should use the GUI idle interrupt rather than

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Alex Deucher
On Mon, Dec 28, 2009 at 5:53 AM, Luca Tettamanti kronos...@gmail.com wrote: On Sun, Dec 27, 2009 at 1:55 AM, Rafał Miłecki zaj...@gmail.com wrote: W dniu 26 grudnia 2009 20:08 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: It may be that the engine doesn't like to be reclocked while

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Luca Tettamanti
2009/12/28 Alex Deucher alexdeuc...@gmail.com: On Mon, Dec 28, 2009 at 5:53 AM, Luca Tettamanti kronos...@gmail.com wrote: On Sun, Dec 27, 2009 at 1:55 AM, Rafał Miłecki zaj...@gmail.com wrote: W dniu 26 grudnia 2009 20:08 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: It may be that

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Alex Deucher
2009/12/28 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher alexdeuc...@gmail.com: On Mon, Dec 28, 2009 at 5:53 AM, Luca Tettamanti kronos...@gmail.com wrote: On Sun, Dec 27, 2009 at 1:55 AM, Rafał Miłecki zaj...@gmail.com wrote: W dniu 26 grudnia 2009 20:08 użytkownik Alex Deucher

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Luca Tettamanti
On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex Deucher wrote: 2009/12/28 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher alexdeuc...@gmail.com: On Mon, Dec 28, 2009 at 5:53 AM, Luca Tettamanti kronos...@gmail.com wrote: On Sun, Dec 27, 2009 at 1:55 AM, Rafał Miłecki

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-28 Thread Alex Deucher
2009/12/28 Luca Tettamanti kronos...@gmail.com: On Mon, Dec 28, 2009 at 01:32:24PM -0500, Alex Deucher wrote: 2009/12/28 Luca Tettamanti kronos...@gmail.com: 2009/12/28 Alex Deucher alexdeuc...@gmail.com: On Mon, Dec 28, 2009 at 5:53 AM, Luca Tettamanti kronos...@gmail.com wrote: On

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-26 Thread Rafał Miłecki
W dniu 26 grudnia 2009 02:46 użytkownik Rafał Miłecki zaj...@gmail.com napisał: There are some my experiments with engine. Reclocking between: 1) 110MHz and 680MHz - 1 corrupted frame on every reclock 2) 200MHz and 680MHz - 1 corrupted frame on almost every reclock 3) 250MHz and 680MHz - no

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-26 Thread Jerome Glisse
On Sat, Dec 26, 2009 at 02:46:29AM +0100, Rafał Miłecki wrote: W dniu 24 grudnia 2009 08:19 użytkownik Michel Dänzer mic...@daenzer.net napisał: I suspect the delay is more likely due to the workqueue than the interrupt itself. Way back when I implemented DRI1 tear-free buffer swaps for

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-26 Thread Rafał Miłecki
2009/12/26 Jerome Glisse gli...@freedesktop.org: What is the screen resolution ? It's 1600x900 panel driven by INTERNAL_KLDSCP_LVTMA. I guess you think about minimum clocks needed to drive my display, am I right? It could make sense if I would see general corruptions and not only at reclocking

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-26 Thread Alex Deucher
2009/12/26 Rafał Miłecki zaj...@gmail.com: W dniu 26 grudnia 2009 02:46 użytkownik Rafał Miłecki zaj...@gmail.com napisał: There are some my experiments with engine. Reclocking between: 1) 110MHz and 680MHz - 1 corrupted frame on every reclock 2) 200MHz and 680MHz - 1 corrupted frame on

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-26 Thread Rafał Miłecki
W dniu 26 grudnia 2009 20:08 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: It may be that the engine doesn't like to be reclocked while it's running.  Perhaps we should use the GUI idle interrupt rather than vblanks to reclock the engine. Could you say something more about GUI idle

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-25 Thread Rafał Miłecki
W dniu 26 grudnia 2009 02:46 użytkownik Rafał Miłecki zaj...@gmail.com napisał: W dniu 24 grudnia 2009 08:19 użytkownik Michel Dänzer mic...@daenzer.net napisał: I suspect the delay is more likely due to the workqueue than the interrupt itself. Way back when I implemented DRI1 tear-free buffer

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-25 Thread Rafał Miłecki
W dniu 24 grudnia 2009 08:19 użytkownik Michel Dänzer mic...@daenzer.net napisał: I suspect the delay is more likely due to the workqueue than the interrupt itself. Way back when I implemented DRI1 tear-free buffer swaps for i945, I had to use a tasklet to reliably do work within the vertical

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-23 Thread Alex Deucher
2009/12/23 Rafał Miłecki zaj...@gmail.com: I applied patches from http://www.botchco.com/alex/xorg/pm/ and now engine reclocks between 110MHz and 680MHz. The problem is I see ~10 black horizontal lines for a one frame time on almost every reclock. I tried to fix this or at least understand it

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-23 Thread Rafał Miłecki
W dniu 24 grudnia 2009 02:59 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2009/12/23 Rafał Miłecki zaj...@gmail.com: Do you have any other ideas? I suspect the reclock is missing the blanking period.  Try removing the debugging output in my patch as that adds additional latency.

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-23 Thread Alex Deucher
2009/12/23 Rafał Miłecki zaj...@gmail.com: W dniu 24 grudnia 2009 02:59 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2009/12/23 Rafał Miłecki zaj...@gmail.com: Do you have any other ideas? I suspect the reclock is missing the blanking period.  Try removing the debugging output in

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2009-12-23 Thread Michel Dänzer
On Thu, 2009-12-24 at 03:24 +0100, Rafał Miłecki wrote: W dniu 24 grudnia 2009 02:59 użytkownik Alex Deucher alexdeuc...@gmail.com napisał: 2009/12/23 Rafał Miłecki zaj...@gmail.com: Do you have any other ideas? I suspect the reclock is missing the blanking period. Try removing the