Re: [PATCH 2/2] dmaengine i.MX SDMA: protect channel0

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Williams
Date: Tuesday, December 7, 2010 - 4:50 pm

On Mon, Dec 6, 2010 at 2:09 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:

This one is not making sense to me...


In sdma_load_script() what data structure are we protecting at single
threaded init time prior to registering channels?



This sdma_load_context() is called from various ->prep() contexts.
What guarantees are there that we can sleep in these contexts?  At
least ->prep_memcpy() might be called in a atomic context.  I have
been assuming the same for all prep routines across archs.

--
Dan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] dmaengine i.MX SDMA: protect channel0, Sascha Hauer, (Mon Dec 6, 3:09 am)
Re: [PATCH 2/2] dmaengine i.MX SDMA: protect channel0, Dan Williams, (Tue Dec 7, 4:50 pm)
Re: [PATCH 2/2] dmaengine i.MX SDMA: protect channel0, Sascha Hauer, (Thu Dec 9, 7:50 am)