linux_dsm_epyc7002/arch/tile/lib
Peter Zijlstra 726328d92a locking/spinlock, arch: Update and fix spin_unlock_wait() implementations
This patch updates/fixes all spin_unlock_wait() implementations.

The update is in semantics; where it previously was only a control
dependency, we now upgrade to a full load-acquire to match the
store-release from the spin_unlock() we waited on. This ensures that
when spin_unlock_wait() returns, we're guaranteed to observe the full
critical section we waited on.

This fixes a number of spin_unlock_wait() users that (not
unreasonably) rely on this.

I also fixed a number of ticket lock versions to only wait on the
current lock holder, instead of for a full unlock, as this is
sufficient.

Furthermore; again for ticket locks; I added an smp_rmb() in between
the initial ticket load and the spin loop testing the current value
because I could not convince myself the address dependency is
sufficient, esp. if the loads are of different sizes.

I'm more than happy to remove this smp_rmb() again if people are
certain the address dependency does indeed work as expected.

Note: PPC32 will be fixed independently

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: chris@zankel.net
Cc: cmetcalf@mellanox.com
Cc: davem@davemloft.net
Cc: dhowells@redhat.com
Cc: james.hogan@imgtec.com
Cc: jejb@parisc-linux.org
Cc: linux@armlinux.org.uk
Cc: mpe@ellerman.id.au
Cc: ralf@linux-mips.org
Cc: realmz6@gmail.com
Cc: rkuo@codeaurora.org
Cc: rth@twiddle.net
Cc: schwidefsky@de.ibm.com
Cc: tony.luck@intel.com
Cc: vgupta@synopsys.com
Cc: ysato@users.sourceforge.jp
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-06-14 11:55:15 +02:00
..
atomic_32.c tile: Provide atomic_{or,xor,and} 2015-07-27 14:06:24 +02:00
atomic_asm_32.S tile: Provide atomic_{or,xor,and} 2015-07-27 14:06:24 +02:00
cacheflush.c tile: support FRAME_POINTER 2013-09-03 14:52:09 -04:00
checksum.c arch/tile: break out the "csum a long" function to <asm/checksum.h> 2012-07-11 16:04:57 -04:00
cpumask.c tile: export a handful of symbols appropriately 2013-02-08 13:20:36 -05:00
delay.c arch/tile: fix __ndelay etc to work better 2011-03-01 16:20:04 -05:00
exports.c tile: improve stack backtrace 2015-05-11 11:22:40 -04:00
Makefile tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memchr_32.c arch/tile: fix memchr() not to dereference memory for zero length 2010-11-24 13:57:42 -05:00
memchr_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
memcpy_32.S tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memcpy_64.c tile: support FRAME_POINTER 2013-09-03 14:52:09 -04:00
memcpy_user_64.c modpost: work correctly with tile coldtext sections 2015-07-08 18:53:49 -04:00
memmove.c arch/tile: minor whitespace/naming changes for string support files 2010-10-15 15:38:54 -04:00
memset_32.c tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memset_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
spinlock_32.c locking/spinlock, arch: Update and fix spin_unlock_wait() implementations 2016-06-14 11:55:15 +02:00
spinlock_64.c locking/spinlock, arch: Update and fix spin_unlock_wait() implementations 2016-06-14 11:55:15 +02:00
spinlock_common.h arch/tile: fix bug in delay_backoff() 2012-04-02 12:13:15 -04:00
strchr_32.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strchr_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
string-endian.h tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strlen_32.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strlen_64.c arch/tile: support building big-endian kernel 2012-05-25 12:48:22 -04:00
strnlen_32.c tile: optimize strnlen using SIMD instructions 2013-08-01 20:08:51 -04:00
strnlen_64.c tile: optimize strnlen using SIMD instructions 2013-08-01 20:08:51 -04:00
uaccess.c Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2013-04-30 17:04:09 -07:00
usercopy_32.S tile: add <asm/word-at-a-time.h> and enable support functions 2015-04-30 15:23:37 -04:00
usercopy_64.S tile: add <asm/word-at-a-time.h> and enable support functions 2015-04-30 15:23:37 -04:00