diff -r f6306584cca9 sys/dev/cxgbe/t4_sge.c --- a/sys/dev/cxgbe/t4_sge.c Wed Aug 16 05:52:56 2017 -0700 +++ b/sys/dev/cxgbe/t4_sge.c Tue Aug 29 18:40:41 2017 -0700 @@ -571,8 +571,12 @@ t4_tweak_chip_settings(struct adapter *s KASSERT(nitems(sge_flbuf_sizes) <= SGE_FLBUF_SIZES, ("%s: hw buffer size table too big", __func__)); + t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE0, 4096); + t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE1, 65536); + t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE2, 1536); + t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE3, 9024); for (i = 0; i < min(nitems(sge_flbuf_sizes), SGE_FLBUF_SIZES); i++) { - t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE0 + (4 * i), + t4_write_reg(sc, A_SGE_FL_BUFFER_SIZE15 - (4 * i), sge_flbuf_sizes[i]); }