]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit062d491eae708b9c760774404954fd378e8f1a25
tree320cfa734fabe64797f78669e7f63bfe1c3aaa6e
parentfa82a6355f34f46673b3089fad6059f0330760a7
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