Skip to contentSkip to conversation

New: Kernel Bug and X fails to start when using radeon.runpm=1

Bug 71930 [email protected] 1 participant 26 messages Nov 23, 2013 – Jan 2, 2014

lore
Share & tools
lore
#0 lore raw

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

Priority: medium
Bug ID: 71930
Assignee: [email protected]
Summary: Kernel Bug and X fails to start when using
radeon.runpm=1
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: XOrg CVS
Component: DRM/Radeon
Product: DRI

Created attachment 89664
--> https://bugs.freedesktop.org/attachment.cgi?id=89664&action=edit
Dmesg of bug

During 3.13-rc0 I was unable to boot my system to capture the logs, since 3.13-rc1 has been cut the have been improvements where I can now boot the system but X won't start whilst radeon.runpm=1

I'll attach my dmesg

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

#1 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

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

Mike Lothian <[email protected]> changed:

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

--- Comment #1 from Mike Lothian <[email protected]> ---
I should add I think this bug is also triggered during shutdown but systmed is a little too quick for me to see

If required I can do a git bisect testing the shutdown rather than the boot with runpm as I don't think the runpm code is at fault but only manifests the 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

#2 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #2 from Mike Lothian <[email protected]> --- I think the same issue has been reported upstream too

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

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

#3 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #3 from Alex Deucher <[email protected]> ---
Does manually turning off the dGPU using switcheroo still work with radeon.runpm=0? If not, can you bisect? runpm and switcheroo use the same apci mechanism to turn off the dGPU.

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

#4 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #4 from Mike Lothian <[email protected]> --- It locks up the machine

Output from journalctl -f will be attached which was captured by sshing from another machine

It froze up the laptop completely and the connection died

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

#5 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #5 from Mike Lothian <[email protected]> --- Created attachment 89797
--> https://bugs.freedesktop.org/attachment.cgi?id=89797&action=edit
Dmesg of switcheroo

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

#6 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #6 from Mike Lothian <[email protected]> ---
X is now starting with runpm=1 but I get a kworker eating lots of cpu and a slight freeze / stutter every few seconds

Looks like the card is initialised every few seconds in the dmesg

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

#7 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #7 from Mike Lothian <[email protected]> --- Created attachment 89800
--> https://bugs.freedesktop.org/attachment.cgi?id=89800&action=edit
Dmesg dynpm=1

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

#8 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #8 from Alex Deucher <[email protected]> --- (In reply to comment #4)

Quoted 1 line

It locks up the machine

Can you bisect to see what broke vgaswitcheroo on your system? Both runpm and switcheroo use the same acpi method, so fixing one with likely fix both.

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

#9 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #9 from Mike Lothian <[email protected]> ---
I bisected back to [bbd34fcdd1b201e996235731a7c98fd5197d9e51] ACPI / hotplug /
PCI: Register all devices under the given bridge

Which was during the 3.11 cycle I believe - I guess there's a chance I picked up on a previous bug I'll do some more testing

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

#10 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #10 from Alex Deucher <[email protected]> --- (In reply to comment #9)

Quoted 5 lines

I bisected back to [bbd34fcdd1b201e996235731a7c98fd5197d9e51] ACPI / hotplug / PCI: Register all devices under the given bridge

Which was during the 3.11 cycle I believe - I guess there's a chance I picked up on a previous bug I'll do some more testing

Does reverting that commit fix the issues?

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

#11 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #11 from Mike Lothian <[email protected]> --- I've just tried but it doesn't revert cleanly - not even on 3.11

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

#12 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #12 from Mike Lothian <[email protected]> ---
I think that was when I was playing around with the dynamic shutdown patches in one of Dave's git branches - which explains why I haven't really noticed this until now - I rarely used switcheroo

This is also possibly related to
https://bugzilla.kernel.org/show_bug.cgi?id=61891

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

