From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108139] My HDMI stopped working at Linux 4.18.8 Date: Wed, 03 Oct 2018 02:32:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0089238606==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2408089AC0 for ; Wed, 3 Oct 2018 02:32:52 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0089238606== Content-Type: multipart/alternative; boundary="15385339720.494Ae.29381" Content-Transfer-Encoding: 7bit --15385339720.494Ae.29381 Date: Wed, 3 Oct 2018 02:32:52 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108139 Bug ID: 108139 Summary: My HDMI stopped working at Linux 4.18.8 Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: duncan_roe@optusnet.com.au At Linux 4.18.8 the HDMI monitor started to report "No Signal" although Xorg can see a screen when it's started.(There's no signal with or without X). Using bisection, I found the change that caused this is commit to be 691f2d763d0731224439686ecf2d440df8fe910e: +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -808,6 +808,24 @@ static enum bp_result transmitter_control_v1_5( * (=3D1: 8bpp, =3D1.25: 10bpp, =3D1.5:12bpp, =3D2: 16bpp) * LVDS mode: usPixelClock =3D pixel clock */ + if (cntl->signal =3D=3D SIGNAL_TYPE_HDMI_TYPE_A) { + switch (cntl->color_depth) { + case COLOR_DEPTH_101010: + params.usSymClock =3D + cpu_to_le16((le16_to_cpu(params.usSymClock)= * 30) / 24); + break; + case COLOR_DEPTH_121212: + params.usSymClock =3D + cpu_to_le16((le16_to_cpu(params.usSymClock)= * 36) / 24); + break; + case COLOR_DEPTH_161616: + params.usSymClock =3D + cpu_to_le16((le16_to_cpu(params.usSymClock)= * 48) / 24); + break; + default: + break; + } + } if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params)) result =3D BP_RESULT_OK; Inserted printk stmts showed my monitor reports COLOR_DEPTH_121212. I suspe= ct the clock speed is too high for the video card, so the code needs to check = the card model before bumping the speed, but I don't know how to do that. Here are all the details I an think of: Video card (from lspci): VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Radeon R2 Graphics (rev ea) Monitor (from /var/log/Xorg.0.log): Monitor name: DELL U2711 Ranges: V min: 49 V max: 86 Hz, H min: 29 H max: 113 kHz, PixClock max 285 = MHz Hardware name (from /var/log/debug): HP HP Laptop 15-bw0xx/8330, BIOS F.11 07/05/2017 --=20 You are receiving this mail because: You are the assignee for the bug.= --15385339720.494Ae.29381 Date: Wed, 3 Oct 2018 02:32:52 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 108139
Summary My HDMI stopped working at Linux 4.18.8
Product DRI
Version unspecified
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter duncan_roe@optusnet.com.au

At Linux 4.18.8 the HDMI monitor started to report "No Si=
gnal" although Xorg
can see a screen when it's started.(There's no signal with or without X).
Using bisection, I found the change that caused this is commit to be
691f2d763d0731224439686ecf2d440df8fe910e:

+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c
@@ -808,6 +808,24 @@ static enum bp_result transmitter_cont=
rol_v1_5(
         * (=3D1: 8bpp, =3D1.25: 10bpp, =3D1.5:12bpp, =3D2: 16bpp)
         * LVDS mode: usPixelClock =3D pixel clock
         */
+       if  (cntl->signal =3D=3D SIGNAL_TYPE_HDMI_TYPE_A) {
+               switch (cntl->color_depth) {
+               case COLOR_DEPTH_101010:
+                       params.usSymClock =3D
+                               cpu_to_le16((le16_to_cpu(params.usSymClock)=
 *
30) / 24);
+                       break;
+               case COLOR_DEPTH_121212:
+                       params.usSymClock =3D
+                               cpu_to_le16((le16_to_cpu(params.usSymClock)=
 *
36) / 24);
+                       break;
+               case COLOR_DEPTH_161616:
+                       params.usSymClock =3D
+                               cpu_to_le16((le16_to_cpu(params.usSymClock)=
 *
48) / 24);
+                       break;
+               default:
+                       break;
+               }
+       }

        if (EXEC_BIOS_CMD_TABLE(UNIPHYTransmitterControl, params))
                result =3D BP_RESULT_OK;

Inserted printk stmts showed my monitor reports COLOR_DEPTH_121212. I suspe=
ct
the clock speed is too high for the video card, so the code needs to check =
the
card model before bumping the speed, but I don't know how to do that.
Here are all the details I an think of:
Video card (from lspci): VGA compatible controller:
Advanced Micro Devices, Inc. [AMD/ATI] Radeon R2 Graphics (rev ea)
Monitor (from /var/log/Xorg.0.log): Monitor name: DELL U2711
Ranges: V min: 49 V max: 86 Hz, H min: 29 H max: 113 kHz, PixClock max 285 =
MHz
Hardware name (from /var/log/debug):
HP HP Laptop 15-bw0xx/8330, BIOS F.11 07/05/2017


You are receiving this mail because:
  • You are the assignee for the bug.
= --15385339720.494Ae.29381-- --===============0089238606== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0089238606==--