Commit d5dc861b authored by Toshi Kani's avatar Toshi Kani Committed by Thomas Gleixner

x86/mm/pat: Add comments to cachemode translation tables

Add comments to the cachemode translation tables to clarify that
the default values are set as minimal supported mode, which are
necessary to handle WC and WT fallback to UC- when they are not
enabled.
Signed-off-by: default avatarToshi Kani <toshi.kani@hp.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1437588371-28223-1-git-send-email-toshi.kani@hp.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 4c73e892
...@@ -30,8 +30,11 @@ ...@@ -30,8 +30,11 @@
/* /*
* Tables translating between page_cache_type_t and pte encoding. * Tables translating between page_cache_type_t and pte encoding.
* *
* Minimal supported modes are defined statically, they are modified * The default values are defined statically as minimal supported mode;
* during bootup if more supported cache modes are available. * WC and WT fall back to UC-. pat_init() updates these values to support
* more cache modes, WC and WT, when it is safe to do so. See pat_init()
* for the details. Note, __early_ioremap() used during early boot-time
* takes pgprot_t (pte encoding) and does not use these tables.
* *
* Index into __cachemode2pte_tbl[] is the cachemode. * Index into __cachemode2pte_tbl[] is the cachemode.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment