Re-enable write combining, disabled by default at r295486.

if_ntb(4) strongly benefits from WC, improving throughput from 350Mbit/s
to 8-10Gbit/s on my tests.

MFC after:	1 week
This commit is contained in:
Alexander Motin 2016-05-24 12:40:03 +00:00
parent 131bc376b9
commit b72a6f8a8f

View file

@ -616,6 +616,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);