Bug 196771 - [AMDGPU] Scrambled video output during boot on WQHD monitor
Summary: [AMDGPU] Scrambled video output during boot on WQHD monitor
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 14:14 UTC by Rokas Kupstys
Modified: 2018-02-07 16:32 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.12
Subsystem:
Regression: No
Bisected commit-id:


Attachments
journalctl -b -1 (232.18 KB, text/plain)
2017-08-25 14:14 UTC, Rokas Kupstys
Details
What it looks like (182.98 KB, image/jpeg)
2017-08-25 14:15 UTC, Rokas Kupstys
Details
What it looks like (console text) (368.06 KB, image/jpeg)
2017-08-25 14:15 UTC, Rokas Kupstys
Details
Xorg.0.log (57.09 KB, text/plain)
2017-08-26 07:38 UTC, Rokas Kupstys
Details

Description Rokas Kupstys 2017-08-25 14:14:00 UTC
Created attachment 258103 [details]
journalctl -b -1

When booting early KMS sets resolution somehow improperly. I attached example of what it looks like. Appears that columns of pixels are skipped and other visible columns are shifted left. Motherboard boot splashscreen and text of bootloader (systemd-boot) are displayed properly, as soon as Xorg kicks in everything is again displayed properly.

I also tried various combinations of video= and drm_kms_helper.edid_firmware= boot parameters but nothing had any effect. This issue surfaced after getting AMD card. Before i was using nvidia card with proprietary driver and this monitor displayed boot text properly, although in low resolution. In attached boot.log you can see logs of DMAR spam. When troubleshooting that i disabled relevant features and DMAR no longer spewed any errors, however it did not affect display of boot text output and it still was messed up. It also prevented me from using VMs with passed-through GPU so that is why DMAR stuff is enabled with all the error spam.

I have another 1080p monitor and it displays everything correctly on boot. It is connected to AMD card through DVI cable.

Additional info:
* Distribution: Archlinux
* MSI Radeon™ RX 580 GAMING X 8G
* ASUS MG279Q 2560x1440 monitor connected through hdmi
* Opensource amdgpu driver
* early KMS ( MODULES="nls_iso8859-1 ext2 nls_cp437 nls_utf8 vfat cryptd aes_x86_64 aesni_intel pci_stub vfio vfio_iommu_type1 vfio_pci vfio_virqfd kvm kvm_intel amdgpu" )


03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] [1002:67df] (rev e7) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3417]
Physical Slot: 6
Flags: bus master, fast devsel, latency 0, IRQ 31, NUMA node 0
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
Memory at df100000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+


Steps to reproduce: happens always when booting with this combination of hardware and amdgpu driver without any special setup. OpenSUSE tumbleweed and Archlinux both have the problem.
Comment 1 Rokas Kupstys 2017-08-25 14:15:20 UTC
Created attachment 258105 [details]
What it looks like

Colors on 1440p are fine, they look weird due to me using phone to take pictures.
Comment 2 Rokas Kupstys 2017-08-25 14:15:39 UTC
Created attachment 258107 [details]
What it looks like (console text)
Comment 3 Alex Deucher 2017-08-25 17:10:56 UTC
what is the modeline for the 1440p monitor?  Can you attach your xorg log with the problematic monitor attached?
Comment 4 Rokas Kupstys 2017-08-26 07:38:44 UTC
Created attachment 258117 [details]
Xorg.0.log

1440p monitor modeline: "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz eP)
Comment 5 Rokas Kupstys 2017-09-11 13:20:18 UTC
I swapped cable to displayport and now it is working properly. Must be issue with HDMI then.
Comment 6 Michel Dänzer 2017-09-13 08:46:05 UTC
Any chance you can try an amd-staging kernel with DC enabled, to see if it happens with that as well?
Comment 7 Rokas Kupstys 2017-09-13 11:49:12 UTC
amd-staging kernel appears to be working. Since archlinux linux-amd-staging-git package which i used in test is broken i could only get to errors about missing modules and to emergency shell. Text is properly rendered on boot, although resolution appears to be 1920x1080 or similar.
Comment 8 Rokas Kupstys 2018-02-07 16:32:40 UTC
 amdgpu.dc=1 with 4.15 kernel fixes the issue.

Note You need to log in before you can comment on or make changes to this bug.