We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f373ebe commit 512eadbCopy full SHA for 512eadb
drivers/gpu/drm/i915/gt/intel_ring_submission.c
@@ -230,8 +230,13 @@ static int xcs_resume(struct intel_engine_cs *engine)
230
231
set_pp_dir(engine);
232
233
- /* First wake the ring up to an empty/idle ring */
234
- for ((kt) = ktime_get() + (2 * NSEC_PER_MSEC);
+ /*
+ * First wake the ring up to an empty/idle ring.
235
+ * Use 50ms of delay to let the engine write successfully
236
+ * for all platforms. Experimented with different values and
237
+ * determined that 50ms works best based on testing.
238
+ */
239
+ for ((kt) = ktime_get() + (50 * NSEC_PER_MSEC);
240
ktime_before(ktime_get(), (kt)); cpu_relax()) {
241
/*
242
* In case of resets fails because engine resumes from
0 commit comments