]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/8xx: Don't use page table for linear memory space
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 17 May 2016 07:02:51 +0000 (09:02 +0200)
committerScott Wood <oss@buserror.net>
Sat, 9 Jul 2016 07:02:48 +0000 (02:02 -0500)
commitbb7f380849f8c8722ea383ec5867a79d365d4574
treea0b502202aa6aff0e7f4706af09a26cadb0f4aad
parent6264dbb98ff762d71c65e04ae3b2e632d28a5b84
powerpc/8xx: Don't use page table for linear memory space

Instead of using the first level page table to define mappings for
the linear memory space, we can use direct mapping from the TLB
handling routines. This has several advantages:
* No need to read the tables at each TLB miss
* No issue in 16k pages mode where the 1st level table maps 64 Mbytes

The size of the available linear space is known at system startup.
In order to avoid data access at each TLB miss to know the memory
size, the TLB routine is patched at startup with the proper size

This patch provides a 10%-15% improvment of TLB miss handling for
kernel addresses

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/kernel/head_8xx.S
arch/powerpc/mm/8xx_mmu.c