[RFC PATCH 144/162] drm/i915: Reset blitter context when unpark engine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Venkata Ramana Nayana <venkata.ramana.nayana@xxxxxxxxx>

We are only doing it now for kernel_context. We also need to do for the
copy engine  blitter context.

Signed-off-by: Venkata Ramana Nayana <venkata.ramana.nayana@xxxxxxxxx>
---
 drivers/gpu/drm/i915/gt/intel_engine_pm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_engine_pm.c b/drivers/gpu/drm/i915/gt/intel_engine_pm.c
index 1b2009b4dcb7..69c8ea70d1e8 100644
--- a/drivers/gpu/drm/i915/gt/intel_engine_pm.c
+++ b/drivers/gpu/drm/i915/gt/intel_engine_pm.c
@@ -66,6 +66,11 @@ static int __engine_unpark(struct intel_wakeref *wf)
 		ce->ops->reset(ce);
 	}
 
+	if (engine->class == COPY_ENGINE_CLASS) {
+		ce = engine->blitter_context;
+		ce->ops->reset(ce);
+	}
+
 	if (engine->unpark)
 		engine->unpark(engine);
 
-- 
2.26.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux