https://bugzilla.kernel.org/show_bug.cgi?id=28852
Summary: [KMS] radeon artifacts when switched to graphics after boot Product: Drivers Version: 2.5 Kernel Version: 2.6.38-rc2 (branch airlied/drm-2.6.git/drm-fixes) Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Video(DRI - non Intel) AssignedTo: drivers_video-dri@kernel-bugs.osdl.org ReportedBy: oldium.pro@seznam.cz Regression: Yes
I have running lines on the screen when the radeon driver takes control (see attached video from system boot). In 2.6.37 it worked fine (some old drm-radeon-testing branch), but in 2.6.38 drm-fixes it started to appear.
I will attach dmesg output for both 2.6.37 and 2.6.38 with drm.debug=3.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #1 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:14:00 --- Here is the video showing the problem: http://problem.oldium.net/radeon.avi
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #2 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:14:42 --- Created an attachment (id=47202) --> (https://bugzilla.kernel.org/attachment.cgi?id=47202) 2.6.38 dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #3 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:15:24 --- Created an attachment (id=47212) --> (https://bugzilla.kernel.org/attachment.cgi?id=47212) 2.6.37 dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Oldřich Jedlička oldium.pro@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[KMS] radeon artifacts when |[KMS] radeon artifacts when |switched to graphics after |switched to graphics during |boot |boot
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Rafael J. Wysocki rjw@sisk.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |florian@mickler.org, | |maciej.rutecki@gmail.com, | |rjw@sisk.pl Blocks| |27352
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Oldřich Jedlička oldium.pro@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|27352 |
--- Comment #4 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:26:25 --- It is notebook's LVDS on Mobility Radeon HD 3470.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Oldřich Jedlička oldium.pro@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27352
--- Comment #5 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:29:02 --- Sorry, mid-air collision.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #6 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 21:33:19 --- Created an attachment (id=47222) --> (https://bugzilla.kernel.org/attachment.cgi?id=47222) VBIOS
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexdeucher@gmail.com
--- Comment #7 from Alex Deucher alexdeucher@gmail.com 2011-02-10 21:47:26 --- Can you attach the output of lspci -vnn for your card?
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #8 from Alex Deucher alexdeucher@gmail.com 2011-02-10 21:48:09 --- The following patches should fix it: http://lists.freedesktop.org/archives/dri-devel/2011-February/007976.html http://lists.freedesktop.org/archives/dri-devel/2011-February/008059.html
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #9 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 22:13:11 --- I've applied both patches and the problem is worse.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #10 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-10 22:14:02 --- Created an attachment (id=47242) --> (https://bugzilla.kernel.org/attachment.cgi?id=47242) `lspci -vnn` with my card
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #11 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-11 06:21:50 --- Created an attachment (id=47262) --> (https://bugzilla.kernel.org/attachment.cgi?id=47262) Patch that fixes the problem
The patch reverts commit "drm/radeon/kms: disable ss fixed ref divide".
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #12 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-11 06:24:38 --- I've applied the patch on top of the two patches from the mailing list.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #13 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-11 06:42:18 --- I forgot to mention the rest of my hardware - Acer TravelMate 5730G.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #14 from Alex Deucher alexdeucher@gmail.com 2011-02-11 07:12:27 --- Does your revert patch work ok without the two mailing list patches?
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #15 from Alex Deucher alexdeucher@gmail.com 2011-02-11 07:33:25 --- Created an attachment (id=47292) --> (https://bugzilla.kernel.org/attachment.cgi?id=47292) possible fix
Can you try the following patch against 2.6.38-rc4 or newer and make sure all is working well?
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #16 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-11 20:10:45 --- My patch on 2.6.38-rc4 doesn't fix the problem, your patch neither. My patch combined with previous two from mailing list fixes the problem on 2.6.38-rc4.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #17 from Alex Deucher alexdeucher@gmail.com 2011-02-12 01:13:59 --- Created an attachment (id=47462) --> (https://bugzilla.kernel.org/attachment.cgi?id=47462) new patch
Can you try this patch? Try uncommenting the following lines to see if either of those flags work any better. Try them individually and together if possible and report back which, if any, helps.
/*pll->flags |= RADEON_PLL_PREFER_MINM_OVER_MAXP;*/
/*if (ASIC_IS_AVIVO(rdev)) pll->flags |= RADEON_PLL_USE_FRAC_FB_DIV;*/
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #18 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-12 16:26:09 --- Results with 2.6.38-rc4 and first/second block uncommented (no=commented, yes=uncommented):
first second result ------------------- no no bad (usual) yes no worse no yes good yes yes good
The result is that the second block (RADEON_PLL_USE_FRAC_FB_DIV) has to be uncommented on my system. I've tested only LVDS, not any dual-screen configuration.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #19 from Rafael J. Wysocki rjw@sisk.pl 2011-02-12 22:46:54 --- Handled-By : Alex Deucher alexdeucher@gmail.com
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #20 from Alex Deucher alexdeucher@gmail.com 2011-02-13 23:48:00 --- Created an attachment (id=47722) --> (https://bugzilla.kernel.org/attachment.cgi?id=47722) final patch
The attached patch is what I am proposing goes upstream. Please verify it works properly for you.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #21 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-14 07:12:11 --- (In reply to comment #20)
Created an attachment (id=47722)
--> (https://bugzilla.kernel.org/attachment.cgi?id=47722) [details]
final patch
The attached patch is what I am proposing goes upstream. Please verify it works properly for you.
The patch fixes my problem.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #22 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-16 07:22:02 --- Latest kernel from airlied/drm-2.6.git, branch drm-fixes, works fine.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #23 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-16 19:21:17 --- Fixed in mainstream 2.6.38-rc5. Thanks!
https://bugzilla.kernel.org/show_bug.cgi?id=28852
--- Comment #24 from Oldřich Jedlička oldium.pro@seznam.cz 2011-02-19 11:38:23 --- It is safe to mark this bug as RESOLVED. I don't know the correct resolution, though.
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Rafael J. Wysocki rjw@sisk.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |CODE_FIX
--- Comment #25 from Rafael J. Wysocki rjw@sisk.pl 2011-02-19 11:46:50 --- Fixed by commit 5b40ddf drm/radeon/kms: hopefully fix pll issues for real (v3).
https://bugzilla.kernel.org/show_bug.cgi?id=28852
Rafael J. Wysocki rjw@sisk.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
dri-devel@lists.freedesktop.org