David Howells writes: > On NUMA PowerPC, should mmiowb() be a SYNC or an EIEIO instruction then? Those > do inter-component synchronisation. We actually have quite heavy synchronization in read*/write* on PPC, and mmiowb can safely be a no-op. It would be nice to be able to have lighter-weight synchronization, but I'm sure we would see lots of subtle driver bugs cropping up if we did. write* do a full memory barrier (sync) after the store, and read* explicitly wait for the data to come back before. If you ask me, the need for mmiowb on some platforms merely shows that those platforms' implementations of spinlocks and read*/write* are buggy... Paul. - 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: [PATCH] Document Linux's memory barriers [try #2]
- From: Jesse Barnes <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: Linus Torvalds <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- References:
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: Linus Torvalds <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: Alan Cox <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: Alan Cox <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: Alan Cox <[email protected]>
- [PATCH] Document Linux's memory barriers
- From: David Howells <[email protected]>
- [PATCH] Document Linux's memory barriers [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- From: David Howells <[email protected]>
- Re: [PATCH] Document Linux's memory barriers [try #2]
- Prev by Date: Re: [patch 1/4] net: percpufy frequently used vars -- add percpu_counter_mod_bh
- Next by Date: Re: [linux-usb-devel] Re: [PATCH] add support for PANJIT TouchSet USB Touchscreen Device
- Previous by thread: Re: [PATCH] Document Linux's memory barriers [try #2]
- Next by thread: Re: [PATCH] Document Linux's memory barriers [try #2]
- Index(es):