[PATCH v1 0/4] PCI: pci_resource_to_user() cleanups

2016-06-17 Thread Bjorn Helgaas via Linuxppc-dev
The /sys/devices/pci.../.../resource and /proc/bus/pci/devices files contain PCI BAR addresses. On most architectures these addresses are "resource" values, e.g., CPU physical memory addresses or Linux I/O port numbers. These may be offset from the raw PCI values if there are multiple PCI host

[PATCH v1 0/3] PCI: Clean up write combining usage for user mmap

2016-06-09 Thread Bjorn Helgaas via Linuxppc-dev
These patches: - Enforce a "no write combining on I/O port space mapping" policy. This seems like an obviously good thing but was previously enforced only by powerpc. - Stop giving powerpc users write combining mappings of prefetchable memory they ask for write combining with the