Skip to contentSkip to conversation

New: [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

Bug 41971 [email protected] 1 participant 19 messages Oct 18, 2011 – Nov 14, 2012

lore
Share & tools
lore
#0 lore raw

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

Bug #: 41971
Summary: [kms] Muxless modesetting takes 20 seconds to decide
it can't modeset
Classification: Unclassified
Product: DRI
Version: XOrg CVS
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
AssignedTo: [email protected]
ReportedBy: [email protected]

Created attachment 52491
--> https://bugs.freedesktop.org/attachment.cgi?id=52491
dmesg

My laptop has muxless switchable graphics but it seems to spend >20 seconds during boot in the radeon drm before handing off to the intel modesetting

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.
#1 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

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

--- Comment #1 from Mike Lothian <[email protected]> 2011-10-18 12:19:06 PDT --- here's my lspci:

0:00.0 Host bridge [0600]: Intel Corporation Device [8086:0104] (rev 09) 00:01.0 PCI bridge [0604]: Intel Corporation Device [8086:0101] (rev 09) 00:01.1 PCI bridge [0604]: Intel Corporation Sandy Bridge PCI Express Root Port [8086:0105] (rev 09)
00:01.2 PCI bridge [0604]: Intel Corporation Sandy Bridge PCI Express Root Port [8086:0109] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:0116] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation Cougar Point HECI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation Cougar Point High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.4 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 5 [8086:1c18] (rev b5)
00:1c.7 PCI bridge [0604]: Intel Corporation Cougar Point PCI Express Root Port 8 [8086:1c1e] (rev b5)
00:1d.0 USB Controller [0c03]: Intel Corporation Cougar Point USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:1c49] (rev 05) 00:1f.2 SATA controller [0106]: Intel Corporation Cougar Point 6 port SATA AHCI Controller [8086:1c03] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation Cougar Point SMBus Controller [8086:1c22] (rev 05)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:6741]
09:00.0 Network controller [0280]: Intel Corporation Device [8086:0090] (rev
34)
0a:00.0 Ethernet controller [0200]: Attansic Technology Corp. Device [1969:1083] (rev c0)
0b:00.0 USB Controller [0c03]: NEC Corporation Device [1033:0194] (rev 04)

Please let me know if you need anything else

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.
#2 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

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

  Attachment #52491|application/octet-stream    |text/plain
          mime type|                            |
  Attachment #52491|0                           |1
           is patch|                            |
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.
#3 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

--- Comment #2 from Mike Lothian <[email protected]> 2011-10-18 12:35:38 PDT --- Created attachment 52493
--> https://bugs.freedesktop.org/attachment.cgi?id=52493
System ACPI Info

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.
#4 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

  Attachment #52491|0                           |1

is obsolete| |

--- Comment #3 from Mike Lothian <[email protected]> 2011-10-18 12:40:14 PDT --- Created attachment 52494
--> https://bugs.freedesktop.org/attachment.cgi?id=52494
New dmesg with debugging

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.
#5 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

  Attachment #52494|0                           |1

is obsolete| |

--- Comment #4 from Mike Lothian <[email protected]> 2011-10-18 12:52:23 PDT --- Created attachment 52496
--> https://bugs.freedesktop.org/attachment.cgi?id=52496
Newest dmesg

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.
#6 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

  Attachment #52496|0                           |1

is obsolete| |

--- Comment #5 from Mike Lothian <[email protected]> 2011-10-18 13:05:53 PDT --- Created attachment 52497
--> https://bugs.freedesktop.org/attachment.cgi?id=52497
Dmesg with added chunks :D

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.
#7 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

Eugeni Dodonov <[email protected]> changed:

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

--- Comment #6 from Eugeni Dodonov <[email protected]> 2011-10-19 04:53:38 PDT --- @Mike - could you try with the patch from bug #41059, which is at
http://cgit.freedesktop.org/~eugeni/kernel? There is one patch at
http://cgit.freedesktop.org/~eugeni/kernel/commit/?h=edid-i915 and another at
http://cgit.freedesktop.org/~eugeni/kernel/commit/?h=edid-drm, they do the same thing but on different levels. There is no need to apply them both at the same time, just one at a time.

