Ar Llu, 2006-09-11 am 10:12 +1000, ysgrifennodd Benjamin Herrenschmidt: > - writel/readl are fully synchronous (minus mmiowb for spinlocks) > - we provide __writel/__readl with some barriers with relaxed ordering > between memory and MMIO (though still _precise_ semantics, not arch > specific) I'd rather they were less precise than your later proposal but that reflects the uses I'm considering perhaps. > * Option B: > > - The driver decides at ioremap time wether it wants a fully ordered > mapping or not using That is expensive because writel/readl end up full of if() while at the moment they are often 1 instruction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- References:
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Paul Mackerras <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Jeff Garzik <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: David Miller <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Jesse Barnes <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Alan Cox <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Segher Boessenkool <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Opinion on ordering of writel vs. stores to RAM
- Prev by Date: Re: [RFC] MMIO accessors & barriers documentation
- Next by Date: Re: 2.6.18-rc6-mm1 - x86_64-mm-lockdep-dont-force-framepointer.patch
- Previous by thread: Re: Opinion on ordering of writel vs. stores to RAM
- Next by thread: Re: Opinion on ordering of writel vs. stores to RAM
- Index(es):