Skip to contentSkip to conversation

New: hard machine hang when switching to battery power with DPM enabled on Trinity APU

Bug 70053 [email protected] 1 participant 8 messages Oct 2, 2013 – May 21, 2014

lore
Share & tools
lore
#0 lore raw

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

Priority: medium
Bug ID: 70053
Assignee: [email protected]
Summary: hard machine hang when switching to battery power with
DPM enabled on Trinity APU
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: DRI CVS
Component: DRM/Radeon
Product: DRI

Created attachment 87002
--> https://bugs.freedesktop.org/attachment.cgi?id=87002&action=edit
dmesg before hang

When booting with DPM enabled the machine hard hangs when switching from AC to battery power or when booting without AC connected as soon as GDM starts.

I can't reach it via ssh after the hang, so only dmesg before hang provided. Kernel is 3.12-rc2 with agd5f/linux/drm-fixes-3.12 merged in.

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

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

--- Comment #1 from Lucas Stach <[email protected]> --- Created attachment 87003
--> https://bugs.freedesktop.org/attachment.cgi?id=87003&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

#2 lore raw

[Bug 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

--- Comment #2 from Alex Deucher <[email protected]> --- Created attachment 87006
--> https://bugs.freedesktop.org/attachment.cgi?id=87006&action=edit
possible fix

Does this patch help? Seems like maybe your system isn't getting ac events properly. Can you attach the dmesg output of this patch?

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

--- Comment #3 from Lucas Stach <[email protected]> ---
Yes, the patch fixes the immediate lockup. But it seems your analysis on why it fails isn't correct as I can now see your printks toggling between AC and DC when plugging in/out external power.

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

--- Comment #4 from Alex Deucher <[email protected]> --- Created attachment 87033
--> https://bugs.freedesktop.org/attachment.cgi?id=87033&action=edit
force battery state on DC

Does this patch also fix the problem?

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

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

  Attachment #87033|0                           |1

is obsolete| |

--- Comment #5 from Alex Deucher <[email protected]> --- Created attachment 87044
--> https://bugs.freedesktop.org/attachment.cgi?id=87044&action=edit
better patch

Improved patch. Please try this one instead.

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

--- Comment #6 from Lucas Stach <[email protected]> --- No this patch (v2) does not solve the problem.

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 70053] hard machine hang when switching to battery power with DPM enabled on Trinity APU

In reply to [email protected]

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

Lucas Stach <[email protected]> changed:

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

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

--- Comment #7 from Lucas Stach <[email protected]> --- Already fixed in 3.12 final.

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