summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorSebastian Sanchez <sebastian.sanchez@intel.com>2018-05-02 16:42:21 +0300
committerDoug Ledford <dledford@redhat.com>2018-05-09 22:53:29 +0300
commit254361c1890e67486cd957e9072e518b1c464e27 (patch)
treeba7c54ff87a8ca46364064ce7ff24bff3bc81aa1 /arch/riscv
parentf5e27a203f4cd7406bc7d3589d86aa318f68d276 (diff)
downloadlinux-254361c1890e67486cd957e9072e518b1c464e27.tar.xz
IB/hfi1: Prevent LNI hang when LCB can't obtain lanes
When the LCB isn't able to get any lanes operational on the first transition into mission mode, the link transfer active never happens and the LNI stays in the polling state indefinitely. Reset LCB upon receiving an 8051 interrupt for LCB to try to obtain lanes with firmware version 1.25.0 or later. Also, update the LCB reset value in other parts of the code with a macro defined to make the code more maintainable and rename functions with the link_width label to link_mode to reflect the fact that those functions set and read link related data not just the link width. Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'arch/riscv')
0 files changed, 0 insertions, 0 deletions