Could you check if any of those would fix - or improve - the issue for you?

Thanks!

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.
#8 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

--- Comment #7 from Eugeni Dodonov <[email protected]> 2011-10-19 04:54:59 PDT --- (I know that you already tested them via my blog post, but I added some small changes to them - try booting with 'drm.debug=0.04' with both of those patches now, and attach the dmesg with timing results in both case).

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.
#9 lore raw

[Bug 41971] [kms] Muxless modesetting takes 20 seconds to decide it can't modeset

In reply to [email protected]

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

--- Comment #8 from Eugeni Dodonov <[email protected]> 2011-10-19 04:55:52 PDT --- Errrr of course, I meant drm.debug=0x04. In the morning, I guess I type faster than I mentally spell-check :).

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.
#10 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

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

            Summary|[kms] Muxless modesetting   |[kms] Muxless radeon takes
                   |takes 20 seconds to decide  |20 seconds to fetch rom
                   |it can't modeset            |

--- Comment #9 from Alex Deucher <[email protected]> 2011-10-19 06:48:39 PDT --- (In reply to comment #6)

Quoted 8 lines

@Mike - could you try with the patch from bug #41059, which is at
http://cgit.freedesktop.org/~eugeni/kernel? There is one patch at
http://cgit.freedesktop.org/~eugeni/kernel/commit/?h=edid-i915 and another at
http://cgit.freedesktop.org/~eugeni/kernel/commit/?h=edid-drm, they do the same thing but on different levels. There is no need to apply them both at the same time, just one at a time.

Could you check if any of those would fix - or improve - the issue for you?

The problem here has nothing to do with modesetting. There are no displays even attached to the radeon. The delay is due to fetching the rom from acpi. I've updated the summary appropriately.

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.
#11 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

--- Comment #10 from Mike Lothian <[email protected]> 2011-10-26 13:16:58 PDT --- I was wondering what actions I could take next

Would it be possible to have the switcheroo code detect that the laptop is muxless and disable the radeon card from the start?

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.
#12 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

--- Comment #11 from Mike Lothian <[email protected]> 2011-11-02 06:29:06 PDT --- I've removed the vgaswitcheroo and radeon options from my kernel and my boot time has returned to normal, as I have a muxless laptop not having the card available makes no difference just now

When no module is loaded is the card still drawing power?

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.
#13 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

--- Comment #12 from Alex Deucher <[email protected]> 2011-11-02 06:37:47 PDT --- (In reply to comment #11)

Quoted 2 lines

When no module is loaded is the card still drawing power?

It depends whether the bios turns it on by default or not. If it's off, you are not drawing power. If it's on, you can turn it off via vgaswitcheroo.

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.
#14 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

--- Comment #13 from Mike Lothian <[email protected]> 2011-11-02 09:02:00 PDT --- Is there a way for switcheroo to detect a muxless laptop and automatically switch it off (if it isn't already)

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.
#15 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

--- Comment #14 from Mike Lothian <[email protected]> 2011-11-13 19:38:21 PST --- I just thought I'd add I've now compiled radeon as a module and it only takes 2 seconds to load the BIOS when modprobed after everything else is loaded

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.
#16 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

--- Comment #15 from Alex Deucher <[email protected]> 2012-02-20 07:17:17 PST --- Is this still an issue with a 3.3 kernel? There were some fixes to the ACPI rom fetching code.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=a3f83ab1a717c0e6c2f59a4cfdaa10707cc35c55
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=211fa4fc4e13492151e698d92b0dff56b29928ec
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=de47a9cd62771e3e78954d855d2304fbad4c5a44

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.
#18 lore raw

[Bug 41971] [kms] Muxless radeon takes 20 seconds to fetch rom

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #17 from Mike Lothian <[email protected]> --- I'm not sure when this was fixed but it's now no longer an issue

Signature · 2 lines
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