]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Increase the max granular size
authorTirumalesh Chalamarla <tchalamarla@cavium.com>
Tue, 22 Sep 2015 17:59:48 +0000 (19:59 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Oct 2015 19:09:17 +0000 (19:09 +0000)
commit8f8f3bf665c4e70009b40d1c8bcda6f33dedb2fd
tree6fd24b7c6fa67a31225a1528b0e2b8ee11b1bbd0
parent9e497f3a257e2662060b0a30b2d58b8959d52382
arm64: Increase the max granular size

Increase the standard cacheline size to avoid having locks in the same
cacheline.

Cavium's ThunderX core implements cache lines of 128 byte size. With
current granulare size of 64 bytes (L1_CACHE_SHIFT=6) two locks could
share the same cache line leading a performance degradation.
Increasing the size fixes that.

Increasing the size has no negative impact to cache invalidation on
systems with a smaller cache line. There is an impact on memory usage,
but that's not too important for arm64 use cases.

Signed-off-by: Tirumalesh Chalamarla <tchalamarla@cavium.com>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cache.h