public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Toshi Kani <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org,
	tglx@linutronix.de, hpa@zytor.com, toshi.kani@hp.com,
	jbeulich@suse.com, mingo@kernel.org, bp@suse.de
Subject: [tip:x86/mm] x86/mm/pat: Add comments to cachemode translation tables
Date: Thu, 20 Aug 2015 12:30:36 -0700	[thread overview]
Message-ID: <tip-d5dc861bd601b546ae6b36af54485142cca36a5e@git.kernel.org> (raw)
In-Reply-To: <1437588371-28223-1-git-send-email-toshi.kani@hp.com>

Commit-ID:  d5dc861bd601b546ae6b36af54485142cca36a5e
Gitweb:     http://git.kernel.org/tip/d5dc861bd601b546ae6b36af54485142cca36a5e
Author:     Toshi Kani <toshi.kani@hp.com>
AuthorDate: Wed, 22 Jul 2015 12:06:11 -0600
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 20 Aug 2015 21:26:12 +0200

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: Toshi 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.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/x86/mm/init.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 8533b46..1d8a83d 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -30,8 +30,11 @@
 /*
  * Tables translating between page_cache_type_t and pte encoding.
  *
- * Minimal supported modes are defined statically, they are modified
- * during bootup if more supported cache modes are available.
+ * The default values are defined statically as minimal supported mode;
+ * 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.
  *

      parent reply	other threads:[~2015-08-20 19:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 18:06 [PATCH] x86, pat: Add comments to cachemode translation tables Toshi Kani
2015-07-23  6:42 ` Jan Beulich
2015-07-23 14:27   ` Toshi Kani
2015-07-23 14:50     ` Jan Beulich
2015-07-23 15:25       ` Toshi Kani
2015-07-23 15:36         ` Jan Beulich
2015-07-23 15:38           ` Toshi Kani
2015-08-02 10:07             ` Thomas Gleixner
2015-08-03 15:08               ` Toshi Kani
2015-08-20 19:30 ` tip-bot for Toshi Kani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-d5dc861bd601b546ae6b36af54485142cca36a5e@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=bp@suse.de \
    --cc=hpa@zytor.com \
    --cc=jbeulich@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=toshi.kani@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox