On Thu, 24 Mar 2011 17:38:32 -0700, Keith Packard <kei...@keithp.com> wrote: > On Thu, 24 Mar 2011 19:55:59 +0000, Chris Wilson <ch...@chris-wilson.co.uk> > wrote: > > > - if (W && !in_dbg_master()) msleep(W); \ > > + if (W && !(in_dbg_master() || in_atomic())) msleep(W); \ > > If the MSLEEP macro were ever used, would it need the same fix?
Not yet. There are places where we should be using it though I think, It just requires inspecting each of the callpaths and seeing if we might be called from an atomic modeswitch. > wait_for_atomic is never used, so perhaps the _wait_for macro should > just be renamed wait_for and the W hard-coded to 1. A bit of over-engineering. I want to propose these as part of the core kernel interface and so tried to cover all the bases. But I'm not sure if they are actually clean enough to pass muster nor if anybody else is interested in them. > As a simple fix though, > > Reviewed-by: Keith Packard <kei...@keithp.com> Indeed, a fix should limit itself to the bug described. Every else is an enhancement... -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx