All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 73530] Asus U38N: Black screen with Radeon driver in Linux
Date: Wed, 22 Oct 2014 21:14:20 +0000	[thread overview]
Message-ID: <bug-73530-502-cMjPFgcpMW@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-73530-502@http.bugs.freedesktop.org/>


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

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

--- Comment #65 from Alex Deucher <agd5f@yahoo.com> ---
(In reply to Christian Aßfalg from comment #63)
> I think / guess that I am having the same issues. I've got the same laptop,
> running Arch Linux. Mostly, I've been using the proprietary catalyst driver,
> since I never got the free driver working. The proprietary is working fine.
> 
> What is the issue here? You've been playing with timings for the physical
> link to the internal panel? Is it so frickly? What would you need to fix the
> issue? How can I help?

In reply to Christian Aßfalg from comment #63)
> I think / guess that I am having the same issues. I've got the same laptop,
> running Arch Linux. Mostly, I've been using the proprietary catalyst driver,
> since I never got the free driver working. The proprietary is working fine.
> 
> What is the issue here? You've been playing with timings for the physical
> link to the internal panel? Is it so frickly? What would you need to fix the
> issue? How can I help?

I suggested that it might be a timing issue, and as per comment 54.  However,
link training is successful so that monitor accepts the parameters that the
driver proposed, it just sometimes chooses not to light up.  I would suggest
trying to tweak the link training timing as per comment 54, try disabling ss as
per comment 6, and finally, try making some slight changes to the modeset
sequence as per the attached patch.  The patch adds a delay before enabling the
video stream and additionally calls the enable video stream code again in case
the monitor didn't quite get the signal the first time.  E.g.,

diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c
b/drivers/gpu/drm/radeon/atombios_encoders.c
index a7f2ddf..256ed7d 100644
--- a/drivers/gpu/drm/radeon/atombios_encoders.c
+++ b/drivers/gpu/drm/radeon/atombios_encoders.c
@@ -1687,8 +1687,12 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder
*encoder, int mode)
                if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) &&
connector) {
                        /* DP_SET_POWER_D0 is set in radeon_dp_link_train */
                        radeon_dp_link_train(encoder, connector);
-                       if (ASIC_IS_DCE4(rdev))
+                       if (ASIC_IS_DCE4(rdev)) {
+                               udelay(50);
                                atombios_dig_encoder_setup(encoder,
ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
+                               udelay(50);
+                               atombios_dig_encoder_setup(encoder,
ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
+                       }
                }
                if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
                        atombios_dig_transmitter_setup(encoder,

Or move the backlight enable before the link training:
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c
b/drivers/gpu/drm/radeon/atombios_encoders.c
index a7f2ddf..3bfbfa4 100644
--- a/drivers/gpu/drm/radeon/atombios_encoders.c
+++ b/drivers/gpu/drm/radeon/atombios_encoders.c
@@ -1682,6 +1682,9 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder,
int mode)
                                radeon_dig_connector->edp_on = true;
                        }
                }
+               if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
+                       atombios_dig_transmitter_setup(encoder,
+                                                     
ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0);
                /* enable the transmitter */
                atombios_dig_transmitter_setup(encoder,
ATOM_TRANSMITTER_ACTION_ENABLE, 0, 0);
                if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) &&
connector) {
@@ -1690,9 +1693,6 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder,
int mode)
                        if (ASIC_IS_DCE4(rdev))
                                atombios_dig_encoder_setup(encoder,
ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
                }
-               if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
-                       atombios_dig_transmitter_setup(encoder,
-                                                     
ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0);
                if (ext_encoder)
                        atombios_external_encoder_setup(encoder, ext_encoder,
ATOM_ENABLE);
                break;

Or drop the backlight control altogether to see if that helps:
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c
b/drivers/gpu/drm/radeon/atombios_encoders.c
index a7f2ddf..9713078 100644
--- a/drivers/gpu/drm/radeon/atombios_encoders.c
+++ b/drivers/gpu/drm/radeon/atombios_encoders.c
@@ -1690,9 +1690,6 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder,
int mode)
                        if (ASIC_IS_DCE4(rdev))
                                atombios_dig_encoder_setup(encoder,
ATOM_ENCODER_CMD_DP_VIDEO_ON, 0);
                }
