Skip to contentSkip to conversation

New: [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

Bug 201067 [email protected] 1 participant 17 messages Sep 9, 2018 – Jan 2, 2019

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=201067

            Bug ID: 201067
           Summary: [bisected] [4.19-rc2 regression] Display corruption
                    with Vega 64 in 4.19-rc2
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.19-rc2
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 278389
--> https://bugzilla.kernel.org/attachment.cgi?id=278389&action=edit
dmesg

Hi all,

When using a kernel after the below commit, I get visual corruption only on the right most vertical column of my screen:

Author: Nicholas Kazlauskas <[email protected]>
Date:   Mon Jul 23 14:13:23 2018 -0400

drm/amd/display: Use calculated disp_clk_khz value for dce110

Video:
https://www.youtube.com/watch?v=HrJUrBWMRXU

Using a kernel without this commit does not have the issue.

My GPU is a Sapphire Nitro+ Vega 64. I am using Gentoo with Mesa git and KDE Plasma 5.

My main monitor is connected over DP and runs at 2560x1440 at 144hz. My second monitor is connected over HDMI and runs at 1920x1080 at 60hz. I tried disabling the second monitor in KDE, but the issue still occurs.

It also occurs in fullscreen applications.

I will also attach dmesg.

I can test any patches or answer any questions.

Thanks,
Sarnex

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

https://bugzilla.kernel.org/show_bug.cgi?id=201067

Nick Sarnie ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #1 from Nicholas Kazlauskas ([email protected]) --- Created attachment 278423
--> https://bugzilla.kernel.org/attachment.cgi?id=278423&action=edit
Patch that reverts the 15% reduction in set dispclk

While I can't reproduce your issue under a similar setup I think I have an idea of what the issue is.

Can you try this patch?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author Tested-by Nick Sarnie
#3 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #2 from Nick Sarnie ([email protected]) --- Hi Nicholas,

Thank you for the fast response.

I can confirm the patch fixes the issue.

If you intend to submit this:

Thanks,
Sarnex

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

Nicholas Kazlauskas ([email protected]) changed:

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

 Attachment #278423|0                           |1

is obsolete| |

--- Comment #3 from Nicholas Kazlauskas ([email protected]) --- Created attachment 278455
--> https://bugzilla.kernel.org/attachment.cgi?id=278455&action=edit
0001-drm-amd-display-Use-higher-dispclk-value-for-dce120.patch

Do you mind testing another patch?

This patch has a narrower impact than the previous one (since it should only target Vega). I imagine that it would also fix your issue but it'd be nice to have verification.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author Tested-by Nick Sarnie
#5 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #4 from Nick Sarnie ([email protected]) --- Hi Nicholas,

I can also confirm that the second patch fixes the issue.

Please let me know if you need anything else.

Thanks,
Sarnex

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

Dave Johnson ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Dave Johnson ([email protected]) ---
This is possibly related to my issue that popped up in 4.18, Vega 64 works with one of my displayPort monitors but not the DVI. from what I've seen others reporting on various searches on my issue, it's something with a clock setting where a khz value is referenced as "10" instead of "1" or something like that. Vague, I know, but I dunno.

Some get black screen, I get one display but not multi, and the user above me has corruption.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #6 from Nicholas Kazlauskas ([email protected]) --- I think you're referencing this patch:

https://patchwork.freedesktop.org/patch/238065/

Which should be fixed in 4.18.

Please post a new ticket with a full dmesg log, Xorg log and your distro/desktop environment if you can still reproduce the problem.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #7 from Dave Johnson ([email protected]) --- (In reply to Nicholas Kazlauskas from comment #6)

Quoted 8 lines

I think you're referencing this patch:

https://patchwork.freedesktop.org/patch/238065/

Which should be fixed in 4.18.

Please post a new ticket with a full dmesg log, Xorg log and your distro/desktop environment if you can still reproduce the problem.

Ok, so yes and no I guess. I was assuming a single bug while there are apparently two. The one that causes video corruption and artifacts is in fact fixed for me now, but the multi-head support is still broken. It worked a couple of kernels ago, opening a new bug report over at opensuse since it seems to be opensuse specific for some reason (other live CDs work fine, looks like it's just something with Tumbleweed for whatever reason)

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #8 from Dave Johnson ([email protected]) ---
Update: for my possibly-separate-issue I can confirm that multi-head works on 4.16.13 and not 4.19_RC3

For now I'm staying on 4.16 as it's working perfectly back there.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #9 from Benjamin Xiao ([email protected]) --- I get the same visual corruption as well. It only appears when I run the monitor at 144Hz. 120Hz seems fine.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #10 from Benjamin Xiao ([email protected]) --- (In reply to Nicholas Kazlauskas from comment #3)

Quoted 8 lines

Created attachment 278455 [details] 0001-drm-amd-display-Use-higher-dispclk-value-for-dce120.patch

Do you mind testing another patch?

This patch has a narrower impact than the previous one (since it should only target Vega). I imagine that it would also fix your issue but it'd be nice to have verification.

Will this patch be backported to 4.19? Seems like right now its only in 4.20.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #11 from Harry Wentland ([email protected]) --- GregKH just added the patch for 4.19-stable.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #12 from Dave Johnson ([email protected]) --- This is fixed for me in 4.19-stable

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

Axel ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #13 from Axel ([email protected]) ---
In which version should this bug being fixed? I still have this bug with 4.19.9. Or is this only fixed for vega? Because I've only a rx570.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#15 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #14 from Nicholas Kazlauskas ([email protected]) --- (In reply to Axel from comment #13)

Quoted 2 lines

In which version should this bug being fixed? I still have this bug with 4.19.9. Or is this only fixed for vega? Because I've only a rx570.

This was fixed for both Vega and Polaris but I think there was another regression that only affected Polaris in that release.

It should be fixed in amd-staging-drm-next. It'll probably make its way into stable at some point.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

[Bug 201067] [bisected] [4.19-rc2 regression] Display corruption with Vega 64 in 4.19-rc2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=201067

--- Comment #15 from Axel ([email protected]) ---
It is fixed for me with kernel 4.20.0

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel