public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* About CTX_CONTEXT_CONTROL initialization in populate_lr_context() intel_lrc.c
@ 2015-02-09 15:05 Wang, Zhi A
  2015-02-10 13:27 ` Wang, Zhi A
  2015-02-10 16:25 ` Dave Gordon
  0 siblings, 2 replies; 10+ messages in thread
From: Wang, Zhi A @ 2015-02-09 15:05 UTC (permalink / raw)
  To: Intel-gfx@lists.freedesktop.org

Hi Gurus:
  Forgive my junior HW knowledge, I just found that in execlist context initialization function populate_lr_context(), this line:
  
          reg_state[CTX_CONTEXT_CONTROL+1] =
                          _MASKED_BIT_ENABLE((1<<3) | MI_RESTORE_INHIBIT);
  
It seems the "Inhibit Synchronous Context Switch" bit is not set here, so when HW is trying to wait some events, e.g. semaphore, according to Bspec, per my basic understanding, it will switch out current context with some reason bit set. Here comes my question, I think if this situation happen, should i915 remember this context and try to re-schedule it in a proper time, e.g. before submitting a new context until the context_completed bit in CSB is set? I don't find a register that will remember the context switched out by waiting event, so I think it should be i915 to handle this situation or just set "Inhibit Synchronous Context Switch" bit here?... 

Thanks,
Zhi.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-02-11  0:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 15:05 About CTX_CONTEXT_CONTROL initialization in populate_lr_context() intel_lrc.c Wang, Zhi A
2015-02-10 13:27 ` Wang, Zhi A
2015-02-10 14:17   ` Daniel, Thomas
2015-02-10 14:43     ` Wang, Zhi A
2015-02-10 14:55       ` Daniel, Thomas
2015-02-10 14:57         ` Wang, Zhi A
2015-02-10 16:25 ` Dave Gordon
2015-02-10 22:18   ` Daniel Vetter
2015-02-11  0:18     ` Wang, Zhi A
2015-02-11  0:19     ` Wang, Zhi A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox