Bug 89505

Summary: Oculus Rift DK2 on radeon modesetting not lighting up
Product: xorg Reporter: Asbjørn Sannes <ace>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: CLOSED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: ckoenig.leichtzumerken
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xrandr --verbose after attaching DK2 and only enabling it on 3.19.1 (not lighting up)
none
xrandr --verbose after attaching DK2 and only enabling it on 3.12.6 (lighting up)
none
xrandr --verbose after attaching DK2 and only enabling it on 3.19.1 intel (lighting up).
none
dmesg of 3.19.1 kernel
none
fix to test
none
updated patch none

Description Asbjørn Sannes 2015-03-09 20:57:40 UTC
Created attachment 114171 [details]
xrandr --verbose after attaching DK2 and only enabling it on 3.19.1 (not lighting up)

The DK2 does not light up on linux kernel 3.19.1 doing:

xrandr --output HDMI-0 --auto --output DVI-0 --off --output DVI-1 --off

It does light up doing exactly the same on 3.12.6 (xrandr --verbose attached).

It does light up on 3.19.1 on *Intel* hardware.
Comment 1 Asbjørn Sannes 2015-03-09 20:59:26 UTC
Created attachment 114172 [details]
xrandr --verbose after attaching DK2 and only enabling it on 3.12.6 (lighting up)
Comment 2 Asbjørn Sannes 2015-03-09 21:06:42 UTC
Created attachment 114173 [details]
xrandr --verbose after attaching DK2 and only enabling it on 3.19.1 intel (lighting up).

xrandr --verbose from an Intel laptop running linux 3.19.0
Comment 3 Asbjørn Sannes 2015-03-09 21:09:50 UTC
My hardware:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT [Radeon HD 7970/R9 280X]
Comment 4 Asbjørn Sannes 2015-03-09 21:10:35 UTC
Created attachment 114174 [details]
dmesg of 3.19.1 kernel
Comment 5 Asbjørn Sannes 2015-03-09 21:13:08 UTC
I have reproduced this on another desktop computer with the same radeon card, if you need any more information I am more than willing to provide it.
Comment 6 Alex Deucher 2015-03-09 21:14:40 UTC
Might be related to this bug:
https://bugzilla.kernel.org/show_bug.cgi?id=94171
Comment 7 Alex Deucher 2015-03-09 21:16:55 UTC
Created attachment 114175 [details] [review]
fix to test

Please make sure your kernel has this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=72edd83cc9e5819ed1ee771519143d7594e059f0

Then apply this kernel patch on top of it.
Comment 8 Asbjørn Sannes 2015-03-09 21:30:58 UTC
Yes, that works! It now lights up (and works).
I'm going to test it on another desktop computer.
Comment 9 Asbjørn Sannes 2015-03-09 22:04:39 UTC
Tested on another computer, it is lighting up there aswell.

Probably not related, but on the other computer if I enable both monitors, one of them is not updated. (With the exception of the mouse cursor).

And if I only enable the DK2 it seems to work, but I think I see some corruption on some parts. From what I understand from you on irc is that it might not be related. So I will open a new bug report about that.
Comment 10 Alex Deucher 2015-04-19 16:03:10 UTC
Created attachment 115195 [details] [review]
updated patch

Can you try this patch as well?
Comment 11 Asbjørn Sannes 2015-04-21 17:38:45 UTC
First reverified that it did not work with plain 4.0.0 vanilla kernel.
Tested with 4.0.0 + updated.patch and it works.
Comment 12 Asbjørn Sannes 2015-05-16 16:09:23 UTC
Just tried 4.0.3 vanilla (kernel.org) and it works (the patch seems to be upstream now).
Closing as resolved + fixed. Thank you so much!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.