Commit e8a70af2 authored by Harish Chegondi's avatar Harish Chegondi Committed by Doug Ledford

IB/hfi1: Adjust hardware buffering parameter

It was determined that 0x880 is a better value for hardware buffering,
use it.
Reviewed-by: default avatarDean Luick <dean.luick@intel.com>
Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 50921be0
...@@ -13385,9 +13385,9 @@ static void init_rbufs(struct hfi1_devdata *dd) ...@@ -13385,9 +13385,9 @@ static void init_rbufs(struct hfi1_devdata *dd)
/* /*
* Give up after 1ms - maximum wait time. * Give up after 1ms - maximum wait time.
* *
* RBuf size is 148KiB. Slowest possible is PCIe Gen1 x1 at * RBuf size is 136KiB. Slowest possible is PCIe Gen1 x1 at
* 250MB/s bandwidth. Lower rate to 66% for overhead to get: * 250MB/s bandwidth. Lower rate to 66% for overhead to get:
* 148 KB / (66% * 250MB/s) = 920us * 136 KB / (66% * 250MB/s) = 844us
*/ */
if (count++ > 500) { if (count++ > 500) {
dd_dev_err(dd, dd_dev_err(dd,
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
*/ */
#define CM_VAU 3 #define CM_VAU 3
/* HFI link credit count, AKA receive buffer depth (RBUF_DEPTH) */ /* HFI link credit count, AKA receive buffer depth (RBUF_DEPTH) */
#define CM_GLOBAL_CREDITS 0x940 #define CM_GLOBAL_CREDITS 0x880
/* Number of PKey entries in the HW */ /* Number of PKey entries in the HW */
#define MAX_PKEY_VALUES 16 #define MAX_PKEY_VALUES 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment