OSDN Git Service

IB/hfi1: Verify port data VLs credits on transition to Armed
authorAlex Estrin <alex.estrin@intel.com>
Mon, 24 Jul 2017 14:46:36 +0000 (07:46 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 31 Jul 2017 19:18:37 +0000 (15:18 -0400)
commit5e2d6764a729bf8d43894b0368b0ae11a19485c0
tree320cfa734fabe64797f78669e7f63bfe1c3aaa6e
parenta618b7e40af2b2b751790d602ffa93800b594eca
IB/hfi1: Verify port data VLs credits on transition to Armed

There is a window where the FM can read the buffer control table
and decide not to program buffers. When a port goes down, the code
clears the table and if it is not programmed, posted SDMA descriptors
will never complete due to no buffer credits.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/intr.c