public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* About the wait_for() macro in intel_drv.h
@ 2015-07-15 14:07 Zhi Wang
  2015-07-21 12:46 ` Wang, Zhi A
  0 siblings, 1 reply; 2+ messages in thread
From: Zhi Wang @ 2015-07-15 14:07 UTC (permalink / raw)
  To: intel-gfx@lists.freedesktop.org

Hi Gurus:
    Recently we found that the wait_for() marco in intel_drv.h looks
will cause dead lock. wait_for() macro will try to wait jiffies change
in a condition check loop, but when local cpu interrupt is disabled, it
seems the jiffies will never change under a uni-processor environment.
And in forcewake_get/put path, the local cpu irq will always be disabled
by a spin_lock_irqsave() in genX_read() and some genX_write(), So if the
change of HW register (e.g. forcewake ack) turns slow at this time,
there should be a dead lock here I think?

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

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

end of thread, other threads:[~2015-07-21 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-15 14:07 About the wait_for() macro in intel_drv.h Zhi Wang
2015-07-21 12:46 ` 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