Document Linux's memory barriers
In-Reply-To: <[email protected]>
Quoted 1 line · David Howells
The attached patch documents the Linux kernel's memory barriers.
References:
AMD64 Architecture Programmer's Manual Volume 2: System Programming
Chapter 7.1: Memory-Access Ordering
Chapter 7.4: Buffering and Combining Memory Writes
IA-32 Intel Architecture Software Developer’s Manual, Volume 3:
System Programming Guide
Chapter 7.1: Locked Atomic Operations
Chapter 7.2: Memory Ordering
Chapter 7.4: Serializing Instructions
Signature · 2 lines
Chuck "Penguins don't come from next door, they come from the Antarctic!"
From: Chuck Ebbert <[email protected]>
Date: Tue, 7 Mar 2006 18:17:19 -0500
Quoted 7 lines
In-Reply-To: <[email protected]>
Quoted 1 line · David Howells
The attached patch documents the Linux kernel's memory barriers.
References:
Here are some good ones for Sparc64:
The SPARC Architecture Manual, Version 9
Chapter 8: Memory Models
Appendix D: Formal Specification of the Memory Models Appendix J: Programming with the Memory Models
UltraSPARC Programmer Reference Manual
Chapter 5: Memory Accesses and Cacheability
Chapter 15: Sparc-V9 Memory Models
UltraSPARC III Cu User's Manual
Chapter 9: Memory Models
UltraSPARC IIIi Processor User's Manual
Chapter 8: Memory Models
UltraSPARC Architecture 2005
Chapter 9: Memory
Appendix D: Formal Specifications of the Memory Models
UltraSPARC T1 Supplment to the UltraSPARC Architecture 2005
Chapter 8: Memory Models
Appendix F: Caches and Cache Coherency
Quoted 8 lines
Quoted 1 line
The attached patch documents the Linux kernel's memory barriers.
References:
AMD64 Architecture Programmer's Manual Volume 2: System Programming
Chapter 7.1: Memory-Access Ordering
Chapter 7.4: Buffering and Combining Memory Writes
Quoted 5 lines
IA-32 Intel Architecture Software Developer’s Manual, Volume 3:
System Programming Guide
Chapter 7.1: Locked Atomic Operations
Chapter 7.2: Memory Ordering
Chapter 7.4: Serializing Instructions
Do you guys reckon it might be worthwhile adding Sparc's sequential consistency, TSO, RMO and PSO models, although I think only RMO is used in the Linux kernel? References can be found for example in:
Solaris Internals, Core Kernel Architecture, p63-68:
Chapter 3.3: Hardware Considerations for Locks and
Synchronization
Unix Systems for Modern Architectures, Symmetric Multiprocessing and Caching for Kernel Programmers:
Chapter 13 : Other Memory Models
Or is DaveM the only one fiddling with Sparc memory barriers implementation?
Regards,
Roberto Nibali, ratz
Signature · 1 line
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc