diff options
author | mav <mav@FreeBSD.org> | 2016-05-24 12:40:03 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-05-24 12:40:03 +0000 |
commit | 2d7f5a933f689164b54021785f5dd8df5b174f11 (patch) | |
tree | 7dfb7b39f5f350c79dd1bd6357e6a60af6e3e34a /sys/dev/ntb | |
parent | 0f8665913a19dd7f3f805deef561d31dbcb30920 (diff) | |
download | FreeBSD-src-2d7f5a933f689164b54021785f5dd8df5b174f11.zip FreeBSD-src-2d7f5a933f689164b54021785f5dd8df5b174f11.tar.gz |
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
Diffstat (limited to 'sys/dev/ntb')
-rw-r--r-- | sys/dev/ntb/if_ntb/if_ntb.c | 4 |
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 6684edd..b172cf3 100644 --- a/sys/dev/ntb/if_ntb/if_ntb.c +++ b/sys/dev/ntb/if_ntb/if_ntb.c @@ -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); |