Bug 60687 - Using radeon.audio=1 blocks hdmi display output on Radeon 5760
Summary: Using radeon.audio=1 blocks hdmi display output on Radeon 5760
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
: 60709 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-04 10:46 UTC by Gabor Hasenfrasz
Modified: 2013-08-19 21:31 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.10, 3.11-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg log for drm and radeon lines (4.63 KB, text/x-log)
2013-08-04 10:46 UTC, Gabor Hasenfrasz
Details
output of xrandr verbose (14.05 KB, text/plain)
2013-08-04 10:47 UTC, Gabor Hasenfrasz
Details
avivotool regs hdmi output on kernel 3.9 (2.83 KB, text/plain)
2013-08-05 19:50 UTC, Gabor Hasenfrasz
Details
avivotool regs hdmi output on kernel 3.10 (2.85 KB, text/plain)
2013-08-05 19:56 UTC, Gabor Hasenfrasz
Details

Description Gabor Hasenfrasz 2013-08-04 10:46:48 UTC
Created attachment 107088 [details]
dmesg log for drm and radeon lines

On kernel 3.9 using radeon.audio=1 can produce display and audio on HDMI output. Using 3.10 and 3.11-rc3 with this parameter breaks HDMI output (no screen). Without this parameter HDMI display works fine, but no audio.
Comment 1 Gabor Hasenfrasz 2013-08-04 10:47:29 UTC
Created attachment 107089 [details]
output of xrandr verbose
Comment 2 Alex Deucher 2013-08-04 16:03:21 UTC
Can you bisect?
Comment 3 Gabor Hasenfrasz 2013-08-04 19:47:06 UTC
(In reply to Alex Deucher from comment #2)
> Can you bisect?

Yes, I'm doing it.
Comment 4 Rafał Miłecki 2013-08-05 05:30:59 UTC
Do you have some second monitor or other machine to ssh the first one?

I'd like to see output of command
avivotool regs hdmi
when using 3.9 with audio=1 and then using 3.10/3.11 with audio=1.
Comment 5 Gabor Hasenfrasz 2013-08-05 19:43:29 UTC
(In reply to Alex Deucher from comment #2)
> Can you bisect?

Bisect finished:

d3418eacad403033e95e49dc14afa37c2112c134 is the first bad commit
commit d3418eacad403033e95e49dc14afa37c2112c134
Author: Rafał Miłecki <zajec5@gmail.com>
Date:   Thu Apr 18 09:23:12 2013 -0400

    drm/radeon/evergreen: setup HDMI before enabling it
    
    Closed source driver fglrx seems to enable infoframes and audio packets
    at the end, which makes sense, do the same.
    
    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

:040000 040000 67e10b90afeefe688d0c291e603c80dd7a9e810a 1105ef4336989eee87c971b035fedcc092c42417 M	drivers
Comment 6 Gabor Hasenfrasz 2013-08-05 19:45:22 UTC
(In reply to Rafał Miłecki from comment #4)
> Do you have some second monitor or other machine to ssh the first one?
> 
> I'd like to see output of command
> avivotool regs hdmi
> when using 3.9 with audio=1 and then using 3.10/3.11 with audio=1.

Yes I do. I will run it now.
Comment 7 Gabor Hasenfrasz 2013-08-05 19:50:26 UTC
Created attachment 107104 [details]
avivotool regs hdmi output on kernel 3.9

This is with radeon.audio=1 kernel parameter with kernel 3.9.9
Comment 8 Gabor Hasenfrasz 2013-08-05 19:56:07 UTC
Created attachment 107105 [details]
avivotool regs hdmi output on kernel 3.10

This is with radeon.audio=1 kernel parameter with kernel 3.10.3
Comment 9 Rafał Miłecki 2013-08-06 07:02:14 UTC
@Gabor: can you boot 3.10.3 and call:
avivotool regset 0x12c44 0x00000033
Comment 10 Rafał Miłecki 2013-08-06 07:02:58 UTC
(Please make it *after* connecting HDMI display, after it breaks)
Comment 11 Gabor Hasenfrasz 2013-08-06 07:28:58 UTC
@Rafał: It's working. After switching to mirroring, or to HDMI only, and entering this command, the display starts working with sound.
Comment 12 Rafał Miłecki 2013-08-15 16:56:58 UTC
Fix posted:
[FIX][PATCH] drm/radeon: fix WREG32_OR macro setting bits in a register
http://lists.freedesktop.org/archives/dri-devel/2013-August/043835.html
Comment 13 Gabor Hasenfrasz 2013-08-16 14:11:42 UTC
@Rafał: I've tested the patch and solves the problem in my case. Thank you!
Comment 14 Torsten Krah 2013-08-19 07:00:04 UTC
*** Bug 60709 has been marked as a duplicate of this bug. ***
Comment 15 Rafał Miłecki 2013-08-19 16:32:23 UTC
Fix is in Linus's tree:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d43a93c8d9bc4e0dc0293b6458c077c3c797594f

Resolved, code fix?
Comment 16 Gabor Hasenfrasz 2013-08-19 21:31:05 UTC
@Rafał: I've changed it to resolved, code fix. Sorry.

Note You need to log in before you can comment on or make changes to this bug.