[PATCH] drm/i915: Discard two CRC's for GEN8+ platforms
Mika Kahola
mika.kahola at intel.com
Mon Apr 23 11:42:08 UTC 2018
For some reason the first couple of CRC's may be bonkers for GEN8+
platforms. Let's test if the the third one would be correct and discard
the first two CRC's.
Signed-off-by: Mika Kahola <mika.kahola at intel.com>
---
drivers/gpu/drm/i915/i915_irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 96547e0..2927757 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1728,7 +1728,7 @@ static void display_pipe_crc_irq_handler(struct drm_i915_private *dev_priv,
* don't trust that one either.
*/
if (pipe_crc->skipped <= 0 ||
- (INTEL_GEN(dev_priv) >= 8 && pipe_crc->skipped == 1)) {
+ (INTEL_GEN(dev_priv) >= 8 && pipe_crc->skipped < 2)) {
pipe_crc->skipped++;
spin_unlock(&pipe_crc->lock);
return;
--
2.7.4
More information about the Intel-gfx-trybot
mailing list