https://bugs.freedesktop.org/show_bug.cgi?id=70053
Priority: medium Bug ID: 70053 Assignee: dri-devel@lists.freedesktop.org Summary: hard machine hang when switching to battery power with DPM enabled on Trinity APU Severity: normal Classification: Unclassified OS: Linux (All) Reporter: dev@lynxeye.de 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.
https://bugs.freedesktop.org/show_bug.cgi?id=70053
--- Comment #1 from Lucas Stach dev@lynxeye.de --- Created attachment 87003 --> https://bugs.freedesktop.org/attachment.cgi?id=87003&action=edit Xorg.0.log
https://bugs.freedesktop.org/show_bug.cgi?id=70053
--- Comment #2 from Alex Deucher agd5f@yahoo.com --- 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?
https://bugs.freedesktop.org/show_bug.cgi?id=70053
--- Comment #3 from Lucas Stach dev@lynxeye.de --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=70053
--- Comment #4 from Alex Deucher agd5f@yahoo.com --- 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?
https://bugs.freedesktop.org/show_bug.cgi?id=70053
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #87033|0 |1 is obsolete| |
--- Comment #5 from Alex Deucher agd5f@yahoo.com --- Created attachment 87044 --> https://bugs.freedesktop.org/attachment.cgi?id=87044&action=edit better patch
Improved patch. Please try this one instead.
https://bugs.freedesktop.org/show_bug.cgi?id=70053
--- Comment #6 from Lucas Stach dev@lynxeye.de --- No this patch (v2) does not solve the problem.
https://bugs.freedesktop.org/show_bug.cgi?id=70053
Lucas Stach dev@lynxeye.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Lucas Stach dev@lynxeye.de --- Already fixed in 3.12 final.
dri-devel@lists.freedesktop.org