[Intel-gfx] [PATCH 7/9] drm/i915/dsb: Wait for DSB to idle after disabling it
Ville Syrjala
ville.syrjala at linux.intel.com
Wed Jan 29 18:20:32 UTC 2020
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
In case DSB was busy before we started it we try to disable it.
Let's try to wait for it to become idle.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_dsb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_dsb.c b/drivers/gpu/drm/i915/display/intel_dsb.c
index 53759bf7a451..45acfd91ee74 100644
--- a/drivers/gpu/drm/i915/display/intel_dsb.c
+++ b/drivers/gpu/drm/i915/display/intel_dsb.c
@@ -300,4 +300,7 @@ void intel_dsb_commit(struct intel_dsb *dsb)
dsb->free_pos = 0;
dsb->ins_start_offset = 0;
intel_de_write(dev_priv, DSB_CTRL(pipe, dsb->id), 0);
+
+ if (wait_for(!is_dsb_busy(dsb), 1))
+ DRM_ERROR("Timed out waiting for DSB idle.\n");
}
--
2.24.1
More information about the Intel-gfx
mailing list