android_kernel_xiaomi_sm8350/arch/x86
Andi Kleen f5c24a7fd0 x86: don't use large pages to map the first 2/4MB of memory
Intel recommends to not use large pages for the first 1MB
of the physical memory because there are fixed size MTRRs there
which cause splitups in the TLBs.

On AMD doing so is also a good idea.

The implementation is a little different between 32bit and 64bit.
On 32bit I just taught the initial page table set up about this
because it was very simple to do. This also has the advantage
that the risk of a prefetch ever seeing the page even
if it only exists for a short time is minimized.

On 64bit that is not quite possible, so use set_memory_4k() a little
later (in check_bugs) instead.

Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: andreas.herrmann3@amd.com
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-17 17:41:30 +02:00
..
boot
configs
crypto
ia32 x86: sys32_execve PT_DTRACE 2008-04-17 17:41:13 +02:00
kernel x86: don't use large pages to map the first 2/4MB of memory 2008-04-17 17:41:30 +02:00
kvm
lguest x86: replace remaining __FUNCTION__ occurances 2008-04-17 17:40:57 +02:00
lib x86: coding style fixes to arch/x86/lib/usercopy_32.c 2008-04-17 17:40:51 +02:00
mach-default
mach-es7000
mach-generic
mach-rdc321x
mach-visws
mach-voyager x86: move stack_start to smp.h 2008-04-17 17:41:02 +02:00
math-emu i386: arch/x86/math-emu/reg_ld_str.c: fix warning 2008-04-17 17:41:21 +02:00
mm x86: don't use large pages to map the first 2/4MB of memory 2008-04-17 17:41:30 +02:00
oprofile
pci x86: PAT bug fix for attribute type check after reserve_memtype 2008-04-17 17:41:20 +02:00
power
vdso x86: include mach_apic.h in smpboot_64.c and smpboot.c 2008-04-17 17:41:02 +02:00
video
xen xen: use iret instruction all the time 2008-04-17 17:40:51 +02:00
Kconfig x86: memtest bootparam 2008-04-17 17:41:21 +02:00
Kconfig.cpu
Kconfig.debug
Makefile x86: add subarch support (for headers) to x86_64 2008-04-17 17:41:01 +02:00
Makefile_32.cpu