https://bugs.freedesktop.org/show_bug.cgi?id=91202
Bug ID: 91202 Summary: output to DVI-I is blank Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: bpaterni@gmail.com
Created attachment 116902 --> https://bugs.freedesktop.org/attachment.cgi?id=116902&action=edit dmesg for e965b8ce4215ac2b22b23ffc8a8dfbae964b9496
I have a radeon r9 285 (tonga) and I'm trying to run dual DVI displays via the new AMDGPU driver. The problem I'm having though is that the display connected to the DVI-I output goes blank during drm initialization on boot, and thereafter never 'recovers'. If I plug either DVI-D or DVI-I in individually, however, and disconnect the other on a fresh boot, either outputs work just fine. Additionally, dual displays do work if I use any combination of DVI-D, HDMI, or DisplayPort; which leads me to believe that the problem has something to do with how amdgpu is handling output to DVI-I or a hardware problem. Hopefully it is not the latter.
Please let me know if there is anything I can do to help debug this problem!
I'm using Debian unstable, with the latest linux kernel compiled from git mainline (e965b8ce4215ac2b22b23ffc8a8dfbae964b9496)
dmesg and Xorg log should be attached.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #1 from Brian Paterni bpaterni@gmail.com --- Created attachment 116903 --> https://bugs.freedesktop.org/attachment.cgi?id=116903&action=edit xorg log
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #2 from Brian Paterni bpaterni@gmail.com --- Up to now I haven't attempted this, but I just tried changing display modes with xrandr, and this does result in a working display on DVI-I. That is, if the mode is anything other than the preferred 1920x1080. If I try to switch back to 1920x1080, the display goes blank and returns to standby mode.
Would anyone happen to know why preferred mode would have problems while other modes seem to display just fine?
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #3 from Brian Paterni bpaterni@gmail.com --- Created attachment 117375 --> https://bugs.freedesktop.org/attachment.cgi?id=117375&action=edit xrandr --verbose output with DVI-I-0 in the nonworking 1920x1080 mode
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #4 from Brian Paterni bpaterni@gmail.com --- Created attachment 117376 --> https://bugs.freedesktop.org/attachment.cgi?id=117376&action=edit xrandr --verbose output with DVI-I-0 in a working 1680x1050 mode
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #5 from Brian Paterni bpaterni@gmail.com --- Just a little update on this bug.
Still experiencing this problem with the latest upstream kernel code (up to 33b40178cb3bd75294d1a758b3f509a0d38682ab)
It was mentioned on irc that the output of xrandr --verbose may be useful. So I've also attached two additional files with DVI-I-0 in either a working/nonworking state.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #6 from Mathias Tillman master.homer@gmail.com --- I know this may not be a very useful comment, but I can confirm that this bug also happens on 4.2-rc7, and that changing the display resolution via xrandr makes it come back. I set up a script that's run when X11 is started that changes the resolution (and then back again) as a temporary workaround.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #7 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- Can confirm the problem with an R9 285 chip (graphics card is called ASUS STRIX-R9285-DC2OC-2GD5).
The monitor receives no input (switching to power saving mode) when run at its preferred resolution of 2560x1440. It will work with any other resolution, but switching it back 2560x1440 will disable it again.
This is with Kernel 4.3 and the amdgpu driver from today's git master.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
Vedran Miletić rivanvx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|output to DVI-I is blank |Output to DVI-I (or DVI-D) | |is blank on Tonga (R9 285 | |and 380X) with multiple | |monitors
--- Comment #8 from Vedran Miletić rivanvx@gmail.com --- I am using XFX R9 380X: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Amethyst XT [Radeon R9 M295X Mac Edition / R9 380X] [1002:6938] (rev f1)
This bug affects me as well. Interesting part is this: when I plug in just DVI-I on boot, monitor works fine, and plugging DVI-D makes the monitor connected to DVI-D blank. However, if I change monitor setup using e.g. GNOME Displays, the DVI-I will turn blank and DVI-D will work. Disconnecting DVI-D afterwards does not help, DVI-I remains blank.
I have three HDMI monitors, two of them are connected via DVI->HDMI adapters, and I can do further testing if it could be helpful.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #9 from Vedran Miletić rivanvx@gmail.com --- EoD did testing on Sapphire R9 380X Nitro, details at https://gist.github.com/EoD/2baa78b81e233218a59c and copied below:
Booted with DVI-D-0 + HDMI-A-0 Both displays work
Booted with DVI-I-1 + HDMI-A-0 Both displays work
Booted with DVI-D-0 + DVI-I-1 DVI-D-0 shows output, DVI-I-1 stays blank (via xrandr)
Booted with DVI-I-1 + plugging in DVI-D-0 after boot DVI-I-1 shows output, DVI-D-0 stays blank (via xrandr)
Booted with DVI-I-1 + plugging in DVI-D-0 after boot + removing DVI-I-1: DVI-D-0 stays blank (via xrandr)
Booted with DVI-I-1 + plugging in HDMI-A-0 after boot + removing DVI-I-1 + plugging in DVI-D-0: HDMI-A-0 shows output, DVI-D-0 stays blank (via xrandr) When switching to a virtual termina, HDMI-A-0 goes blank, DVI-D-0 shows output
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #10 from Vedran Miletić rivanvx@gmail.com --- Further information: this bug does not occur on R9 380, tested with
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1) (prog-if 00 [VGA controller])
Dual DVI using DVI-I and DVI-D works fine.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #11 from EoD EoD@xmw.de --- (In reply to Vedran Miletić from comment #9)
EoD did testing on Sapphire R9 380X Nitro, details at https://gist.github.com/EoD/2baa78b81e233218a59c and copied below:
This has been tested on drm-next-4.5 geafbbd9 and drm-next-4.5-wip gbc48ef9, although only the trivial cases.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #12 from Marco Wentsch marco.wentsch@gmail.com --- Created attachment 123142 --> https://bugs.freedesktop.org/attachment.cgi?id=123142&action=edit xrandr --verbose output with DVI-I-0 in a working 1680x1050 mode
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #13 from Marco Wentsch marco.wentsch@gmail.com --- Created attachment 123143 --> https://bugs.freedesktop.org/attachment.cgi?id=123143&action=edit Xorg.log
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #14 from Marco Wentsch marco.wentsch@gmail.com --- hi, i have the same issue on Ubuntu 16.04 LTS final. I tried to upgrade the kernel to 4.6 rc4 by self compile but nothing have changed, it doesn't work.
My graphiccard: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Amethyst XT [Radeon R9 M295X Mac Edition / R9 380X] (rev f1)
XFX R9 380X DD Black Edition OC
On HDMI-A-0 it works on native solution on DVI-I-1 its does not work on native solutions but on 1680x1050, i have choose at the moment 1600x900 because it looks better
befor i upgrade i have ubuntu 15.10 (fgrlx and amdgpu) with the orginal kernel and self compiled 4.3 with kvm patches and with both driver it works.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #15 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- Problem is still present in Linux 4.5.3
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #16 from Brian Paterni bpaterni@gmail.com --- just to confirm something mentioned on IRC back in February:
10:55 #radeon: < vedranm> by the way, any chance that you looked into the 3 display issue on Linux_ 10:55 #radeon: < vedranm> sorry, DVI-I issue that is 10:56 #radeon: < agd5f> vedranm, no. should be fixed by the new dal code
I checked out branch 'drm-next-4.7-wip-dal' from git://people.freedesktop.org/~agd5f/linux today and can say that I no longer experience a 'dead' display on DVI-I running the new DAL code!
Interestingly, with DAL, both DVI interfaces on my r9 285 are now detected as DVI-D by xrandr...
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #17 from Thomas R. freedesktop-bugs@digital-trauma.de --- Thanks for letting us know. Sadly, I have a feeling we'll wait quite some time for DAL in mainline.
I realize that Alex kinda has to act as if merging DAL was right around the corner (wrt this bug, fex), but.. Well...
http://thread.gmane.org/gmane.comp.video.dri.devel/149763/focus=149834
Admittedly this makes buying a R9 285 specifically to be able to use this driver look a bit stupid. :/
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #18 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- Looks like the DAL line has been pretty much abandoned at this point.
So what now? Are us AMD now just stuck with either outdated kernels or broken multi-monitor support?
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #19 from Alex Deucher alexdeucher@gmail.com --- DAL is still being actively developed. The latest branch is here: https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-4.7
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #20 from jokeyrhyme@gmail.com --- For a while there it looked like we might get the DAL work in Linux 4.9, but now I'm wondering if this is more of a 4.10 or 4.11 thing. - https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-Linux-4.9-Fir...
It's actually a pretty exciting time for AMD GPUs on Linux, as it is right in the middle of a massive overhaul. I purchased a Tonga specifically so I could bear witness to this open-by-default turnaround for the AMD team.
And yeah, it's totally frustrating the multi-monitor is broken right now, but at least we get re-clocking. Imagine how frustrating it must be for open-source nVidia fans right now, with nVidia itself having long stymied the community work in that area.
With my current setup, I have both monitors connected to my Intel GPU, and the primary monitor also connected to the AMD one, with Intel being initialised by EFI / BIOS first. In Linux, I switch the primary monitor to Intel, and for Windows I switch it back to AMD. Not perfect of course, but this flow sort of works for me.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #21 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- (In reply to Alex Deucher from comment #19)
DAL is still being actively developed. The latest branch is here: https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-4.7
I just tried booting with that kernel (commit f67b5d7409ed6f4c5b353932bcafffea995094be). It doesn't solve this issue for me. (Branch drm-next-4.7-wip-dal did.)
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #22 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- Please ignore that last comment - turns out I just hadn't switched DAL on in the config...
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #23 from Thomas R. freedesktop-bugs@digital-trauma.de --- Guido, does that mean that now it works for you, or simply that you can't say one way or the other because you didn't test with DAL actually running?
I'm asking because I finally got around to compile amd-staging-4.7 (which only works with a certain set of kernel options, BTW), and with DAL enabled and both the last commit and f67b5d74 you mentioned, I still see this bug. So now I'm confused - am I doing something wrong, or was the fix a victim of the numerous DAL cleanups along the way, or maybe the freesync changes? I got "[drm] DAL is enabled" in my kernel log at any rate, and freesync.c dumps stack traces in warn_slowpath_null, which I guess is just a development help and nothing serious.
If I'd find a branch with both a working and non-working revision in it I'd be willing to bisect, but going back in staging-4.7 removes DAL completely, and staging-4.6 doesn't even compile for me, which was when I gave up yesterday.
It's a shame because apart from this, 4.7 works really, really well. So if there is anything I can do to properly triangulate this problem, I'd be very eager to help.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #24 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- (In reply to Thomas R. from comment #23)
Guido, does that mean that now it works for you, or simply that you can't say one way or the other because you didn't test with DAL actually running?
No, it works for me like this, as of commit d330e1e9c232895dbd0c183a647d41d54ecc0884.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #25 from Guido Winkelmann guido-xorgbugs@unknownsite.de --- I tried upgrading to the newest commit in amd-staging-4.7 today (680da8633ae17cdea8fddd1ede87253325c8ca25), and now it is broken now, but in a different way, see: https://bugs.freedesktop.org/show_bug.cgi?id=98730
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #26 from Thomas R. freedesktop-bugs@digital-trauma.de --- ASUS STRIX-R9285-DC2OC-2GD5:
Still not working in Mainline 4.9.11. Not working in any DAL-4.7 version, either (tried all commits Guido mentioned, but it seems he switched cards in between, now having reported a bug for a Sapphire Nitro Radeon R9 380X.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
--- Comment #27 from Thomas R. freedesktop-bugs@digital-trauma.de --- With amd-staging-4.9, commit a364784ea02674736abd9d345fd74bf6787f95a1 ("drm/amdgpu: expose GPU sensor related information"), it works now, but only if DC is enabled (I guess it's DAL reborn?)
Either I didn't configure DAL correctly before (even though it showed up in dmesg), or there was an actual change that made it work for my card between xmas and now.
Today I lit a candle and deleted fglrx.
https://bugs.freedesktop.org/show_bug.cgi?id=91202
Lars Wendler polynomial-c@gentoo.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |polynomial-c@gentoo.org
--- Comment #28 from Lars Wendler polynomial-c@gentoo.org --- Still not fixed with kernel-5.4-rc6
https://bugs.freedesktop.org/show_bug.cgi?id=91202
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #29 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/50.
dri-devel@lists.freedesktop.org