Skip to contentSkip to conversation

New: New PM-Code produces white screen on laptop display on startup on an radeon x700

Bug 16389 [email protected] 1 participant 10 messages Jul 14, 2010 – Jul 23, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=16389

Summary: New PM-Code produces white screen on laptop display on
startup on an radeon x700
Product: Drivers
Version: 2.5
Kernel Version: 2.6.35-rc4
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes

After the merge of the new-pm code for radeon it get an all white screen on my laptop display as soon as kms gets activated. Before the merge it worked as long as i used radeon.dynpm=1 as boot parameter (without this parameter i also get an all white screen with earlier kernels).

I can work around it with an vbetool dpms off / on cycle (which uses bios routines i think), i tried all options / combinations of radeon.hw_i2c and radeon.new_pll without success. I also get an all white laptop-screen as soon as i change resolutions on my display, this also can be workaround with an vbetool dpms off / on cycle.

This also happens in the non-kms-case with the xorg-driver whenever i change resolutions, in the old days i could workaround it with the MonitorLayout "LVDS, none" option, however this option is long gone.

Chipset is an mobility radeon x700 pcie, pci-id is: 1002:5653

Please tell me what more information is needed.

Thank you

Jan Kreuzer

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#1 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

https://bugzilla.kernel.org/show_bug.cgi?id=16389

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Alex Deucher <[email protected]> 2010-07-14 18:14:13 --- What kernel are you using? Can you bisect what exact commit broke it? I seem to recall that you had this issue before on older kernels and it just starting working at some point. I don't think the pm code is to blame per se, as it's not enabled by default. Also, note that dynpm is no longer a valid module parameter with the new pm code.

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#2 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

--- Comment #2 from Jan Kreuzer <[email protected]> 2010-07-15 05:04:26 --- Currently on airlieds drm-radeon-testing, but the same happens with mainline. I did an bisect run before, i will attach the log. However just reverting the commit didnt help, so i dont think the log is right.

I also think that new pm-code is not to blame, i guess that activativing the old code on boot time with the dynpm option led to an longer initializing time of the chipset. I am not an programmer, but looked at the code of r420.c, the old code kicked in after the initialize of the clocks, maybe more time is needed there ? But maybe i am wrong, i added about 50 printks after radeon_get_clock_info(rdev->ddev); sometimes it works no, sometimes not.

I had the issue since the beginning of radeon-kms, it started working after i used the dynpm option at boot time, never without.

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#3 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

--- Comment #3 from Jan Kreuzer <[email protected]> 2010-07-15 05:05:10 --- Created an attachment (id=27110)
--> (https://bugzilla.kernel.org/attachment.cgi?id=27110)
gitbisectlog

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#4 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

--- Comment #4 from Jan Kreuzer <[email protected]> 2010-07-20 08:33:28 --- Looking at fdo-bug 22755 i found another way to put the screen into an usable stae after resolution switch:
xrandr -s 1024x768; xrandr --output LVDS --off; xrandr --output LVDS --auto works (i think it is the same call as vbetool dpms off / on). Without turning the output off and on i get the white screen. Whats the difference between boot-time initialization of the screen (which does not work) and the initialization with the xrandr off / on call (which works) ?

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#5 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

--- Comment #5 from Alex Deucher <[email protected]> 2010-07-20 16:08:48 --- (In reply to comment #4)

Quoted 7 lines

Looking at fdo-bug 22755 i found another way to put the screen into an usable stae after resolution switch:
xrandr -s 1024x768; xrandr --output LVDS --off; xrandr --output LVDS --auto works (i think it is the same call as vbetool dpms off / on). Without turning the output off and on i get the white screen. Whats the difference between boot-time initialization of the screen (which does not work) and the initialization with the xrandr off / on call (which works) ?

Nothing. Both use the same path in the driver. I suspect this is a timing issue with the LVDS. Your system probably needs a longer/shorter delay somewhere in the LVDS dpms code. Can you try adjusting the delays in radeon_legacy_lvds_dpms() in radeon_legacy_encoders.c? Can you also try something like this:

(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
index bad77f4..5688a0c 100644

drivers/gpu/drm/radeon/radeon_legacy_encoders.c +0 -0
@@ -108,6 +108,7 @@ static void radeon_legacy_lvds_dpms(struct drm_encoder

*encoder, int mode)

                udelay(panel_pwr_delay * 1000);
                WREG32(RADEON_LVDS_GEN_CNTL, lvds_gen_cntl);
                WREG32_PLL(RADEON_PIXCLKS_CNTL, pixclks_cntl);
+               udelay(panel_pwr_delay * 1000);
                break;
        }
Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#6 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

Rafael J. Wysocki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected],
                   |                            |[email protected]
             Blocks|                            |16055

--- Comment #6 from Rafael J. Wysocki <[email protected]> 2010-07-21 21:36:15 ---

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#7 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

--- Comment #7 from Jan Kreuzer <[email protected]> 2010-07-21 22:22:51 --- Adding the udelay as mentioned in your patch solves the whitescreen on startup and on resolution switching on latest linux-git and on latest drm-radeon-testing, so this seems to be the right fix. Thank you. I Will close the bug as soon its commited to mainline.

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#8 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

Jan Kreuzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |CODE_FIX

--- Comment #8 from Alex Deucher <[email protected]> 2010-07-21 23:39:28 --- I've sent the patch to Dave.

--- Comment #9 from Jan Kreuzer <[email protected]> 2010-07-23 07:42:08 --- Fixed in commit 15cb02c0a0338ee724bf23e31c7c410ecbffeeba

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--
#9 lore raw

[Bug 16389] New PM-Code produces white screen on laptop display on startup on an radeon x700

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=16389

Rafael J. Wysocki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

Signature · 9 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
--