]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8222/1: mvebu: enable strex backoff delay
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Nov 2014 17:43:15 +0000 (18:43 +0100)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:18:20 +0000 (15:18 +0100)
commit72741f17d30ed08eb9eb64711bfd6c7e11ab7841
treed684b02f283a68d4e186119efc8283ea6d4c8f26
parent77e62e1c163fa7af5b2bd6def0b7253448247a06
ARM: 8222/1: mvebu: enable strex backoff delay

commit 995ab5189d1d7264e79e665dfa032a19b3ac646e upstream.

Under extremely rare conditions, in an MPCore node consisting of at
least 3 CPUs, two CPUs trying to perform a STREX to data on the same
shared cache line can enter a livelock situation.

This patch enables the HW mechanism that overcomes the bug. This fixes
the incorrect setup of the STREX backoff delay bit due to a wrong
description in the specification.

Note that enabling the STREX backoff delay mechanism is done by
leaving the bit *cleared*, while the bit was currently being set by
the proc-v7.S code.

[Thomas: adapt to latest mainline, slightly reword the commit log, add
stable markers.]

Fixes: de4901933f6d ("arm: mm: Add support for PJ4B cpu and init routines")
Signed-off-by: Nadav Haklai <nadavh@marvell.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/mm/proc-v7.S