diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-05-02 05:40:22 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 04:55:10 -0400 |
commit | 12031a624af7816ec7660b82be648aa3703b4ebe (patch) | |
tree | 254122ef3adebcfa51f7ffa1a7227ff1baee1d54 /Documentation | |
parent | f5098d62c1d1cede8ff23d01bbf50a421f110562 (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 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 44427607b7c6..2000977af776 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -610,8 +610,17 @@ and is between 256 and 4096 characters. It is defined in the file | |||
610 | that could hold holes aka. UC entries. | 610 | that could hold holes aka. UC entries. |
611 | 611 | ||
612 | mtrr_gran_size=nn[KMG] [X86] | 612 | mtrr_gran_size=nn[KMG] [X86] |
613 | used for mtrr cleanup. It is granity of mtrr block. | 613 | Used for mtrr cleanup. It is granularity of mtrr block. |
614 | Big value could prevent small alignment use up MTRRs. | 614 | Default is 1. |
615 | Large value could prevent small alignment from | ||
616 | using up MTRRs. | ||
617 | |||
618 | mtrr_spare_reg_nr=n [X86] | ||
619 | Format: <integer> | ||
620 | Range: 0,7 : spare reg number | ||
621 | Default : 1 | ||
622 | Used for mtrr cleanup. It is spare mtrr entries number. | ||
623 | Set to 2 or more if your graphical card needs more. | ||
615 | 624 | ||
616 | disable_mtrr_trim [X86, Intel and AMD only] | 625 | disable_mtrr_trim [X86, Intel and AMD only] |
617 | By default the kernel will trim any uncacheable | 626 | By default the kernel will trim any uncacheable |