All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 109499] amdgpu 4k modes not working
@ 2019-01-29 17:55 bugzilla-daemon
  2019-01-29 17:57 ` bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-01-29 17:55 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 5984 bytes --]

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: dri-devel@lists.freedesktop.org
          Reporter: snorkellingcactus@gmail.com

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"

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 7473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
@ 2019-01-29 17:57 ` bugzilla-daemon
  2019-01-29 17:58 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-01-29 17:57 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 332 bytes --]

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1213 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
  2019-01-29 17:57 ` bugzilla-daemon
@ 2019-01-29 17:58 ` bugzilla-daemon
  2019-01-29 17:59 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-01-29 17:58 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]

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

--- Comment #2 from Nadal Gonzalo García Zavala <snorkellingcactus@gmail.com> ---
Created attachment 143252
  --> https://bugs.freedesktop.org/attachment.cgi?id=143252&action=edit
dmesg

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
  2019-01-29 17:57 ` bugzilla-daemon
  2019-01-29 17:58 ` bugzilla-daemon
@ 2019-01-29 17:59 ` bugzilla-daemon
  2019-02-05 21:54 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-01-29 17:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 329 bytes --]

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1204 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
                   ` (2 preceding siblings ...)
  2019-01-29 17:59 ` bugzilla-daemon
@ 2019-02-05 21:54 ` bugzilla-daemon
  2019-02-05 21:56 ` bugzilla-daemon
  2019-11-19  7:59 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-02-05 21:54 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 635 bytes --]

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

--- Comment #4 from Nadal Gonzalo García Zavala <snorkellingcactus@gmail.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1398 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
                   ` (3 preceding siblings ...)
  2019-02-05 21:54 ` bugzilla-daemon
@ 2019-02-05 21:56 ` bugzilla-daemon
  2019-11-19  7:59 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-02-05 21:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]

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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1222 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 109499] amdgpu 4k modes not working
  2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
                   ` (4 preceding siblings ...)
  2019-02-05 21:56 ` bugzilla-daemon
@ 2019-11-19  7:59 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2019-11-19  7:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]

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

Martin Peres <martin.peres@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #6 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/20.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2303 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-19  7:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29 17:55 [Bug 109499] amdgpu 4k modes not working bugzilla-daemon
2019-01-29 17:57 ` bugzilla-daemon
2019-01-29 17:58 ` bugzilla-daemon
2019-01-29 17:59 ` bugzilla-daemon
2019-02-05 21:54 ` bugzilla-daemon
2019-02-05 21:56 ` bugzilla-daemon
2019-11-19  7:59 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.