public inbox for dri-devel@lists.freedesktop.org
 help / color / mirror / Atom feed
* [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
@ 2011-03-21 13:01 bugzilla-daemon
  2011-03-21 14:23 ` [Bug 35502] " bugzilla-daemon
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-21 13:01 UTC (permalink / raw)
  To: dri-devel

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: dri-devel@lists.freedesktop.org
        ReportedBy: john.lindgren@tds.net


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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
@ 2011-03-21 14:23 ` bugzilla-daemon
  2011-03-21 14:42 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-21 14:23 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #1 from Alex Deucher <agd5f@yahoo.com> 2011-03-21 07:23:42 PDT ---
Can you bisect?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
  2011-03-21 14:23 ` [Bug 35502] " bugzilla-daemon
@ 2011-03-21 14:42 ` bugzilla-daemon
  2011-03-22 19:40 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-21 14:42 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #2 from John Lindgren <john.lindgren@tds.net> 2011-03-21 07:42:40 PDT ---
I will see if I can find the time.  Probably not before this weekend.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
  2011-03-21 14:23 ` [Bug 35502] " bugzilla-daemon
  2011-03-21 14:42 ` bugzilla-daemon
@ 2011-03-22 19:40 ` bugzilla-daemon
  2011-03-22 19:57 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-22 19:40 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #3 from John Lindgren <john.lindgren@tds.net> 2011-03-22 12:40:37 PDT ---
$ git bisect bad
36868bda88b92ce8a9aa8b3ee2e0d1e0de09cc19 is the first bad commit
commit 36868bda88b92ce8a9aa8b3ee2e0d1e0de09cc19
Author: Alex Deucher <alexdeucher@gmail.com>
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.

    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>

:040000 040000 3e2fca7e36dd68f455757fab0d303c3ebe9e729f
81431d1b3a7c1ca3f217e4b670131f40aa836b90 M    drivers

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (2 preceding siblings ...)
  2011-03-22 19:40 ` bugzilla-daemon
@ 2011-03-22 19:57 ` bugzilla-daemon
  2011-03-22 19:59 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-22 19:57 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #4 from John Lindgren <john.lindgren@tds.net> 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.

diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c
b/drivers/gpu/drm/radeon/radeon_atombios.c
index a2dfe25..2525e86 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -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:

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (3 preceding siblings ...)
  2011-03-22 19:57 ` bugzilla-daemon
@ 2011-03-22 19:59 ` bugzilla-daemon
  2011-03-22 22:19 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-22 19:59 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #5 from John Lindgren <john.lindgren@tds.net> 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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (4 preceding siblings ...)
  2011-03-22 19:59 ` bugzilla-daemon
@ 2011-03-22 22:19 ` bugzilla-daemon
  2011-03-24 23:16 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-22 22:19 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #6 from Alex Deucher <agd5f@yahoo.com> 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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (5 preceding siblings ...)
  2011-03-22 22:19 ` bugzilla-daemon
@ 2011-03-24 23:16 ` bugzilla-daemon
  2011-03-24 23:29 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-24 23:16 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

John Lindgren <john.lindgren@tds.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #44725|0                           |1
        is obsolete|                            |
  Attachment #44731|0                           |1
        is obsolete|                            |

--- Comment #7 from John Lindgren <john.lindgren@tds.net> 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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (6 preceding siblings ...)
  2011-03-24 23:16 ` bugzilla-daemon
@ 2011-03-24 23:29 ` bugzilla-daemon
  2011-04-13 11:45 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-03-24 23:29 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

--- Comment #8 from Alex Deucher <agd5f@yahoo.com> 2011-03-24 16:29:17 PDT ---
Thanks, I've sent the updated version to Dave.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (7 preceding siblings ...)
  2011-03-24 23:29 ` bugzilla-daemon
@ 2011-04-13 11:45 ` bugzilla-daemon
  2011-04-30 15:34 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-04-13 11:45 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bryce@canonical.com

--- Comment #9 from Michel Dänzer <michel@daenzer.net> 2011-04-13 04:45:42 PDT ---
*** Bug 36007 has been marked as a duplicate of this bug. ***

-- 
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
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (8 preceding siblings ...)
  2011-04-13 11:45 ` bugzilla-daemon
@ 2011-04-30 15:34 ` bugzilla-daemon
  2011-05-05  7:50 ` bugzilla-daemon
  2011-05-14 12:32 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-04-30 15:34 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

Alex Deucher <agd5f@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |s.j.turner@uqconnect.net

--- Comment #10 from Alex Deucher <agd5f@yahoo.com> 2011-04-30 08:34:00 PDT ---
*** Bug 36713 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (9 preceding siblings ...)
  2011-04-30 15:34 ` bugzilla-daemon
@ 2011-05-05  7:50 ` bugzilla-daemon
  2011-05-14 12:32 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-05-05  7:50 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

Fabio Pedretti <fabio.ped@libero.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Fabio Pedretti <fabio.ped@libero.it> 2011-05-05 00:50:01 PDT ---
Fixed in 2.6.38.3.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 35502] Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine)
  2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
                   ` (10 preceding siblings ...)
  2011-05-05  7:50 ` bugzilla-daemon
@ 2011-05-14 12:32 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2011-05-14 12:32 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=35502

Chris Sherlock <ta.bu.shi.da.yu@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ta.bu.shi.da.yu@gmail.com

--- Comment #12 from Chris Sherlock <ta.bu.shi.da.yu@gmail.com> 2011-05-14 05:32:09 PDT ---
*** Bug 32662 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-05-14 12:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 13:01 [Bug 35502] New: Regression: black screen with Radeon KMS in 2.6.38 (2.6.37.4 worked fine) bugzilla-daemon
2011-03-21 14:23 ` [Bug 35502] " bugzilla-daemon
2011-03-21 14:42 ` bugzilla-daemon
2011-03-22 19:40 ` bugzilla-daemon
2011-03-22 19:57 ` bugzilla-daemon
2011-03-22 19:59 ` bugzilla-daemon
2011-03-22 22:19 ` bugzilla-daemon
2011-03-24 23:16 ` bugzilla-daemon
2011-03-24 23:29 ` bugzilla-daemon
2011-04-13 11:45 ` bugzilla-daemon
2011-04-30 15:34 ` bugzilla-daemon
2011-05-05  7:50 ` bugzilla-daemon
2011-05-14 12:32 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox