New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
Subsystems (2)
https://bugs.freedesktop.org/show_bug.cgi?id=35502
Summary: Regression: black screen with Radeon KMS in 2.6.38
(2.6.37.4 worked fine)
Product: DRI
Version: unspecified
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: DRM/Radeon
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=44669)
--> (https://bugs.freedesktop.org/attachment.cgi?id=44669)
Kernel log
With Linux kernel 2.6.38, loading the radeon module causes the console to go completely blank (laptop backlight on, but nothing displayed). The system still responds to ctrl-alt-del and reboots. This is a regression from the previous kernel, 2.6.37.4, where kernel mode setting works flawlessly.
With radeon.modeset=0, or with the module blacklisted, the system boots fine, and I can use X, but without the powersaving features available through KMS.
System: Toshiba Satellite A305-S6916
Graphics: ATI Radeon Mobility HD 3650
Kernel: 2.6.38 (x86_64)
Kernel log when loading the module:
Mar 21 00:57:38 localhost kernel: [drm] Initialized drm 1.1.0 20060810 Mar 21 00:57:38 localhost kernel: [drm] radeon defaulting to kernel modesetting. Mar 21 00:57:38 localhost kernel: [drm] radeon kernel modesetting enabled. Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: setting latency timer to 64 Mar 21 00:57:38 localhost kernel: [drm] initializing kernel modesetting (RV635 0x1002:0x9591). Mar 21 00:57:38 localhost kernel: [drm] register mmio base: 0xD6300000 Mar 21 00:57:38 localhost kernel: [drm] register mmio size: 65536 Mar 21 00:57:38 localhost kernel: ATOM BIOS: Tosh_IEC_Potomac_M86_DDR2 Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used) Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF Mar 21 00:57:38 localhost kernel: [drm] Detected VRAM RAM=512M, BAR=256M Mar 21 00:57:38 localhost kernel: [drm] RAM width 128bits DDR Mar 21 00:57:38 localhost kernel: [TTM] Zone kernel: Available graphics memory: 2027544 kiB. Mar 21 00:57:38 localhost kernel: [TTM] Initializing pool allocator. Mar 21 00:57:38 localhost kernel: [drm] radeon: 512M of VRAM memory ready Mar 21 00:57:38 localhost kernel: [drm] radeon: 512M of GTT memory ready. Mar 21 00:57:38 localhost kernel: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010). Mar 21 00:57:38 localhost kernel: [drm] Driver supports precise vblank timestamp query. Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: irq 49 for MSI/MSI-X Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: radeon: using MSI. Mar 21 00:57:38 localhost kernel: [drm] radeon: irq initialized. Mar 21 00:57:38 localhost kernel: [drm] GART: num cpu pages 131072, num gpu pages 131072 Mar 21 00:57:38 localhost kernel: [drm] Loading RV635 Microcode Mar 21 00:57:38 localhost kernel: radeon 0000:01:00.0: WB enabled Mar 21 00:57:38 localhost kernel: [drm] ring test succeeded in 1 usecs Mar 21 00:57:38 localhost kernel: [drm] radeon: ib pool ready. Mar 21 00:57:38 localhost kernel: [drm] ib test succeeded in 0 usecs Mar 21 00:57:38 localhost kernel: [drm] Enabling audio support Mar 21 00:57:38 localhost kernel: HDMI hot plug event: Pin=3 Presence_Detect=0
ELD_Valid=0
If there is any more info I can provide, please ask.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #1 from Alex Deucher <[email protected]> 2011-03-21 07:23:42 PDT --- Can you bisect?
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #2 from John Lindgren <[email protected]> 2011-03-21 07:42:40 PDT --- I will see if I can find the time. Probably not before this weekend.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #3 from John Lindgren <[email protected]> 2011-03-22 12:40:37 PDT ---
$ git bisect bad 36868bda88b92ce8a9aa8b3ee2e0d1e0de09cc19 is the first bad commit commit 36868bda88b92ce8a9aa8b3ee2e0d1e0de09cc19 Author: Alex Deucher <[email protected]> Date: Thu Jan 6 21:19:21 2011 -0500
drm/radeon/kms: parse DCE5 encoder caps when setting up encoders
Needed to tell which DIG encoders are HBR2 capable for DP 1.2.
:040000 040000 3e2fca7e36dd68f455757fab0d303c3ebe9e729f81431d1b3a7c1ca3f217e4b670131f40aa836b90 M drivers
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #4 from John Lindgren <[email protected]> 2011-03-22 12:57:59 PDT --- The problem is very simple. There is no sanity check in the loop added by that commit to ensure that record->ucRecordSize is nonzero. Hence the driver gets stuck in an infinite loop.
(quoted diff) +0 -0
b/drivers/gpu/drm/radeon/radeon_atombios.c
index a2dfe25..2525e86 100644
drivers/gpu/drm/radeon/radeon_atombios.c +0 -0
@@ -679,7 +679,8 @@ bool
radeon_get_atom_connector_info_from_object_table(struct drm_device *dev)
ATOM_ENCODER_CAP_RECORD *cap_record;
u16 caps = 0;- while (record->ucRecordType > 0 &&
+ while (record->ucRecordSize > 0 &&
+ record->ucRecordType > 0 &&
record->ucRecordType <=
ATOM_MAX_OBJECT_RECORD_NUMBER) {
switch (record->ucRecordType) {
case ATOM_ENCODER_CAP_RECORD_TYPE:Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #5 from John Lindgren <[email protected]> 2011-03-22 12:59:38 PDT --- Created an attachment (id=44725)
View: https://bugs.freedesktop.org/attachment.cgi?id=44725
Review: https://bugs.freedesktop.org/review?bug=35502&attachment=44725
Patch to fix infinite loop
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #6 from Alex Deucher <[email protected]> 2011-03-22 15:19:49 PDT --- Created an attachment (id=44731)
View: https://bugs.freedesktop.org/attachment.cgi?id=44731
Review: https://bugs.freedesktop.org/review?bug=35502&attachment=44731
fix record parsing
Thanks for tracking. I've attached the patch I plan to send upstream. I also fixed a similar potential case in the connector handling.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
John Lindgren <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #44725|0 |1
is obsolete| |
Attachment #44731|0 |1
is obsolete| |--- Comment #7 from John Lindgren <[email protected]> 2011-03-24 16:16:39 PDT --- Created an attachment (id=44795)
View: https://bugs.freedesktop.org/attachment.cgi?id=44795
Review: https://bugs.freedesktop.org/review?bug=35502&attachment=44795
Updated patch (#3)
For the sake of completeness, I updated the patch to also fix a third loop similar to the first two.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
--- Comment #8 from Alex Deucher <[email protected]> 2011-03-24 16:29:17 PDT --- Thanks, I've sent the updated version to Dave.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #9 from Michel Dänzer <[email protected]> 2011-04-13 04:45:42 PDT --- *** Bug 36007 has been marked as a duplicate of this bug. ***
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
Alex Deucher <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #10 from Alex Deucher <[email protected]> 2011-04-30 08:34:00 PDT --- *** Bug 36713 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
Fabio Pedretti <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #11 from Fabio Pedretti <[email protected]> 2011-05-05 00:50:01 PDT --- Fixed in 2.6.38.3.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=35502
Chris Sherlock <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #12 from Chris Sherlock <[email protected]> 2011-05-14 05:32:09 PDT --- *** Bug 32662 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.