Bug 117411

Summary: [radeon][HD5650][REDWOOD][bisected] X.Org multiple delays during server start
Product: Drivers Reporter: no.spam.to.me
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: since 4.3-rc4 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: Xorg log for 4.4.0 kernel
dmesg for 4.4.0

Description no.spam.to.me 2016-04-30 10:32:07 UTC
Created attachment 214751 [details]
Xorg log for 4.4.0 kernel

Hi there!

I'm running Debian testing with kernel 4.5.0-1-amd64.

Before this I ran Debian Jessie with 3.16.0-4-amd64.

After upgrading to testing I noticed a highly increased boot delay of roughly one minute (that was already kernel 4.4.0).

In Xorg log I can see that there is three times a gap of about roughly 12 seconds (maybe because my card has three connectors [HDMI/LVDS/VGA]?).

When the kernel loads the radeon module there is also a long "black period".

Now I found out that by setting radeon.dpm=0 the delay is gone- together with power management.
Comment 1 no.spam.to.me 2016-04-30 11:25:28 UTC
Created attachment 214761 [details]
dmesg for 4.4.0
Comment 2 no.spam.to.me 2016-04-30 11:27:58 UTC
Look here:
[   24.114256] Bluetooth: BNEP socket layer initialized
[   35.249644] Console: switching to colour frame buffer device 170x48

That seems to be the "black period"
Comment 3 no.spam.to.me 2016-05-17 15:19:52 UTC
After Bisecting the Kernel I got the commit that introduces the extra 40s Xorg delay:

8c70e1cda04b966b50ddfefafbd0ea376ed8edd5 is the first bad commit
commit 8c70e1cda04b966b50ddfefafbd0ea376ed8edd5
Author: Alex Deucher <alexander.deucher@amd.com>
Date:   Fri Oct 2 16:52:58 2015 -0400

    drm/radeon: restore the fbdev mode in lastclose
    
    restore the fbdev state if a drm app like X is killed.
    
    Tested-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

:040000 040000 d67406e169b8003fc72edf4d26f206ff2e164bf0 5e053c1de5f504e876daffef19a59850a8b6015e M	drivers

But I don't know how to identify the delay at boot.
Comment 4 no.spam.to.me 2016-05-25 06:26:14 UTC
I open another Bug for the Kernel delay stuff, think this are two separate bugs.
Comment 5 no.spam.to.me 2016-06-12 21:45:38 UTC
Compiled 4.7.0-rc2 today and it is fixed in there.