diff options
author | Toshi Kani <toshi.kani@hp.com> | 2015-06-04 12:55:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-06-07 09:29:00 -0400 |
commit | 623dffb2a2e059e1ace45b59b3ff21c66c419614 (patch) | |
tree | e2f2ad6f700a4c0efc4da65a02e0660a41620124 /Documentation/x86/pat.txt | |
parent | 35a5a10411d87e24b46a7a9dda8d08ef9961b783 (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.txt | 9 |
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- | -- | -- | | |||
48 | set_memory_wc | WC | -- | -- | | 48 | set_memory_wc | WC | -- | -- | |
49 | set_memory_wb | | | | | 49 | set_memory_wb | | | | |
50 | | | | | | 50 | | | | | |
51 | set_memory_wt | WT | -- | -- | | ||
52 | set_memory_wb | | | | | ||
53 | | | | | | ||
51 | pci sysfs resource | -- | -- | UC- | | 54 | pci sysfs resource | -- | -- | UC- | |
52 | | | | | | 55 | | | | | |
53 | pci sysfs resource_wc | -- | -- | WC | | 56 | pci sysfs resource_wc | -- | -- | WC | |
@@ -150,8 +153,8 @@ can be more restrictive, in case of any existing aliasing for that address. | |||
150 | For example: If there is an existing uncached mapping, a new ioremap_wc can | 153 | For example: If there is an existing uncached mapping, a new ioremap_wc can |
151 | return uncached mapping in place of write-combine requested. | 154 | return uncached mapping in place of write-combine requested. |
152 | 155 | ||
153 | set_memory_[uc|wc] and set_memory_wb should be used in pairs, where driver will | 156 | set_memory_[uc|wc|wt] and set_memory_wb should be used in pairs, where driver |
154 | first make a region uc or wc and switch it back to wb after use. | 157 | will first make a region uc, wc or wt and switch it back to wb after use. |
155 | 158 | ||
156 | Over time writes to /proc/mtrr will be deprecated in favor of using PAT based | 159 | Over time writes to /proc/mtrr will be deprecated in favor of using PAT based |
157 | interfaces. Users writing to /proc/mtrr are suggested to use above interfaces. | 160 | interfaces. 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. | |||
159 | Drivers should use ioremap_[uc|wc] to access PCI BARs with [uc|wc] access | 162 | Drivers should use ioremap_[uc|wc] to access PCI BARs with [uc|wc] access |
160 | types. | 163 | types. |
161 | 164 | ||
162 | Drivers should use set_memory_[uc|wc] to set access type for RAM ranges. | 165 | Drivers should use set_memory_[uc|wc|wt] to set access type for RAM ranges. |
163 | 166 | ||
164 | 167 | ||
165 | PAT debugging | 168 | PAT debugging |