aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/x86/pat.txt
diff options
context:
space:
mode:
authorToshi Kani <toshi.kani@hp.com>2015-06-04 12:55:20 -0400
committerIngo Molnar <mingo@kernel.org>2015-06-07 09:29:00 -0400
commit623dffb2a2e059e1ace45b59b3ff21c66c419614 (patch)
treee2f2ad6f700a4c0efc4da65a02e0660a41620124 /Documentation/x86/pat.txt
parent35a5a10411d87e24b46a7a9dda8d08ef9961b783 (diff)
x86/mm/pat: Add set_memory_wt() for Write-Through type
Now that reserve_ram_pages_type() accepts the WT type, add set_memory_wt(), set_memory_array_wt() and set_pages_array_wt() in order to be able to set memory to Write-Through page cache mode. Also, extend ioremap_change_attr() to accept the WT type. Signed-off-by: Toshi Kani <toshi.kani@hp.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Elliott@hp.com Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luis R. Rodriguez <mcgrof@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: arnd@arndb.de Cc: hch@lst.de Cc: hmh@hmh.eng.br Cc: jgross@suse.com Cc: konrad.wilk@oracle.com Cc: linux-mm <linux-mm@kvack.org> Cc: linux-nvdimm@lists.01.org Cc: stefan.bader@canonical.com Cc: yigal@plexistor.com Link: http://lkml.kernel.org/r/1433436928-31903-13-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation/x86/pat.txt')
-rw-r--r--Documentation/x86/pat.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/x86/pat.txt b/Documentation/x86/pat.txt
index db0de6cfc351..54944c71b819 100644
--- a/Documentation/x86/pat.txt
+++ b/Documentation/x86/pat.txt
@@ -48,6 +48,9 @@ set_memory_uc | UC- | -- | -- |
48set_memory_wc | WC | -- | -- | 48set_memory_wc | WC | -- | -- |
49 set_memory_wb | | | | 49 set_memory_wb | | | |
50 | | | | 50 | | | |
51set_memory_wt | WT | -- | -- |
52 set_memory_wb | | | |
53 | | | |
51pci sysfs resource | -- | -- | UC- | 54pci sysfs resource | -- | -- | UC- |
52 | | | | 55 | | | |
53pci sysfs resource_wc | -- | -- | WC | 56pci sysfs resource_wc | -- | -- | WC |
@@ -150,8 +153,8 @@ can be more restrictive, in case of any existing aliasing for that address.
150For example: If there is an existing uncached mapping, a new ioremap_wc can 153For example: If there is an existing uncached mapping, a new ioremap_wc can
151return uncached mapping in place of write-combine requested. 154return uncached mapping in place of write-combine requested.
152 155
153set_memory_[uc|wc] and set_memory_wb should be used in pairs, where driver will 156set_memory_[uc|wc|wt] and set_memory_wb should be used in pairs, where driver
154first make a region uc or wc and switch it back to wb after use. 157will first make a region uc, wc or wt and switch it back to wb after use.
155 158
156Over time writes to /proc/mtrr will be deprecated in favor of using PAT based 159Over time writes to /proc/mtrr will be deprecated in favor of using PAT based
157interfaces. Users writing to /proc/mtrr are suggested to use above interfaces. 160interfaces. Users writing to /proc/mtrr are suggested to use above interfaces.
@@ -159,7 +162,7 @@ interfaces. Users writing to /proc/mtrr are suggested to use above interfaces.
159Drivers should use ioremap_[uc|wc] to access PCI BARs with [uc|wc] access 162Drivers should use ioremap_[uc|wc] to access PCI BARs with [uc|wc] access
160types. 163types.
161 164
162Drivers should use set_memory_[uc|wc] to set access type for RAM ranges. 165Drivers should use set_memory_[uc|wc|wt] to set access type for RAM ranges.
163 166
164 167
165PAT debugging 168PAT debugging