From: Steve Wise Date: Tue, 8 Jul 2014 15:20:35 +0000 (-0500) Subject: RDMA/cxgb4: Initialize the device status page X-Git-Tag: v3.15.7~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c775c1c4a8501bf772f36475a8bfc5e52eba549;p=thirdparty%2Fkernel%2Fstable.git RDMA/cxgb4: Initialize the device status page commit 6b54d54dea82ae214e4a45a503c4ef755a8ecee8 upstream. The status page is mapped to user processes and allows sharing the device state between the kernel and user processes. This state isn't getting initialized and thus intermittently causes problems. Namely, the user process can mistakenly think the user doorbell writes are disabled which causes SQ work requests to never get fetched by HW. Fixes: 05eb23893c2c ("cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes"). Signed-off-by: Steve Wise Signed-off-by: Roland Dreier Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c index 8914ea90ddd9e..bff1a8ed47d01 100644 --- a/drivers/infiniband/hw/cxgb4/device.c +++ b/drivers/infiniband/hw/cxgb4/device.c @@ -654,6 +654,7 @@ static int c4iw_rdev_open(struct c4iw_rdev *rdev) pr_err(MOD "error allocating status page\n"); goto err4; } + rdev->status_page->db_off = 0; return 0; err4: c4iw_rqtpool_destroy(rdev);