-               if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
-                       atombios_dig_transmitter_setup(encoder,
-                                                     
ATOM_TRANSMITTER_ACTION_LCD_BLON, 0, 0);
                if (ext_encoder)
                        atombios_external_encoder_setup(encoder, ext_encoder,
ATOM_ENABLE);
                break;
@@ -1705,10 +1702,6 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder
*encoder, int mode)
                }
                if (ext_encoder)
                        atombios_external_encoder_setup(encoder, ext_encoder,
ATOM_DISABLE);
-               if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT))
-                       atombios_dig_transmitter_setup(encoder,
-                                                     
ATOM_TRANSMITTER_ACTION_LCD_BLOFF, 0, 0);
-
                if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(encoder)) &&
                    connector && !travis_quirk)
                        radeon_dp_set_rx_power_state(connector,
DP_SET_POWER_D3);

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

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

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

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

  parent reply	other threads:[~2014-10-22 21:14 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13  0:01 [Bug 73530] New: Asus U38N: Black screen with Radeon driver in Linux 3.10, 3.11 and 3.12 bugzilla-daemon
2014-01-13  0:02 ` [Bug 73530] " bugzilla-daemon
2014-01-13  0:08 ` bugzilla-daemon
2014-01-13  0:09 ` bugzilla-daemon
2014-01-14 15:04 ` bugzilla-daemon
2014-01-14 15:11 ` bugzilla-daemon
2014-01-14 15:12 ` bugzilla-daemon
2014-01-14 15:19 ` bugzilla-daemon
2014-01-15  0:06 ` bugzilla-daemon
2014-01-15  9:04 ` bugzilla-daemon
2014-01-15  9:28 ` bugzilla-daemon
2014-01-15  9:31 ` bugzilla-daemon
2014-01-15 13:50 ` bugzilla-daemon
2014-01-15 13:51 ` bugzilla-daemon
2014-01-15 14:09 ` bugzilla-daemon
2014-01-15 14:15 ` bugzilla-daemon
2014-01-15 15:59 ` bugzilla-daemon
2014-01-15 16:05 ` bugzilla-daemon
2014-01-15 19:05 ` bugzilla-daemon
2014-01-15 19:06 ` bugzilla-daemon
2014-01-15 20:57 ` bugzilla-daemon
2014-01-15 21:03 ` bugzilla-daemon
2014-01-15 21:05 ` bugzilla-daemon
2014-01-15 21:06 ` bugzilla-daemon
2014-01-15 21:08 ` bugzilla-daemon
2014-01-15 21:11 ` bugzilla-daemon
2014-01-15 21:16 ` bugzilla-daemon
2014-01-15 22:10 ` bugzilla-daemon
2014-01-15 22:18 ` bugzilla-daemon
2014-01-15 23:27 ` bugzilla-daemon
2014-01-16  3:14 ` bugzilla-daemon
2014-01-16  8:19 ` bugzilla-daemon
2014-01-16  9:05 ` bugzilla-daemon
2014-01-16  9:33 ` bugzilla-daemon
2014-01-16  9:37 ` bugzilla-daemon
2014-01-16 15:01 ` bugzilla-daemon
2014-01-16 23:02 ` bugzilla-daemon
2014-01-17  0:34 ` bugzilla-daemon
2014-01-17  0:35 ` bugzilla-daemon
2014-01-17  0:35 ` bugzilla-daemon
2014-01-17  8:35 ` bugzilla-daemon
2014-01-17  8:38 ` bugzilla-daemon
2014-01-17 14:41 ` bugzilla-daemon
2014-01-17 16:03 ` bugzilla-daemon
2014-01-17 16:05 ` bugzilla-daemon
2014-01-17 17:41 ` bugzilla-daemon
2014-01-17 22:03 ` bugzilla-daemon
2014-01-22 15:24 ` bugzilla-daemon
2014-01-22 16:15 ` bugzilla-daemon
2014-01-22 16:21 ` bugzilla-daemon
2014-01-25  9:27 ` bugzilla-daemon
2014-01-25 13:25 ` bugzilla-daemon
2014-01-29 22:25 ` bugzilla-daemon
2014-01-30  8:54 ` bugzilla-daemon
2014-01-30 11:44 ` [Bug 73530] Asus U38N: Black screen with Radeon driver in Linux 3.10, 3.11, 3.12, 3.13 bugzilla-daemon
2014-01-30 11:48 ` bugzilla-daemon
2014-01-30 14:47 ` bugzilla-daemon
2014-02-01 11:50 ` bugzilla-daemon
2014-02-01 11:57 ` bugzilla-daemon
2014-02-01 12:00 ` bugzilla-daemon
2014-02-01 12:02 ` bugzilla-daemon
2014-02-03  9:49 ` bugzilla-daemon
2014-02-06  9:43 ` bugzilla-daemon
2014-02-06 10:12 ` [Bug 73530] Asus U38N: Black screen with Radeon driver in Linux bugzilla-daemon
2014-02-17 13:08 ` bugzilla-daemon
2014-02-17 13:09 ` bugzilla-daemon
2014-10-21 15:03 ` bugzilla-daemon
2014-10-22 20:42 ` bugzilla-daemon
2014-10-22 21:14 ` bugzilla-daemon [this message]
2014-10-22 21:29 ` bugzilla-daemon
2014-10-22 21:34 ` bugzilla-daemon
2014-11-06 22:20 ` bugzilla-daemon
2014-11-16 12:14 ` bugzilla-daemon
2014-11-17 16:02 ` bugzilla-daemon
2014-11-17 19:03 ` bugzilla-daemon
2014-11-28  1:28 ` bugzilla-daemon
2014-12-01  2:10 ` bugzilla-daemon
2015-01-13 23:16 ` bugzilla-daemon
2015-05-04  8:44 ` bugzilla-daemon
2015-05-08  0:01 ` bugzilla-daemon
2015-05-08  7:36 ` bugzilla-daemon
2015-05-08 13:47 ` bugzilla-daemon
2015-05-08 14:03 ` bugzilla-daemon
2015-05-10 17:26 ` bugzilla-daemon
2015-05-11 16:09 ` bugzilla-daemon
2015-05-11 17:10 ` bugzilla-daemon
2015-05-11 17:29 ` bugzilla-daemon
2015-05-11 17:44 ` bugzilla-daemon
2015-05-11 17:59 ` bugzilla-daemon
2015-05-11 18:03 ` bugzilla-daemon
2015-05-12 17:17 ` bugzilla-daemon
2015-05-14 13:33 ` bugzilla-daemon
2015-05-14 15:37 ` bugzilla-daemon
2015-05-14 15:59 ` bugzilla-daemon
2015-05-14 16:15 ` bugzilla-daemon
2015-05-14 16:22 ` bugzilla-daemon
2015-05-14 17:36 ` bugzilla-daemon
2015-05-14 18:34 ` bugzilla-daemon
2015-05-14 19:10 ` bugzilla-daemon
2015-05-14 19:45 ` bugzilla-daemon
2015-05-14 20:01 ` bugzilla-daemon
2015-05-14 20:40 ` bugzilla-daemon
2015-05-14 23:50 ` bugzilla-daemon
2015-05-15  1:04 ` bugzilla-daemon
2015-05-15 14:16 ` bugzilla-daemon
2015-05-15 14:28 ` bugzilla-daemon
2015-05-15 20:16 ` bugzilla-daemon
2015-05-15 20:22 ` bugzilla-daemon
2015-05-16 15:40 ` bugzilla-daemon
2015-05-16 15:48 ` bugzilla-daemon
2015-05-18 21:44 ` bugzilla-daemon
2015-05-19 18:45 ` bugzilla-daemon
2015-05-19 19:05 ` bugzilla-daemon
2015-07-15  8:02 ` bugzilla-daemon
2015-08-06  9:24 ` bugzilla-daemon
2015-08-09  6:15 ` bugzilla-daemon
2015-08-10  2:41 ` bugzilla-daemon
2015-08-10 13:47 ` bugzilla-daemon
2015-08-12  1:53 ` bugzilla-daemon
2015-08-12 13:17 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-73530-502-cMjPFgcpMW@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.