Re: [PATCH v2] sata_sil24: Use memory barriers before issuing commands

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Catalin Marinas
Date: Friday, June 11, 2010 - 4:04 am

On Fri, 2010-06-11 at 11:11 +0100, Nick Piggin wrote:
[...]

On the ARM implementation we are safe with regards to spinlocks/mutexes
vs. IO accesses, no weird ordering issues here (if there would be, I
agree that it would need fixing).


So if that's the API for the above case and we are strictly referring to
the sata_sil24 patch I sent - shouldn't we just add wmb() in the driver
between the write to the DMA buffer and the writel() to start the DMA
transfer? Do we need to move the wmb() to the writel() macro?

-- 
Catalin

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

Messages in current thread:
Re: [PATCH v2] sata_sil24: Use memory barriers before issu ..., Catalin Marinas, (Fri Jun 11, 4:04 am)