Bug 91896 - AMDGPU Fiji: only getting 1080i on DP
Summary: AMDGPU Fiji: only getting 1080i on DP
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
: 92045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-06 17:17 UTC by Ernst Sjöstrand
Modified: 2015-11-17 15:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (70.80 KB, text/plain)
2015-09-09 09:02 UTC, Ernst Sjöstrand
no flags Details
Xorg.0.log (52.93 KB, text/plain)
2015-09-09 09:02 UTC, Ernst Sjöstrand
no flags Details
xrandr (8.12 KB, text/plain)
2015-09-09 14:13 UTC, Ernst Sjöstrand
no flags Details
xrandr fglrx (23.03 KB, text/plain)
2015-10-09 16:23 UTC, Ernst Sjöstrand
no flags Details
vbios.rom (59.50 KB, application/octet-stream)
2015-10-11 21:39 UTC, Ernst Sjöstrand
no flags Details
possible fix (1.41 KB, patch)
2015-10-12 14:40 UTC, Alex Deucher
no flags Details | Splinter Review
possible fix (1.55 KB, patch)
2015-10-12 19:49 UTC, Alex Deucher
no flags Details | Splinter Review

Description Ernst Sjöstrand 2015-09-06 17:17:44 UTC
On my Dell P2415Q with a Radeon Fury I'm only getting 1080i.
Connected with DisplayPort.
Previously I had a Radeon 6850 where I could get all the available resolutions.
Using kernel from drm-next of sept. 5:th: http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-next/2015-09-05-unstable/
xserver-xorg-driver-amdgpu from git.
Comment 1 Alex Deucher 2015-09-09 03:55:17 UTC
Please attach your xorg log and dmesg output.
Comment 2 Ernst Sjöstrand 2015-09-09 09:02:02 UTC
Created attachment 118159 [details]
dmesg
Comment 3 Ernst Sjöstrand 2015-09-09 09:02:24 UTC
Created attachment 118160 [details]
Xorg.0.log
Comment 4 Alex Deucher 2015-09-09 12:40:41 UTC
Can you attach the output of xrandr --verbose?  According to your xorg log, all the modes are found, e.g.,

[    18.554] (II) AMDGPU(0): Printing DDC gathered Modelines:
[    18.554] (II) AMDGPU(0): Modeline "3840x2160"x0.0  533.25  3840 3902 3950 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[    18.554] (II) AMDGPU(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1082 1087 1125 +hsync +vsync (67.5 kHz e)
[    18.554] (II) AMDGPU(0): Modeline "1920x1080i"x0.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    18.554] (II) AMDGPU(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
Comment 5 Ernst Sjöstrand 2015-09-09 14:13:17 UTC
Created attachment 118167 [details]
xrandr
Comment 6 Jeff Nelson 2015-09-21 03:28:33 UTC
I too am experiencing this issue.
I have two Dell P2715Q monitors connected to my Radeon Fury X and the highest resolution I can achieve is 1920x1080i.

Looking through xrandr, it also confirms that the 3840x2160 resolution is not available on either monitor.
Comment 7 Ernst Sjöstrand 2015-10-09 07:30:59 UTC
Alex: are you going to wait for the DAL to fix this or what would you guess?
Comment 8 Alex Deucher 2015-10-09 14:33:38 UTC
Can you post your xorg config?  Do you have a monitor section that has sync ranges that may be limiting what modes are added?  I can't reproduce this.  E.g.,
Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160      60.0*+   30.0  
   2560x1600      60.0  
   2560x1440      60.0  
   1920x1080      60.0     60.0     50.0     59.9  
   1920x1080i     60.1     50.0     60.0  
   1680x1050      59.9  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x960       60.0  
   1152x864       75.0  
   1280x720       60.0     50.0     59.9  
   1440x576       50.0  
   1024x768       75.1     70.1     60.0  
   1440x480       60.0     59.9  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   720x576        50.0  
   720x480        60.0     59.9  
   640x480        75.0     72.8     66.7     60.0     59.9  
   720x400        70.1  
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected 1920x1200+3840+0 (normal left inverted right x axis y axis) 519mm x 324mm
   1920x1200      60.0*+
   1920x1080      60.0     59.9  
   1920x1080i     60.1     60.0  
   1600x1200      60.0  
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1280x720       60.0     59.9  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   720x576i       50.1  
   720x480        60.0     59.9  
   720x480i       60.1     60.1  
   640x480        75.0     60.0     59.9  
   720x400        70.1
Comment 9 Alex Deucher 2015-10-09 14:43:42 UTC
Please attach a copy of your vbios.

(as root)
(use lspci to get the bus id)
cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom
Comment 10 Ernst Sjöstrand 2015-10-09 16:23:17 UTC
No monitor section.
During this time i've actually bought a second 4k monitor of a different brand.
Attaching the xrandr with fglrx.
Comment 11 Ernst Sjöstrand 2015-10-09 16:23:47 UTC
Created attachment 118780 [details]
xrandr fglrx
Comment 12 Alex Deucher 2015-10-09 16:42:21 UTC
(In reply to Ernst Sjöstrand from comment #10)
> No monitor section.
> During this time i've actually bought a second 4k monitor of a different
> brand.
> Attaching the xrandr with fglrx.

Does it work properly with amdgpu?
Comment 13 Ernst Sjöstrand 2015-10-11 21:19:57 UTC
OK, the problem seems to be that amdgpu_connector_is_dp12_capable returns false because adev->clock.default_dispclk is set to 50000.
Comment 14 Ernst Sjöstrand 2015-10-11 21:38:07 UTC
[    1.326627] [drm] initializing kernel modesetting (FIJI 0x1002:0x7300 0x174B:0xE329 0xCB).
[    1.326632] [drm] register mmio base: 0xFE600000
[    1.326633] [drm] register mmio size: 262144
[    1.326635] [drm] doorbell mmio base: 0xD0000000
[    1.326635] [drm] doorbell mmio size: 2097152
[    1.326647] amdgpu 0000:01:00.0: Invalid ROM contents
[    1.326659] ATOM BIOS: 113
[    1.326664] ernst info_21.ulDefaultDispEngineClkFreq 50000
Comment 15 Ernst Sjöstrand 2015-10-11 21:39:03 UTC
Created attachment 118827 [details]
vbios.rom
Comment 16 Alex Deucher 2015-10-12 14:40:20 UTC
Created attachment 118841 [details] [review]
possible fix

Does this patch fix the issue?
Comment 17 Ernst Sjöstrand 2015-10-12 16:43:10 UTC
Works! There's another default value 54000 on line 676, but maybe that's needed for "current_dispclk"?
Comment 18 Alex Deucher 2015-10-12 19:49:04 UTC
Created attachment 118844 [details] [review]
possible fix

(In reply to Ernst Sjöstrand from comment #17)
> Works! There's another default value 54000 on line 676, but maybe that's
> needed for "current_dispclk"?

It shouldn't hurt anything, but lets just clean it up anyway.
Comment 19 Jeff Nelson 2015-10-16 16:57:45 UTC
Will this fix make it into the 4.3 RC kernels? or will this be published in 4.4?
Comment 20 Ernst Sjöstrand 2015-10-16 17:04:29 UTC
It should go into 4.3: http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-fixes-4.3
Comment 21 Christian König 2015-10-19 08:26:56 UTC
And the patch should even have a stable tag on it so it goes into 4.2 as well.

Anyway code is on it's way and I think we can close this ticket.
Comment 22 Alex Deucher 2015-11-17 15:05:18 UTC
*** Bug 92045 has been marked as a duplicate of this bug. ***


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.