diff options
author | Kashyap Desai | 2023-06-09 04:01:48 -0700 |
---|---|---|
committer | Leon Romanovsky | 2023-06-12 10:10:17 +0300 |
commit | b6c7256688264f5096a2cfaaaa56d01ea686b367 (patch) | |
tree | 14c00f1864ec6768c5434e11c7e15f0627316d17 /arch | |
parent | 691eb7c6110fe04e38bf0f60d713482508b3d199 (diff) |
RDMA/bnxt_re: Add firmware stall check detection
Every completion will update last_seen value in the unit of jiffies.
last_seen field will be used to know if firmware is alive and
is useful to detect firmware stall.
Non blocking interface __wait_for_resp will have logic to detect
firmware stall. After every 10 second interval if __wait_for_resp
has not received completion for a given command it will check for
firmware stall condition.
If current jiffies is greater than last_seen
jiffies + RCFW_FW_STALL_TIMEOUT_SEC * HZ, it is a firmware stall.
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1686308514-11996-12-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions