Bug 60687

Summary: Using radeon.audio=1 blocks hdmi display output on Radeon 5760
Product: Drivers Reporter: Gabor Hasenfrasz (hasenfrasz.gabor)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal CC: alexdeucher, krah.tm, zajec5
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.10, 3.11-rc3 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg log for drm and radeon lines
output of xrandr verbose
avivotool regs hdmi output on kernel 3.9
avivotool regs hdmi output on kernel 3.10

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.