linux/Documentation
David Woodhouse ae749c7ab4 PCI: Add arch_can_pci_mmap_wc() macro
Most of the almost-identical versions of pci_mmap_page_range() silently
ignore the 'write_combine' argument and give uncached mappings.

Yet we allow the PCIIOC_WRITE_COMBINE ioctl in /proc/bus/pci, expose the
'resourceX_wc' file in sysfs, and allow an attempted mapping to apparently
succeed.

To fix this, introduce a macro arch_can_pci_mmap_wc() which indicates
whether the platform can do a write-combining mapping.  On x86 this ends up
being pat_enabled(), while the few other platforms that support it can just
set it to a literal '1'.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2017-04-18 13:01:42 -05:00
..
2017-02-27 19:59:21 -08:00
2017-01-20 21:31:34 +01:00
2017-02-15 13:23:49 +08:00
2017-02-15 15:09:13 -07:00
2017-01-31 15:43:05 +01:00
2017-02-23 09:41:03 -08:00
2017-02-13 09:17:54 -08:00
2016-10-07 20:19:31 -07:00
2017-02-10 11:15:08 +01:00
2016-06-30 13:07:33 -06:00
2017-02-12 15:20:07 -07:00
2016-06-07 22:57:10 +02:00
2016-05-17 14:48:04 +02:00