]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: PAT infrastructure patch
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Wed, 19 Mar 2008 00:00:14 +0000 (17:00 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:19 +0000 (17:41 +0200)
commit2e5d9c857d4e6c9e7b7d8c8c86a68a7842d213d6
tree6c90c0f9f38ff85e2f42ddc0f4ef0291cdd47d38
parentd27554d874c7eeb14c8bfecdc39c3a8618cd8d32
x86: PAT infrastructure patch

Sets up pat_init() infrastructure.

PAT MSR has following setting.
PAT
|PCD
||PWT
|||
000 WB _PAGE_CACHE_WB
001 WC _PAGE_CACHE_WC
010 UC- _PAGE_CACHE_UC_MINUS
011 UC _PAGE_CACHE_UC

We are effectively changing WT from boot time setting to WC.
UC_MINUS is used to provide backward compatibility to existing /dev/mem
users(X).

reserve_memtype and free_memtype are new interfaces for maintaining alias-free
mapping. It is currently implemented in a simple way with a linked list and
not optimized. reserve and free tracks the effective memory type, as a result
of PAT and MTRR setting rather than what is actually requested in PAT.

pat_init piggy backs on mtrr_init as the rules for setting both pat and mtrr
are same.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig
arch/x86/kernel/cpu/mtrr/generic.c
arch/x86/mm/Makefile
arch/x86/mm/pageattr.c
arch/x86/mm/pat.c [new file with mode: 0644]
include/asm-x86/cpufeature.h
include/asm-x86/msr-index.h
include/asm-x86/mtrr.h
include/asm-x86/pat.h [new file with mode: 0644]
include/asm-x86/pgtable.h