[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Nate Graham changed: What|Removed |Added Resolution|WAITINGFORINFO |DOWNSTREAM Status|NEEDSINFO |RESOLVED --- Comment #20 from Nate Graham --- Thanks, the fact that you're overclocking your GPU is highly relevant here. :) -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #19 from Stefan Springer --- (In reply to Zamundaaa from comment #18) > Did you actually revert the commit and test that, and what's your second > GPU? Because if you do have mismatching stride, then your output would've > been completely unusable before the commit. And if you don't, then the > commit doesn't change anything. Long story short: I can now say with certainty that my specific issue is not KDE related. Sorry for making such a fuzz! So after reverting the patch, things seemed fine for two days and a reboot, but then the issue got triggered again out of seemingly nowhere. Following some more digging around, and even trying an old 5.19 LTS kernel, I decided to create a new, blank user account to see if it also exhibits the issue. Surprisingly, it wasn't present on a fresh acc. with default settings. I step-wise reconstructed the settings of my main account to see if it reoccurred. The trigger was touching mclk_od on 6800XT (and probably also RX 470 when thinking about the weird behavior on my other PC; for some reason [HBM?] Vega 56 is fine), even if it's just a change of 5Mhz up or down, it will reliably trigger the problem. I manually played around with the pp_od_clk_voltage sysfs interface to confirm this, and ultimately disabled the part of my OC script that adjusts mclk; now everything works. Multiple reboots, logging off and on again, the gsync pendulum at any arbitrary refresh rate, etc… I was using a dual-monitor 144Hz config before, then, after moving, single monitor with 144Hz over HDMI because I grabbed the wrong cable, and only when I finally got around to getting a DP cable (3 in fact, since it looked like I got two defective ones at first), which allowed me to drive my monitor at 165Hz (still single-monitor use now), the issue was unmasked. That's what originally had me sifting through a month worth of system updates and commits. Currently, when looking at the AMDGPU issue tracker, there is fundamental restructuring going on in DC (Display Core) code, with issues around mclk handling being present (It actually broke badly in Kernel 6.4, such that desktop RDNA2 simply won't increase mclk at all, for some OOTB, for others with specific monitors/resolutions/refresh rates and for others once touching mclk_od), aswell as problems with calculating the required bandwidth for a given monitor config (res, hz, multi-display, VRR), so this seems related to that. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Zamundaaa changed: What|Removed |Added Status|REOPENED|NEEDSINFO Resolution|--- |WAITINGFORINFO --- Comment #18 from Zamundaaa --- (In reply to Stefan Springer from comment #16) > My screen will flicker whenever the refresh rate goes below a certain > threshold (~78fps for me w/ Gsync pendulum and MangoHud enforcing VRR). It > will also do so seemingly random when operating the computer and > occasionally produces a glitched bar on the botton of the screen, showing > elements that should be on the top (i.e like my top panel). Did you actually revert the commit and test that, and what's your second GPU? Because if you do have mismatching stride, then your output would've been completely unusable before the commit. And if you don't, then the commit doesn't change anything. (In reply to Ivan D Vasin from comment #14) > Unfortunately, the issue persists even after updating to Plasma 5.27.7. > Unsetting KWIN_DRM_DEVICES brings back the same distortion as before. Are > there any other diagnostics I can provide that might help pin this down? I > also have the KDE/Plasma 5 sources set up for building. Happy to try out > patches without waiting for a release. ping on the patch. I can't really do anything without narrowing the problem down. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #17 from Stefan Springer --- (In reply to Stefan Springer from comment #16) Just a small addition. KWin's VRR setting (Auto/Disabled/Always) didn't matter particularly much, with Disabled reducing the likelihood of occurrence the most. What could workaround the problem entirely without reverting the commit, was using the monitor's OSD to completely disable VRR support (it's called "G-Sync compatible" there). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Stefan Springer changed: What|Removed |Added CC||stefansp...@gmail.com --- Comment #16 from Stefan Springer --- That f1f7e2697d1ac4ebe9099006775717e5fd6f5777 commit totally wrecks VRR, especially when using DisplayPort in my case. Selectively reverting it fixes the issue with HDMI (which was less affected) and DP. My screen will flicker whenever the refresh rate goes below a certain threshold (~78fps for me w/ Gsync pendulum and MangoHud enforcing VRR). It will also do so seemingly random when operating the computer and occasionally produces a glitched bar on the botton of the screen, showing elements that should be on the top (i.e like my top panel). Just guessing here, but could it be that some timing or buffer handling is off here or that this was data already belonging to the next frame placed at some weird offset? !Anyhow, I'd recommend reverting f1f7e2697d1ac upstream ASAP, since for anyone affected, their GUI becomes practically unusable and the flickering may cause seizures in people with epilepsy. Some may also think that they got HW damage… Thank you! Plasma 5.27.7, Gentoo, tried Kernel 6.1.45-lts, 6.3.13 and 6.4.10. Radeon 6800XT, Mesa 23.1.5, libdrm 2.4.115 AOC Q24G2 1440p@165Hz (144Hz on HDMI, which somehow made the flickers happen less often). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #15 from Zamundaaa --- Created attachment 160889 --> https://bugs.kde.org/attachment.cgi?id=160889&action=edit log what stride is used I can't reproduce the problem myself; with 5.27.6 I see the problem with the 1680x1050 resolution, but with 5.27.7 it's gone. Could you please run KWin with the attached patch, and see what strides the buffers have? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Nate Graham changed: What|Removed |Added CC||xaver.h...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Ivan D Vasin changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED |--- --- Comment #14 from Ivan D Vasin --- Unfortunately, the issue persists even after updating to Plasma 5.27.7. Unsetting KWIN_DRM_DEVICES brings back the same distortion as before. Are there any other diagnostics I can provide that might help pin this down? I also have the KDE/Plasma 5 sources set up for building. Happy to try out patches without waiting for a release. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Zamundaaa changed: What|Removed |Added Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas |ma/kwin/-/commit/e698cafa27 |ma/kwin/-/commit/f1f7e2697d |37904255d47d1e1710ee857cde9 |1ac4ebe9099006775717e5fd6f5 |afd |777 --- Comment #13 from Zamundaaa --- Git commit f1f7e2697d1ac4ebe9099006775717e5fd6f5777 by Xaver Hugl. Committed on 05/07/2023 at 09:11. Pushed by zamundaaa into branch 'Plasma/5.27'. backends/drm: handle mismatching stride with CPU copying M +7-6src/backends/drm/drm_buffer_gbm.cpp M +7-1src/backends/drm/drm_buffer_gbm.h M +12 -8src/backends/drm/drm_egl_layer_surface.cpp https://invent.kde.org/plasma/kwin/-/commit/f1f7e2697d1ac4ebe9099006775717e5fd6f5777 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Zamundaaa changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Latest Commit||https://invent.kde.org/plas ||ma/kwin/-/commit/e698cafa27 ||37904255d47d1e1710ee857cde9 ||afd --- Comment #12 from Zamundaaa --- Git commit e698cafa2737904255d47d1e1710ee857cde9afd by Xaver Hugl. Committed on 04/07/2023 at 15:33. Pushed by zamundaaa into branch 'master'. backends/drm: handle mismatching stride with CPU copying M +12 -12 src/backends/drm/drm_egl_layer_surface.cpp https://invent.kde.org/plasma/kwin/-/commit/e698cafa2737904255d47d1e1710ee857cde9afd -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Nate Graham changed: What|Removed |Added CC||n...@kde.org -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 Bug Janitor Service changed: What|Removed |Added Ever confirmed|0 |1 Status|REPORTED|ASSIGNED --- Comment #11 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4219 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #10 from Ivan D Vasin --- To be clear: this issue appears to be specific to KWin on Wayland. It does not occur with other Wayland compositors (at least, not with Hyprland or Mutter in their default configurations), nor with KWin on X11. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #9 from Ivan D Vasin --- Created attachment 159944 --> https://bugs.kde.org/attachment.cgi?id=159944&action=edit edid-decode < /sys/class/drm/card1-DP-2/edid -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #8 from Ivan D Vasin --- Created attachment 159943 --> https://bugs.kde.org/attachment.cgi?id=159943&action=edit KScreen output 2f4e4ef6ae9112f2683b157615664340 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #7 from Ivan D Vasin --- Created attachment 159942 --> https://bugs.kde.org/attachment.cgi?id=159942&action=edit KScreen output 2627fe60f26afd08b11e318517ade0ae -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #6 from Ivan D Vasin --- Created attachment 159941 --> https://bugs.kde.org/attachment.cgi?id=159941&action=edit kscreen.log -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #5 from Ivan D Vasin --- Created attachment 159940 --> https://bugs.kde.org/attachment.cgi?id=159940&action=edit kwin-drm-debug.log -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #4 from Ivan D Vasin --- Created attachment 159939 --> https://bugs.kde.org/attachment.cgi?id=159939&action=edit dmesg-drm-debug.log -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #3 from Ivan D Vasin --- Created attachment 159938 --> https://bugs.kde.org/attachment.cgi?id=159938&action=edit KWin Support Information -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #2 from Ivan D Vasin --- Created attachment 159937 --> https://bugs.kde.org/attachment.cgi?id=159937&action=edit kscreen-console bug -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 471517] Whole-screen diagonal-stripes glitch on external display with hybrid graphics
https://bugs.kde.org/show_bug.cgi?id=471517 --- Comment #1 from Ivan D Vasin --- Created attachment 159936 --> https://bugs.kde.org/attachment.cgi?id=159936&action=edit drm_info -j -- You are receiving this mail because: You are watching all bug changes.