https://bugzilla.kernel.org/show_bug.cgi?id=29272
Summary: [BISECTED] Screen becomes corrupted when switching video mode with Radeon KMS Product: Drivers Version: 2.5 Kernel Version: 2.6.38-rc5 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: high Priority: P1 Component: Video(DRI - non Intel) AssignedTo: drivers_video-dri@kernel-bugs.osdl.org ReportedBy: jlp.bugs@gmail.com CC: alexdeucher@gmail.com Regression: Yes
After updating the kernel to 2.6.38-rc5 screen gets corrupted when video mode switches for KMS. This is on laptop eMachines E640G with integrated ATI Mobility Radeon HD 5470. It was working just fine with -rc4. I have bisected the commits and this one was pointed out as the culprit:
5b40ddf888398ce4cccbf3b9d0a18d90149ed7ff is the first bad commit commit 5b40ddf888398ce4cccbf3b9d0a18d90149ed7ff Author: Alex Deucher alexdeucher@gmail.com Date: Mon Feb 14 11:43:11 2011 -0500
drm/radeon/kms: hopefully fix pll issues for real (v3)
The problematic boards have a recommended reference divider to be used when spread spectrum is enabled on the laptop panel. Enable the use of the recommended reference divider along with the new pll algo.
v2: testing options
v3: When using the fixed reference divider with LVDS, prefer min m to max p and use fractional feedback dividers.
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28852 https://bugzilla.kernel.org/show_bug.cgi?id=24462 https://bugzilla.kernel.org/show_bug.cgi?id=26552 MacbookPro issues reported by Justin Mattock justinmattock@gmail.com
Signed-off-by: Alex Deucher alexdeucher@gmail.com Cc: stable@kernel.org Signed-off-by: Dave Airlie airlied@redhat.com
:040000 040000 8736f993b97cc8370fd29048761a1e0da4969306 657bdb221e3f4da6efdfec02f8f348db5a537b29 M drivers
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #1 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 00:54:29 --- Created an attachment (id=47972) --> (https://bugzilla.kernel.org/attachment.cgi?id=47972) dmesg
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #2 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 00:55:51 --- Created an attachment (id=47982) --> (https://bugzilla.kernel.org/attachment.cgi?id=47982) lspci
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #3 from Alex Deucher alexdeucher@gmail.com 2011-02-17 00:58:19 --- Can you attach your xorg log and a copy of your vbios?
(as root) (use lspci to get the bus id) cd /sys/bus/pci/devices/<pci bus id> echo 1 > rom cat rom > /tmp/vbios.rom echo 0 > rom
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #4 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 01:04:36 --- Created an attachment (id=47992) --> (https://bugzilla.kernel.org/attachment.cgi?id=47992) vbios
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #5 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 01:06:20 --- Created an attachment (id=48002) --> (https://bugzilla.kernel.org/attachment.cgi?id=48002) Xorg.0.log
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #6 from Alex Deucher alexdeucher@gmail.com 2011-02-17 01:24:30 --- Created an attachment (id=48012) --> (https://bugzilla.kernel.org/attachment.cgi?id=48012) set frac fb div for dce4+
Does this patch help?
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #7 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 01:44:20 --- No, unfortunately it doesn't help :(
https://bugzilla.kernel.org/show_bug.cgi?id=29272
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48012|0 |1 is obsolete| |
--- Comment #8 from Alex Deucher alexdeucher@gmail.com 2011-02-17 01:53:58 --- Created an attachment (id=48022) --> (https://bugzilla.kernel.org/attachment.cgi?id=48022) alternate patch
How about this one?
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #9 from Jure Repinc jlp.bugs@gmail.com 2011-02-17 02:06:29 --- Yes, this one helped :) Thank you very much!
https://bugzilla.kernel.org/show_bug.cgi?id=29272
--- Comment #10 from Alex Deucher alexdeucher@gmail.com 2011-02-17 02:07:23 --- Created an attachment (id=48032) --> (https://bugzilla.kernel.org/attachment.cgi?id=48032) one more
If the patch in comment 8 doesn't work, try this one. But test the one in comment 8 first.
https://bugzilla.kernel.org/show_bug.cgi?id=29272
Alex Deucher alexdeucher@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48022|0 |1 is obsolete| | Attachment #48032|0 |1 is obsolete| |
--- Comment #11 from Alex Deucher alexdeucher@gmail.com 2011-02-17 02:18:55 --- Created an attachment (id=48042) --> (https://bugzilla.kernel.org/attachment.cgi?id=48042) patch for upstream
I've attached the commit I'm sending to Dave.
https://bugzilla.kernel.org/show_bug.cgi?id=29272
Rafael J. Wysocki rjw@sisk.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |florian@mickler.org, | |maciej.rutecki@gmail.com, | |rjw@sisk.pl Blocks| |27352 Resolution| |PATCH_ALREADY_AVAILABLE
--- Comment #12 from Rafael J. Wysocki rjw@sisk.pl 2011-02-17 22:57:46 --- Handled-By : Alex Deucher alexdeucher@gmail.com Patch : https://bugzilla.kernel.org/attachment.cgi?id=48042
https://bugzilla.kernel.org/show_bug.cgi?id=29272
Florian Mickler florian@mickler.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED Resolution|PATCH_ALREADY_AVAILABLE |CODE_FIX
--- Comment #13 from Florian Mickler florian@mickler.org 2011-02-20 00:15:25 --- merged for .38-rc6: commit 9f4283f49f0a96a64c5a45fe56f0f8c942885eef Author: Alex Deucher alexdeucher@gmail.com Date: Wed Feb 16 21:17:04 2011 -0500
drm/radeon/kms: add missing frac fb div flag for dce4+
dri-devel@lists.freedesktop.org