]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: Define the number of bytes for storing the tags in a page
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 31 Jan 2022 16:54:54 +0000 (16:54 +0000)
committerWill Deacon <will@kernel.org>
Tue, 15 Feb 2022 22:53:29 +0000 (22:53 +0000)
commit6ca3fa9ea1b43df6bd541d2b2a6b26dc73bcd6a7
treedc0de96848ca1ced16bef297e43239d96ea511da
parent398891ca82dbb6c72a5b2fc5559c1a1ff3521d42
arm64: mte: Define the number of bytes for storing the tags in a page

Rather than explicitly calculating the number of bytes for a compact tag
storage format corresponding to a page, just add a MTE_PAGE_TAG_STORAGE
macro. With the current MTE implementation of 4 bits per tag, we store
2 tags in a byte.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Luis Machado <luis.machado@linaro.org>
Link: https://lore.kernel.org/r/20220131165456.2160675-4-catalin.marinas@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mte-def.h
arch/arm64/lib/mte.S
arch/arm64/mm/mteswap.c