All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] drm/i915: reorder setup sequence to have irqs for output setup
@ 2012-09-09  9:00 Daniel Vetter
  2012-09-09  9:00 ` [PATCH 2/8] drm/i915: extract gmbus_wait_hw_status Daniel Vetter
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Daniel Vetter @ 2012-09-09  9:00 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter

Otherwise the new&shiny irq-driven gmbus and dp aux code won't work that
well. Noticed since the dp aux code doesn't have an automatic fallback
with a timeout (since the hw provides for that already).

v2: Simple move drm_irq_install before intel_modeset_gem_init, as
suggested by Ben Widawsky.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/i915_dma.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 2c09900..068b49b 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1325,12 +1325,14 @@ static int i915_load_modeset_init(struct drm_device *dev)
 	if (ret)
 		goto cleanup_gem_stolen;
 
-	intel_modeset_gem_init(dev);
-
 	ret = drm_irq_install(dev);
 	if (ret)
 		goto cleanup_gem;
 
+	/* Important: The output setup functions called by modeset_gem_init need
+	 * working irqs for e.g. gmbus transfers. */
+	intel_modeset_gem_init(dev);
+
 	/* Always safe in the mode setting case. */
 	/* FIXME: do pre/post-mode set stuff in core KMS code */
 	dev->vblank_disable_allowed = 1;
-- 
1.7.11.2

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

end of thread, other threads:[~2012-09-10  2:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-09  9:00 [PATCH 1/8] drm/i915: reorder setup sequence to have irqs for output setup Daniel Vetter
2012-09-09  9:00 ` [PATCH 2/8] drm/i915: extract gmbus_wait_hw_status Daniel Vetter
2012-09-09  9:00 ` [PATCH 3/8] drm/i915: wire up gmbus irq handler Daniel Vetter
2012-09-09  9:00 ` [PATCH 4/8] drm/i915: use the gmbus irq for waits Daniel Vetter
2012-09-10  2:53   ` Daniel Kurtz
2012-09-09  9:00 ` [PATCH 5/8] drm/i915: use gmbus irq to wait for gmbus idle Daniel Vetter
2012-09-09  9:00 ` [PATCH 6/8] drm/i915: only read SDE_IIR when required on ilk/snb Daniel Vetter
2012-09-09  9:00 ` [PATCH 7/8] drm/i915: wire up do aux channel done interrupt Daniel Vetter
2012-09-09  9:00 ` [PATCH 8/8] drm/i915: irq-drive the dp aux communication Daniel Vetter
2012-09-09  9:29   ` [PATCH] " Daniel Vetter
2012-09-09 11:24     ` Chris Wilson
2012-09-09 10:24 ` [PATCH] drm/i915: use _NOTRACE for gmbus/dp aux wait loops Daniel Vetter

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.