New: Mobility 4570: System freezes after ~5s of enabling audio via xrandr
https://bugs.freedesktop.org/show_bug.cgi?id=70439
Priority: medium
Bug ID: 70439
Assignee: [email protected]
Summary: Mobility 4570: System freezes after ~5s of enabling
audio via xrandr
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: unspecified
Component: DRM/Radeon
Product: DRI
Kernel: 3.12rc3
Enabling audio by executing:
$ xrandr --output HDMI-0 --set audio auto
This causes the system to fully freeze after seconds forcing me to hard reset.
Audio actually works in those few seconds.
Bug present with and without DPM.
-----
I don't know how to gather more info with such freezes. Feel free to point me into the right direction.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #1 from Alex Deucher <[email protected]> ---
Please attach your xorg log and dmesg output. If this is a regression can you use git to bisect?
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #2 from Christian König <[email protected]> --- Did you started audio before enabling it with "xrandr --output HDMI-0 --set audio auto" ?
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #3 from Mohammad AlSaleh <[email protected]> --- Created attachment 87590
--> https://bugs.freedesktop.org/attachment.cgi?id=87590&action=edit
dmesg (current run with DPM)
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #4 from Mohammad AlSaleh <[email protected]> --- Created attachment 87591
--> https://bugs.freedesktop.org/attachment.cgi?id=87591&action=edit
Xorg.0.log (current run with DPM)
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #5 from Mohammad AlSaleh <[email protected]> --- (In reply to comment #1)
Quoted 2 lines
Please attach your xorg log and dmesg output. If this is a regression can you use git to bisect?
I don't think I have enough free space to clone the kernel. So bisection is not easy for me unless there is a submoduled repository I'm not aware of.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #6 from Mohammad AlSaleh <[email protected]> --- (In reply to comment #2)
Quoted 2 lines
Did you started audio before enabling it with "xrandr --output HDMI-0 --set audio auto" ?
radeon.audio=1 seems to have no effect!
Passing it does not enable audio. And using xrandr later causes the same freeze.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #7 from Mohammad AlSaleh <[email protected]> --- Created attachment 87593
--> https://bugs.freedesktop.org/attachment.cgi?id=87593&action=edit
dmesg (audio+dpm)
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #8 from Mohammad AlSaleh <[email protected]> --- Created attachment 87594
--> https://bugs.freedesktop.org/attachment.cgi?id=87594&action=edit
dmesg (audio + no dpm)
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #9 from Mohammad AlSaleh <[email protected]> --- It is worth noting that the (frozen) frame is still signaled and audio starts looping after the freeze. Which maybe indicate an endless loop.
Also, when the freeze is not instant, audio keeps working seconds after the display is frozen. Then, it starts looping.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #10 from Alex Deucher <[email protected]> --- (In reply to comment #6)
Quoted 3 lines
(In reply to comment #2)
Quoted 2 lines
Did you started audio before enabling it with "xrandr --output HDMI-0 --set audio auto" ?
Had you started audio playback in the application before enabling it with xrandr? If so, do you still get the hang if you enable audio with xrandr first, and then start playback in the application?
Quoted 3 lines
radeon.audio=1 seems to have no effect!
radeon.audio=1 is the default now.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #11 from Alex Deucher <[email protected]> --- Created attachment 87616
--> https://bugs.freedesktop.org/attachment.cgi?id=87616&action=edit
possible fix
Please try this patch and append radeon.audio=1 to the kernel command line in grub.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #12 from Mohammad AlSaleh <[email protected]> --- (In reply to comment #10)
Quoted 10 lines
(In reply to comment #6)
Quoted 3 lines
(In reply to comment #2)
Quoted 2 lines
Did you started audio before enabling it with "xrandr --output HDMI-0 --set audio auto" ?
Had you started audio playback in the application before enabling it with xrandr? If so, do you still get the hang if you enable audio with xrandr first, and then start playback in the application?
Quoted 1 line
Quoted 4 lines
Quoted 2 lines
radeon.audio=1 seems to have no effect!
radeon.audio=1 is the default now.
Upgraded to 3.12rc5.
I get the hang in all cases. Even if I don't use an application at all.
The hang sometimes happens so fast before xrandr exiting. And sometimes it takes ~90s. But I always get a hang at the end.
I'll test with the patch now.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #13 from Mohammad AlSaleh <[email protected]> --- Created attachment 87633
--> https://bugs.freedesktop.org/attachment.cgi?id=87633&action=edit
partial kernel log (3.12rc5 + patch 87616)
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #14 from Mohammad AlSaleh <[email protected]> --- (In reply to comment #11)
Quoted 5 lines
Created attachment 87616 [details] [review]
possible fixPlease try this patch and append radeon.audio=1 to the kernel command line in grub.
There appears to be a serious regression here.
System hangs (black screens) if the HDMI monitor is connected before xinit. And hangs if the monitor is attached after xinit when enabled via xrandr.
In the latter case, the hanged frame is displayed on the monitor, but before being resized to occupy the whole screen and with noise artifacts.
Note: Everything works correctly with 3.11.5. 'radeon.audio=1' works with and without DPM.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #15 from Christian König <[email protected]> ---
Quoted 2 lines
Note: Everything works correctly with 3.11.5. 'radeon.audio=1' works with and without DPM.
Then please bisect what patch introduced this problem since it doesn't seems to be releated to the xrandr property change.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #16 from Mohammad AlSaleh <[email protected]> --- Okay.
Enabling audio at run time is indeed not the underlying cause of the hang.
The offending commit is:0ffae60c8976fb407de04cebd8c4cfae932bc671
Setting audio via xrandr works as expected after reverting:58d327da9721f7a0f6e46c8dfa5cc5546fd7078a c1cbee0ec0697c531778fbaf34aa358c0f5ef00e 0ffae60c8976fb407de04cebd8c4cfae932bc671
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #17 from Alex Deucher <[email protected]> --- Created attachment 87798
--> https://bugs.freedesktop.org/attachment.cgi?id=87798&action=edit
possible fix
Does this patch fix 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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
--- Comment #18 from Mohammad AlSaleh <[email protected]> --- (In reply to comment #17)
Quoted 4 lines
Created attachment 87798 [details] [review]
possible fixDoes this patch fix the issue?
As expected, yes.
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
[Bug 70439] Mobility 4570: System freezes after ~5s of enabling audio via xrandr
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70439
Mohammad AlSaleh <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #19 from Mohammad AlSaleh <[email protected]> --- Fix committed:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4b7495770cc4a4e7973ea8079dd15d2618f3636a
Marking as RESOLVED.
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