Skip to contentSkip to conversation

amdgpu wrong colors with rx460 connected via hdmi

Bug 105177 [email protected] 1 participant 24 messages Feb 20, 2018 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #1 from Reimar Imhof <[email protected]> --- Created attachment 137478
--> https://bugs.freedesktop.org/attachment.cgi?id=137478&action=edit
dmesg kernel 4.15.4; connected via hdmi; amdgpu.dc=0

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #2 from Reimar Imhof <[email protected]> --- Created attachment 137479
--> https://bugs.freedesktop.org/attachment.cgi?id=137479&action=edit
dmesg kernel 4.15.4; connected via hdmi; amdgpu.dc=1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #3 from Reimar Imhof <[email protected]> --- Created attachment 137480
--> https://bugs.freedesktop.org/attachment.cgi?id=137480&action=edit
dmesg kernel 4.15.4; connected via dvi; amdgpu.dc=1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #6 from Reimar Imhof <[email protected]> --- 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)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #7 from Reimar Imhof <[email protected]> --- Created attachment 137511
--> https://bugs.freedesktop.org/attachment.cgi?id=137511&action=edit
desktop (hdmi) - console should be black but is violet

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #8 from Reimar Imhof <[email protected]> --- Created attachment 137512
--> https://bugs.freedesktop.org/attachment.cgi?id=137512&action=edit
desktop (dvi) - console is black, like expected

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #9 from Reimar Imhof <[email protected]> --- Created attachment 137513
--> https://bugs.freedesktop.org/attachment.cgi?id=137513&action=edit
x.org.log (hdmi)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #10 from Reimar Imhof <[email protected]> --- Created attachment 137514
--> https://bugs.freedesktop.org/attachment.cgi?id=137514&action=edit
x.org.log (dvi)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #11 from Reimar Imhof <[email protected]> --- btw, all tests were done with amdgpu.dc=1, because suse configured the kernel that way.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #12 from Harry Wentland <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #13 from Harry Wentland <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #14 from Reimar Imhof <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #15 from Reimar Imhof <[email protected]> --- Created attachment 137575
--> https://bugs.freedesktop.org/attachment.cgi?id=137575&action=edit
journalctl-boot-4-15-5-with-patch-hdmi-hang.txt

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #16 from Reimar Imhof <[email protected]> --- Created attachment 137576
--> https://bugs.freedesktop.org/attachment.cgi?id=137576&action=edit
dmesg-4-15-5-with-patch-hdmi.txt

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #17 from Reimar Imhof <[email protected]> --- Created attachment 137577
--> https://bugs.freedesktop.org/attachment.cgi?id=137577&action=edit
Xorg.0.log-4.15.5-with-patch-hdmi.txt

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #18 from Harry Wentland <[email protected]> --- Can you try the drm-next-4.17-wip branch from
https://cgit.freedesktop.org/~agd5f/linux and see if that fixes the issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #20 from Reimar Imhof <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #21 from Reimar Imhof <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

--- Comment #22 from Harry Wentland <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105177

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #23 from Martin Peres <[email protected]> --- -- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel