Bug 6720 - mga framebuffer flickers after upgrading to 2.6.17
Summary: mga framebuffer flickers after upgrading to 2.6.17
Status: CLOSED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Alexey Dobriyan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 13:42 UTC by markus gapp
Modified: 2006-09-10 10:04 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.17
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
Do not program XDVICLKCTRL (489 bytes, patch)
2006-06-19 16:25 UTC, Petr Vandrovec
Details | Diff
program XDVICLKCTRL only on powerpc (656 bytes, patch)
2006-06-20 12:08 UTC, Paul A. Clarke
Details | Diff

Description markus gapp 2006-06-19 13:42:13 UTC
Most recent kernel where this bug did not occur: 2.6.16.20
Distribution: gentoo -- vanilla sources
Hardware Environment: dual opteron, mga g550, lcd connected via dvi
Software Environment: framebuffer console
Problem Description: after upgrading to 2.6.17 on an opteron smp machine 
(x86_64 kernel) with a mga g550 vga several dots around letters on a 
framebuffer console are flickering. matroxfb is compiled as a module. 
this also happens to an X server using mga and fbhw submodule.

Steps to reproduce:
Comment 1 Petr Vandrovec 2006-06-19 16:25:58 UTC
Created attachment 8345 [details]
Do not program XDVICLKCTRL
Comment 2 Petr Vandrovec 2006-06-19 16:28:04 UTC
Can you try http://bugzilla.kernel.org/attachment.cgi?id=8345&action=view to
make sure that problem is where I think it is ?  You may have to power cycle
your computer after applying patch to make sure MGA is reinitialized from scratch.
Comment 3 markus gapp 2006-06-20 08:30:07 UTC
hi petr!

your patch fixes this issue! thank you very much!!!!

markus
Comment 4 Paul A. Clarke 2006-06-20 09:05:32 UTC
I added that line of code in my patch.  Let me look into it a bit.
Perhaps the best thing, since this report is on x86-64 and the problem I was
addressing with my patch was specific to ppc/ppc64, would be to use that code
only on x86-64 (via ifdef).
I'll post that patch here in a bit.
Comment 5 Paul A. Clarke 2006-06-20 12:08:19 UTC
Created attachment 8354 [details]
program XDVICLKCTRL only on powerpc

this patch is a compromise, which should work on both powerpc and non-powerpc
systems.  programming the XDVICLKCTRL register, which fixed jitter on powerpc
systems and apparently introduced jitter on non-powerpc systems, has been
limited to just powerpc systems
Comment 6 markus gapp 2006-07-16 10:16:03 UTC
hi,
it seems that this patch did not make it into the sources till 2.6.17.5. any 
chance it will be included in future versions?

thanx, markus
Comment 7 Alexey Dobriyan 2006-08-17 14:10:52 UTC
Gentlemen, have you all agreed on fix? Can someone send it to Andrew so
2.6.18 won't flicker?
Comment 8 Petr Vandrovec 2006-08-17 15:10:58 UTC
I was under impression that this XDVICLKCTRL access is already under '#ifdef
CONFIG_PPC' in 2.6.18-rc4.  Apparently it is not, I have no idea why, I'll
resend patch.
Comment 9 Alexey Dobriyan 2006-09-10 10:04:41 UTC
commit b8cf368944807e29b16b24588a2a35c829bc9d9a
closing

Note You need to log in before you can comment on or make changes to this bug.