On Fri, May 16, 2014 at 10:57:36AM +0100, Will Deacon wrote: > > AFAIK, to duplicate x86 semantics an outl/inl must spin the CPU until > > it completes at the target, and the CPU must not pipeline outl/inl > > operations: outl(); outl(); produces 1 IOWr TLP, waits for > > completion, then produces another. > > So that's the real question: Do we really need to duplicate x86 semantics > for IO space accesses? If we do, then we need both strongly-ordered memory > *and* a dsb in our accessors. That's not going to be much fun. Yep, that is the real question. It has been over 10 years since I last converted a driver from IO to MMIO - but IIRC the completion timing became a software visible difference. The entire reasons that this funny non-posted outl exists in PCI is to support software compatability. You could take an ISA device and stick it on PCI and the driver timing would be completely unaltered. Linux obviously works on systems where outl is posted, ARM currently, for instance. I've also run on MIPS systems that completely lack the ability to synchronize outl (and I recall having to convert all the drivers to mmio on that system..) Arnd is right though, I doubt anyone cares, using IO space has been discouraged for a decade at least at this point. Jason -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html