aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel.send@gmail.com>2008-05-02 05:40:22 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 04:55:10 -0400
commit12031a624af7816ec7660b82be648aa3703b4ebe (patch)
tree254122ef3adebcfa51f7ffa1a7227ff1baee1d54 /arch/x86/Kconfig
parentf5098d62c1d1cede8ff23d01bbf50a421f110562 (diff)
x86: mtrr cleanup for converting continuous to discrete - auto detect v4
Loop through mtrr chunk_size and gran_size from 1M to 2G to find out the optimal value so user does not need to add mtrr_chunk_size and mtrr_gran_size to the kernel command line. If optimal value is not found, print out all list to help select less optimal value. Add mtrr_spare_reg_nr= so user could set 2 instead of 1, if the card need more entries. v2: find the one with more spare entries v3: fix hole_basek offset v4: tight the compare between range and range_new loop stop with 4g Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Gabriel C <nix.or.die@googlemail.com> Cc: Mika Fischer <mika.fischer@zoopnet.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r--arch/x86/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f417fe33d852..9e9761504422 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1117,6 +1117,15 @@ config MTRR_SANITIZER_ENABLE_DEFAULT
1117 help 1117 help
1118 Enable mtrr cleanup default value 1118 Enable mtrr cleanup default value
1119 1119
1120config MTRR_SANITIZER_SPARE_REG_NR_DEFAULT
1121 int "MTRR cleanup spare reg num (0-7)"
1122 range 0 7
1123 default "1"
1124 depends on MTRR_SANITIZER
1125 help
1126 mtrr cleanup spare entries default, it can be changed via
1127 mtrr_spare_reg_nr=
1128
1120config X86_PAT 1129config X86_PAT
1121 bool 1130 bool
1122 prompt "x86 PAT support" 1131 prompt "x86 PAT support"