Skip to contentSkip to conversation

amdgpu 4k modes not working

Bug 109499 [email protected] 1 participant 7 messages Jan 29, 2019 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109499

Bug ID: 109499
Summary: amdgpu 4k modes not working
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu-pro
Assignee: [email protected]
Reporter: [email protected]

Hi.
We have an AMD W7100. We are trying to use two DisplayPort at 3840x2160.

Firstly, those modes are not listed by xrandr

Second, adding and setting a new xrandr mode may work only after replugging
DisplayPort cables on other DisplayPort (for example, disconnecting DP0 and DP1 and connecting to DP2 and DP3).

Then, fix will not persist across reboots.

EDID seems to behave flaky by some reason (EDID invalid messages from
dmesg)

We however have a vendor provided EDID which we forced to be loaded on
boot.

    That only changed available modes to a max of 1920x1080 but symptoms kept

being the same. (edid-decode info shows 3840x2160 modes however)

We tried thousands of options/configs.

We are on Ubuntu 16.04.

We tried amdgpu-pro 18.30 and 18.10 version of the driver, with kernel 4.15
and kernel 4.13, using amdgpu.dc=0 and amdgpu.dc=1, using amdgpu and modesetting as driver on xorg.

    The errors dmesg throws when adding/setting the 3840x2160 with xrandr are

like:

X Error of failed request:  BadName (named color or font does not exist)
Major opcode of failed request:  140 (RANDR)
Minor opcode of failed request:  16 (RRCreateMode)
Serial number of failed request:  43
Current serial number in output stream:  43
[241317.628306] [drm:drm_crtc_helper_set_config [drm_kms_helper]] *ERROR*
failed to set mode on [CRTC:37:crtc-0]
xrandr: Configure crtc 0 failed
xrandr: Configure crtc 1 failed
[241317.940299] [drm:drm_crtc_helper_set_config [drm_kms_helper]] *ERROR*

failed to set mode on [CRTC:39:crtc-1]

On some setup, with drm debug enabled on kernel and when trying to set the 3840x2160 mode with xrandr dmesg trhow:

[    7.638690] [drm:drm_mode_prune_invalid [drm]] Not using 3840x2160 mode:

CLOCK_HIGH

When using amdgpu.dc=1 that changed to something like:

X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 39
Current serial number in output stream: 39

[ 4482.053606] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:0, active:0, planes_changed:0,
mode_changed:0,active_changed:0,connectors_changed:0
[ 4482.056191] [drm:drm_mode_setcrtc [drm]] [CRTC:43:crtc-0]
[ 4482.056232] [drm:drm_mode_setcrtc [drm]] [CONNECTOR:55:DP-1]
[ 4482.056390] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.056530] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.056661] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.056839] [drm:dm_update_crtcs_state [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:1, active:1, planes_changed:0,
mode_changed:1,active_changed:1,connectors_changed:1
[ 4482.057041] [drm:update_stream_scaling_settings [amdgpu]] Destination
Rectangle x:0  y:0  width:3840  height:2160
[ 4482.057201] [drm:dm_update_crtcs_state [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:1, active:1, planes_changed:0,
mode_changed:1,active_changed:1,connectors_changed:1
[ 4482.057357] [drm:dm_update_crtcs_state [amdgpu]] Enabling DRM crtc: 43
[ 4482.057539] [drm:dm_update_planes_state [amdgpu]] Enabling DRM plane: 41 on
DRM crtc 43
[ 4482.057687] [drm:amdgpu_dm_atomic_check [amdgpu]] Atomic check failed with
err: -22 
xrandr: Configure crtc 0 failed
[ 4482.092223] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:0, active:0, planes_changed:0,
mode_changed:0,active_changed:0,connectors_changed:0
xrandr: Configure crtc 0 failed
[ 4482.094553] [drm:drm_mode_setcrtc [drm]] [CRTC:43:crtc-0]
[ 4482.094567] [drm:drm_mode_setcrtc [drm]] [CONNECTOR:57:DP-2]
[ 4482.094622] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.094668] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.094713] [drm:best_encoder [amdgpu]] Finding the best encoder
[ 4482.094761] [drm:dm_update_crtcs_state [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:1, active:1, planes_changed:0,
mode_changed:1,active_changed:1,connectors_changed:1
[ 4482.094809] [drm:update_stream_scaling_settings [amdgpu]] Destination
Rectangle x:0  y:0  width:3840  height:2160
[ 4482.094849] [drm:dm_update_crtcs_state [amdgpu]] amdgpu_crtc id:0
crtc_state_flags: enable:1, active:1, planes_changed:0,
mode_changed:1,active_changed:1,connectors_changed:1
[ 4482.094887] [drm:dm_update_crtcs_state [amdgpu]] Enabling DRM crtc: 43
[ 4482.094938] [drm:dm_update_planes_state [amdgpu]] Enabling DRM plane: 41 on
DRM crtc 43
[ 4482.094979] [drm:amdgpu_dm_atomic_check [amdgpu]] Atomic check failed with

err: -22

We also tried various modelines, reported by dmesg, by xorg and by edid-decode. So i think we tried modelines with clock less than ¿ 300000khz ? aprox.

Bug seems similar to https://bugs.freedesktop.org/show_bug.cgi?id=102985

Which mentions something about the driver not taking some part of the EDID modes upper to 64.

Dont know however which commit introduced that change to test it on Ubuntu 16.04 / Linux 4.15.

The commit mentioned on that bug report seems invalid / obsolete.

xrandr commands are like:

xrandr --newmode "3840" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
xrandr --addmode DisplayPort-0 "3840"
xrandr --output DisplayPort-0 --mode "3840"

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109499

--- Comment #1 from Nadal Gonzalo García Zavala <[email protected]> --- Created attachment 143251
--> https://bugs.freedesktop.org/attachment.cgi?id=143251&action=edit
EDID firmware

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109499

--- Comment #2 from Nadal Gonzalo García Zavala <[email protected]> --- Created attachment 143252
--> https://bugs.freedesktop.org/attachment.cgi?id=143252&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109499

--- Comment #3 from Nadal Gonzalo García Zavala <[email protected]> --- Created attachment 143253
--> https://bugs.freedesktop.org/attachment.cgi?id=143253&action=edit
parse-edid

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109499

--- Comment #4 from Nadal Gonzalo García Zavala <[email protected]> --- I'm not sure, but is possible the issue were fixed between revisions 43 and 45 of ubuntu kernel 4.15.

Before upgrading the kernel, we reached a solution:
- Using EDID emulators, getting xrandr showing both DisplayPort outputting 4k
- Dumping the EDID to a file
- Quitting emulators, conecting DisplayPorts normally with EDID firmware forced to previously generated file.

Will attach our working EDID file.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109499

--- Comment #5 from Nadal Gonzalo García Zavala <[email protected]> --- Created attachment 143308
--> https://bugs.freedesktop.org/attachment.cgi?id=143308&action=edit
working_edid.bin

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109499

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #6 from Martin Peres <[email protected]> --- -- 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/20.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel