kraxel / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
35223b7
From 0971d87045f5052de9f16f3b1aa0dce59f59a060 Mon Sep 17 00:00:00 2001
35223b7
From: Jerome Glisse <jglisse@redhat.com>
35223b7
Date: Thu, 3 May 2012 19:05:40 -0400
35223b7
Subject: [PATCH] drm/radeon: don't mess with hot plug detect for eDP or LVDS
35223b7
 connector
35223b7
35223b7
It seems imac pannel doesn't like whe we change the hot plug setup
35223b7
and then refuse to work. This should fix :
35223b7
https://bugzilla.redhat.com/show_bug.cgi?id=726143
35223b7
35223b7
Signed-off-by: Matthew Garrett <mjg@redhat.com>
35223b7
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
35223b7
---
35223b7
 drivers/gpu/drm/radeon/r600.c |    8 ++++++++
35223b7
 1 files changed, 8 insertions(+), 0 deletions(-)
35223b7
35223b7
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
35223b7
index 4fbc590..5fd0490 100644
35223b7
--- a/drivers/gpu/drm/radeon/r600.c
35223b7
+++ b/drivers/gpu/drm/radeon/r600.c
35223b7
@@ -713,6 +713,14 @@ void r600_hpd_init(struct radeon_device *rdev)
35223b7
 	list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
35223b7
 		struct radeon_connector *radeon_connector = to_radeon_connector(connector);
35223b7
 
35223b7
+		if (connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
35223b7
+		    connector->connector_type == DRM_MODE_CONNECTOR_LVDS) {
35223b7
+			/* don't try to enable HDP on eDP or LVDS help to avoid
35223b7
+			 * issue such as:
35223b7
+			 * https://bugzilla.redhat.com/show_bug.cgi?id=726143
35223b7
+			 */
35223b7
+			continue;
35223b7
+		}
35223b7
 		if (ASIC_IS_DCE3(rdev)) {
35223b7
 			u32 tmp = DC_HPDx_CONNECTION_TIMER(0x9c4) | DC_HPDx_RX_INT_TIMER(0xfa);
35223b7
 			if (ASIC_IS_DCE32(rdev))
35223b7
-- 
35223b7
1.7.7.6
35223b7