mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yan Zhao <yan.y.zhao@intel.com>
To: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org
Cc: dave.hansen@linux.intel.com, tglx@linutronix.de,
	mingo@redhat.com, bp@alien8.de, hpa@zytor.com, corbet@lwn.net,
	mcgrof@suse.com, andriy.shevchenko@intel.com,
	kai.huang@intel.com, Yan Zhao <yan.y.zhao@intel.com>,
	Sean Christopherson <seanjc@google.com>
Subject: [PATCH] Documentation: x86: Correct effective memory type for MTRR=WC and PAT=UC-
Date: Mon,  6 Nov 2023 12:53:56 +0800	[thread overview]
Message-ID: <20231106045356.5856-1-yan.y.zhao@intel.com> (raw)

Correct effective memory type for a WC MTRR on a region with a PAT entry
UC- from UC to WC.

As per Intel SDM section "Selecting Memory Types for Pentium III and More
Recent Processor Families", table "Effective Page-Level Memory Types for
Pentium III and More Recent Processor Families",

================  ===============  =====================
MTRR Memory Type  PAT Entry Value  Effective Memory Type
================  ===============  =====================
      WC               UC-                  WC

the effect of a WC MTRR on a region with a PAT entry UC- will be WC.

There's a previous attempt to fix this issue at [1], but not sure why the
patch got lost.

Fixes: 2f9e897353fc ("x86/mm/mtrr, pat: Document Write Combining MTRR type effects on PAT / non-PAT pages").
Link: https://lore.kernel.org/all/1457131501-14855-1-git-send-email-mcgrof@kernel.org [1]
Cc: Sean Christopherson <seanjc@google.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
---
 Documentation/arch/x86/pat.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/arch/x86/pat.rst b/Documentation/arch/x86/pat.rst
index 5d901771016d..414129efa316 100644
--- a/Documentation/arch/x86/pat.rst
+++ b/Documentation/arch/x86/pat.rst
@@ -138,19 +138,19 @@ otherwise not be effective.
   ====  =======  ===  =========================  =====================
   MTRR  Non-PAT  PAT  Linux ioremap value        Effective memory type
   ====  =======  ===  =========================  =====================
         PAT                                        Non-PAT |  PAT
         |PCD                                               |
         ||PWT                                              |
         |||                                                |
   WC    000      WB   _PAGE_CACHE_MODE_WB             WC   |   WC
   WC    001      WC   _PAGE_CACHE_MODE_WC             WC*  |   WC
-  WC    010      UC-  _PAGE_CACHE_MODE_UC_MINUS       WC*  |   UC
+  WC    010      UC-  _PAGE_CACHE_MODE_UC_MINUS       WC*  |   WC
   WC    011      UC   _PAGE_CACHE_MODE_UC             UC   |   UC
   ====  =======  ===  =========================  =====================
 
   (*) denotes implementation defined and is discouraged
 
 .. note:: -- in the above table mean "Not suggested usage for the API". Some
   of the --'s are strictly enforced by the kernel. Some others are not really
   enforced today, but may be enforced in future.
 

base-commit: 1aabbc532413ced293952f8e149ad0a607d6e470
-- 
2.17.1


                 reply	other threads:[~2023-11-06  5:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20231106045356.5856-1-yan.y.zhao@intel.com \
    --to=yan.y.zhao@intel.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kai.huang@intel.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@suse.com \
    --cc=mingo@redhat.com \
    --cc=seanjc@google.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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

all inboxes | Powered by JetHome®