summaryrefslogtreecommitdiffstats
path: root/sys/dev/ntb/if_ntb/if_ntb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ntb/if_ntb/if_ntb.c')
-rw-r--r--sys/dev/ntb/if_ntb/if_ntb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ntb/if_ntb/if_ntb.c b/sys/dev/ntb/if_ntb/if_ntb.c
index e929bab..d107d06 100644
--- a/sys/dev/ntb/if_ntb/if_ntb.c
+++ b/sys/dev/ntb/if_ntb/if_ntb.c
@@ -621,6 +621,10 @@ ntb_transport_probe(struct ntb_softc *ntb)
mw->xlat_size = 0;
mw->virt_addr = NULL;
mw->dma_addr = 0;
+
+ rc = ntb_mw_set_wc(nt->ntb, i, VM_MEMATTR_WRITE_COMBINING);
+ if (rc)
+ ntb_printf(0, "Unable to set mw%d caching\n", i);
}
qp_bitmap = ntb_db_valid_mask(ntb);
OpenPOWER on IntegriCloud