https://bugs.freedesktop.org/show_bug.cgi?id=105177
Bug ID: 105177 Summary: amdgpu wrong colors with rx460 connected via hdmi Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: tuxuser@quantentunnel.de
When monitor is connected via hdmi I get wrong colors. This appears during boot before the gui (x.org) gets started (frame buffer boot animation). Wrong colors (sort of violet instead of black) also appear on frame buffer text console and with x.org gui. This bug appears with and without "amdgpu.dc=1" kernel parameter. While running x.org I've turned the monitor off and on again. This gives correct colors but the screen resolution goes to 1024x768. So it's no work around.
The bug does not occur if the monitor is connected via dvi.
System: Kernel 4.15.4 openSuse 42.3
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #1 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137478 --> https://bugs.freedesktop.org/attachment.cgi?id=137478&action=edit dmesg kernel 4.15.4; connected via hdmi; amdgpu.dc=0
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #2 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137479 --> https://bugs.freedesktop.org/attachment.cgi?id=137479&action=edit dmesg kernel 4.15.4; connected via hdmi; amdgpu.dc=1
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #3 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137480 --> https://bugs.freedesktop.org/attachment.cgi?id=137480&action=edit dmesg kernel 4.15.4; connected via dvi; amdgpu.dc=1
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #4 from Alex Deucher alexdeucher@gmail.com --- Can you attach a picture?
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #5 from Alex Deucher alexdeucher@gmail.com --- Also please attach your xorg log.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #6 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137510 --> https://bugs.freedesktop.org/attachment.cgi?id=137510&action=edit framebuffer console via hdmi
frame buffer console should be black but is violet (hdmi)
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #7 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137511 --> https://bugs.freedesktop.org/attachment.cgi?id=137511&action=edit desktop (hdmi) - console should be black but is violet
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #8 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137512 --> https://bugs.freedesktop.org/attachment.cgi?id=137512&action=edit desktop (dvi) - console is black, like expected
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #9 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137513 --> https://bugs.freedesktop.org/attachment.cgi?id=137513&action=edit x.org.log (hdmi)
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #10 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137514 --> https://bugs.freedesktop.org/attachment.cgi?id=137514&action=edit x.org.log (dvi)
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #11 from Reimar Imhof tuxuser@quantentunnel.de --- btw, all tests were done with amdgpu.dc=1, because suse configured the kernel that way.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #12 from Harry Wentland harry.wentland@amd.com --- There's a mismatch in colorspace we program and tell the HDMI receiver because we program the infoframe too early in our sequence. I'll send a patch tomorrow.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #13 from Harry Wentland harry.wentland@amd.com --- Created attachment 137536 --> https://bugs.freedesktop.org/attachment.cgi?id=137536&action=edit [PATCH] update infoframe after dig fe is turned on
This patch should fix your issue. Please let me know if you try it.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #14 from Reimar Imhof tuxuser@quantentunnel.de --- I've build a 4.15.5 kernel incl. your patch and booted with display connected to hdmi. First boot hang. In journalctl I found Feb 24 11:29:28 linux kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:42:crtc-0] flip_done timed out (I'll attach journalctl-boot-4-15-5-with-patch-hdmi-hang.txt)
Second try booted into gui (kde login). The colors where still wrong. But now it was possible to turn of the screen and on again. The screen resolution stayed the same but the colors still were wrong. (I'll attach dmesg-4-15-5-with-patch-hdmi.txt and Xorg.0.log-4.15.5-with-patch-hdmi.txt)
I'll stay with the dvi connected monitor.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #15 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137575 --> https://bugs.freedesktop.org/attachment.cgi?id=137575&action=edit journalctl-boot-4-15-5-with-patch-hdmi-hang.txt
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #16 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137576 --> https://bugs.freedesktop.org/attachment.cgi?id=137576&action=edit dmesg-4-15-5-with-patch-hdmi.txt
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #17 from Reimar Imhof tuxuser@quantentunnel.de --- Created attachment 137577 --> https://bugs.freedesktop.org/attachment.cgi?id=137577&action=edit Xorg.0.log-4.15.5-with-patch-hdmi.txt
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #18 from Harry Wentland harry.wentland@amd.com --- Can you try the drm-next-4.17-wip branch from https://cgit.freedesktop.org/~agd5f/linux and see if that fixes the issue?
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #19 from Reimar Imhof tuxuser@quantentunnel.de --- I will wait for suse providing a 4.17 kernel
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #20 from Reimar Imhof tuxuser@quantentunnel.de --- I've tried drm-next-4.17-wip. What I've seen is the same as described with the initial bug description: When monitor is connected via hdmi I get wrong colors. This appears during boot before the gui (x.org) gets started (frame buffer boot animation). Wrong colors (sort of violet instead of black) also appear on frame buffer text console and with x.org gui. This bug appears with "amdgpu.dc=1" kernel parameter. While running x.org I've turned the monitor off and on again. This gives correct colors but the screen resolution goes to 1024x768. So it's no work around.
What I've seen is: The colors are correct if I run the monitor with a yuv color model instead of rgb.
One thing seems to be better: Every boot manged to get to the graphical login. I've tried about 10 reboots.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #21 from Reimar Imhof tuxuser@quantentunnel.de --- Btw.: There is a new bug showing up with a 4.16.0-rc7 kernel (I did not test rc1 to rc6): The screen flickers. I can't tell you whats triggers such a flicker but it does. That bug is still around with the drm-next-4.17-wip kernel.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
--- Comment #22 from Harry Wentland harry.wentland@amd.com --- Please keep one issue per ticket. Open a new ticket if needed.
That said, a fix for the flickering issue should be in drm-next-4.17 of Alex's git repo at https://cgit.freedesktop.org/~agd5f/linux/?h=drm-next-4.17 and should make it into Linus's tree from there.
That fix should also make it into 4.16 stable.
https://bugs.freedesktop.org/show_bug.cgi?id=105177
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #23 from Martin Peres martin.peres@free.fr --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/306.
dri-devel@lists.freedesktop.org