mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 08:31:39 +00:00
drm/i915/dp: Wait for PP_CONTROL to take effect.
This patch fixes the black screen bug on Dell e6510, by adding two delays to give the eDP panel time to turn on before we continue with the next write. 300ms is rather arbitray and a rather long sleep, we need to find a way of refining this value. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29278 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
e61cb0d5fd
commit
27d64339a8
@ -784,6 +784,11 @@ static bool ironlake_edp_panel_on (struct drm_device *dev)
|
|||||||
pp |= POWER_TARGET_ON;
|
pp |= POWER_TARGET_ON;
|
||||||
I915_WRITE(PCH_PP_CONTROL, pp);
|
I915_WRITE(PCH_PP_CONTROL, pp);
|
||||||
|
|
||||||
|
/* Ouch. We need to wait here for some panels, like Dell e6510
|
||||||
|
* https://bugs.freedesktop.org/show_bug.cgi?id=29278i
|
||||||
|
*/
|
||||||
|
msleep(300);
|
||||||
|
|
||||||
if (wait_for(I915_READ(PCH_PP_STATUS) & PP_ON, 5000))
|
if (wait_for(I915_READ(PCH_PP_STATUS) & PP_ON, 5000))
|
||||||
DRM_ERROR("panel on wait timed out: 0x%08x\n",
|
DRM_ERROR("panel on wait timed out: 0x%08x\n",
|
||||||
I915_READ(PCH_PP_STATUS));
|
I915_READ(PCH_PP_STATUS));
|
||||||
@ -819,6 +824,11 @@ static void ironlake_edp_panel_off (struct drm_device *dev)
|
|||||||
pp |= PANEL_POWER_RESET; /* restore panel reset bit */
|
pp |= PANEL_POWER_RESET; /* restore panel reset bit */
|
||||||
I915_WRITE(PCH_PP_CONTROL, pp);
|
I915_WRITE(PCH_PP_CONTROL, pp);
|
||||||
POSTING_READ(PCH_PP_CONTROL);
|
POSTING_READ(PCH_PP_CONTROL);
|
||||||
|
|
||||||
|
/* Ouch. We need to wait here for some panels, like Dell e6510
|
||||||
|
* https://bugs.freedesktop.org/show_bug.cgi?id=29278i
|
||||||
|
*/
|
||||||
|
msleep(300);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ironlake_edp_panel_vdd_on(struct drm_device *dev)
|
static void ironlake_edp_panel_vdd_on(struct drm_device *dev)
|
||||||
|
Loading…
Reference in New Issue
Block a user