OSDN Git Service

arm64: mm: Allocate ASIDs in pairs
authorWill Deacon <will.deacon@arm.com>
Thu, 10 Aug 2017 13:10:28 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:22:47 +0000 (20:22 +0100)
commita8bad38cff23eaed7b962c0bd7b0553fb31dec15
tree94e5f4c304ea458adf3248c646e54c0ff70a6b4c
parent00ff7de671f87cf7b330b563c16ee6fb8f5e3cab
arm64: mm: Allocate ASIDs in pairs

Commit 0c8ea531b774 upstream.

In preparation for separate kernel/user ASIDs, allocate them in pairs
for each mm_struct. The bottom bit distinguishes the two: if it is set,
then the ASID will map only userspace.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/mmu.h
arch/arm64/mm/context.c