aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_file_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_file_ops.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index bbaa70e57db1..0b6e7679eefd 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -985,6 +985,13 @@ static int mmap_piobufs(struct vm_area_struct *vma,
985 * write combining behavior we want on the PIO buffers! 985 * write combining behavior we want on the PIO buffers!
986 */ 986 */
987 987
988#if defined(__powerpc__)
989 /* There isn't a generic way to specify writethrough mappings */
990 pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
991 pgprot_val(vma->vm_page_prot) |= _PAGE_WRITETHRU;
992 pgprot_val(vma->vm_page_prot) &= ~_PAGE_GUARDED;
993#endif
994
988 if (vma->vm_flags & VM_READ) { 995 if (vma->vm_flags & VM_READ) {
989 dev_info(&dd->pcidev->dev, 996 dev_info(&dd->pcidev->dev,
990 "Can't map piobufs as readable (flags=%lx)\n", 997 "Can't map piobufs as readable (flags=%lx)\n",