]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Use HW supported number of context ID bits
authorSanath Kumar <sanath.s.kumar@oracle.com>
Thu, 11 Aug 2016 23:01:31 +0000 (18:01 -0500)
committerAllen Pais <allen.pais@oracle.com>
Thu, 15 Sep 2016 06:54:50 +0000 (12:24 +0530)
commit2632c96530cacaea51f987a91922ea9fd1d7017b
tree1c918fc6e10053d6849c4144518a4dfc66c1171a
parenta08c0fb5b8e3edc0b205f97518e5b3d629e3ebca
sparc64: Use HW supported number of context ID bits

Orabug: 24449941

Number of context IDs supported by the hardware
is reported via machine descriptor for sun4v
systems. For systems > T3, 16 bits are used
to represent context ID in the HW. For these
systems the context ID wrap around happens if
there are more that 65536 processes running
simultaneously. For systems older than that
13 bits are used and the context ID wraps around
if there are 8192 processes running simultaneously.

Reviewed-by: Babu Moger <babu.moger@oracle.com>
Acked-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Sanath Kumar <sanath.s.kumar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/mdesc.h
arch/sparc/include/asm/mmu_64.h
arch/sparc/include/asm/mmu_context_64.h
arch/sparc/kernel/mdesc.c
arch/sparc/mm/init_64.c