#13 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #13 from sotiris papadimitriou <[email protected]> --- Same problem.
My graphics cards:
lspci | grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4225/4250]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Park [Mobility Radeon HD 5430/5450/5470]
If radeon.runpm=0 all o.k.
If manually turning off the dGPU using switcheroo then freeze

Use Ubuntu 14.04 with 13.rc1

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

#14 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #14 from sotiris papadimitriou <[email protected]> --- (In reply to comment #13)

Quoted 11 lines

Same problem.
My graphics cards:
lspci | grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4225/4250]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Park [Mobility Radeon HD 5430/5450/5470]
If radeon.runpm=0 all o.k.
If manually turning off the dGPU using switcheroo then freeze

I'm use Ubuntu 14.04 with kernel 3.13.rc1

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

#15 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #15 from sotiris papadimitriou <[email protected]> ---

$ sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:DynPwr:0000:01:05.0
1:DIS: :DynPwr:0000:02:00.0
The DynPwr should exist on both cards or only the dGPU?
Does runpm extinguished and the two cards and the computer freezes?
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

#16 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #16 from Mike Lothian <[email protected]> --- Switching back to airlied's drm-radeon-poweroff branch which is based on 3.11-rc3 (which doesn't show my radeon card as a provider) has the following in switcheroo

0:DIS: :DynOff:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0

and this is what is shows with runpm=0 but with this set I'm able to see my radeon card as a provider

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

#17 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #17 from Mike Lothian <[email protected]> --- Created attachment 90020
--> https://bugs.freedesktop.org/attachment.cgi?id=90020&action=edit
Dmesg from drm-fixes-3.12-radeon-poweroff

This is the dmesg from adg5f's drm-fixes-3.12-radeon-poweroff branch when I do a switcheroo OFF then ON with runpm=0

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

#18 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #18 from Mike Lothian <[email protected]> --- With runpm=1 on adg5f's drm-fixes-3.12-radeon-poweroff which is based on 3.11.0-rc7 I get the following in switcheroo

0:DIS: :DynOff:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0

It also lists providers and DRI_PRIME works great powering the card as and when I fire something up and shows this in switcheroo

0:DIS: :DynPwr:0000:01:00.0
1:IGD:+:Pwr:0000:00:02.0

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

#19 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #19 from Mike Lothian <[email protected]> --- This is currently what's in switcheroo in 3.13-rc2 with runpm=1

0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynPwr:0000:01:00.0

Which seems to have a reversed order - the system keeps powering up the radeon card and powering down

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

#20 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #20 from Mike Lothian <[email protected]> --- Created attachment 90021
--> https://bugs.freedesktop.org/attachment.cgi?id=90021&action=edit
Dmesg from 3.13-rc2

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

#21 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #21 from Mike Lothian <[email protected]> ---
I'm only seeing the intel provider out out xrandr --listproviders and the system keeps stuttering when the card is either powered up (looks like when it's printing the dpm tables)

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

#22 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #22 from Hohahiu <[email protected]> ---
I also experience issues with radeon.runpm=1 on 3.13-rc2.
My system is intel hd4000 + Mobile radeon 7750M. However lspci shows the following:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Chelsea LP [Radeon HD 7730M]

Below are attached dmesg with radeon.runpm=1 and Xorg.0.log.

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

#23 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #23 from Hohahiu <[email protected]> --- Created attachment 90126
--> https://bugs.freedesktop.org/attachment.cgi?id=90126&action=edit
dmesg with radeon.runpm=1

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

#24 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

--- Comment #24 from Hohahiu <[email protected]> --- Created attachment 90127
--> https://bugs.freedesktop.org/attachment.cgi?id=90127&action=edit
Xorg.0.log

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

#25 lore raw

[Bug 71930] Kernel Bug and X fails to start when using radeon.runpm=1

In reply to [email protected]

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

Mike Lothian <[email protected]> changed:

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

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

--- Comment #25 from Mike Lothian <[email protected]> --- Fixed in https://bugzilla.kernel.org/show_bug.cgi?id=61891

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