diff mbox

i915: hotplug events gone wild

Message ID cb0375e11001310349t7e80c265g7c83fc51fb327eb7@mail.gmail.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Andrew Lutomirski Jan. 31, 2010, 11:49 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 0c67924..d0977ea 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1618,7 +1618,7 @@  i915_add_request(struct drm_device *dev, struct
drm_file *file_priv,
 	OUT_RING(MI_USER_INTERRUPT);
 	ADVANCE_LP_RING();

-	DRM_DEBUG_DRIVER("%d\n", seqno);
+	//DRM_DEBUG_DRIVER("%d\n", seqno);

 	request->seqno = seqno;
 	request->emitted_jiffies = jiffies;
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 89a071a..0cda630 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -266,6 +266,7 @@  static void i915_hotplug_work_func(struct work_struct *work)
 		}
 	}
 	/* Just fire off a uevent and let userspace tell us what to do */
+	DRM_DEBUG_DRIVER("i915_hotplug_work_func\n");
 	drm_sysfs_hotplug_event(dev);
 }

@@ -616,8 +617,8 @@  irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
 		    (iir & I915_DISPLAY_PORT_INTERRUPT)) {
 			u32 hotplug_status = I915_READ(PORT_HOTPLUG_STAT);

-			DRM_DEBUG_DRIVER("hotplug event received, stat 0x%08x\n",
-				  hotplug_status);
+			DRM_DEBUG_DRIVER("hotplug event received, stat 0x%08x, mask 0x%08x\n",
+				  hotplug_status, dev_priv->hotplug_supported_mask);
 			if (hotplug_status & dev_priv->hotplug_supported_mask)
 				queue_work(dev_priv->wq,
 					   &dev_priv->hotplug_work);
diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 45da78e..f2040bf 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3759,7 +3759,7 @@  static void intel_gpu_idle_timer(unsigned long arg)
 	struct drm_device *dev = (struct drm_device *)arg;
 	drm_i915_private_t *dev_priv = dev->dev_private;

-	DRM_DEBUG_DRIVER("idle timer fired, downclocking\n");
+	//DRM_DEBUG_DRIVER("idle timer fired, downclocking\n");

 	dev_priv->busy = false;

@@ -3774,7 +3774,7 @@  static void intel_crtc_idle_timer(unsigned long arg)
 	struct drm_crtc *crtc = &intel_crtc->base;
 	drm_i915_private_t *dev_priv = crtc->dev->dev_private;

-	DRM_DEBUG_DRIVER("idle timer fired, downclocking\n");
+	//DRM_DEBUG_DRIVER("idle timer fired, downclocking\n");

 	intel_crtc->busy = false;
_______________________________________________