]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hermon] Increase polling rate for command completions
authorChristian Iversen <ci@iversenit.dk>
Tue, 26 Jan 2021 21:47:29 +0000 (22:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 28 Jan 2021 23:47:00 +0000 (23:47 +0000)
commit6cb12ee2b02dac4455bc60aebdcd326436dff743
treeacd269a73509321ec08e1a40aef088526eb6cf86
parent7d32225b553274cc6e9c922a272903de18bbd458
[hermon] Increase polling rate for command completions

Some older versions of the hardware (and/or firmware) do not report an
event when an Infiniband link reaches the INIT state.  The driver
works around this missing event by calling ib_smc_update() on each
event queue poll while the link is in the DOWN state.  This results in
a very large number of commands being issued while any open Infiniband
link is in the DOWN state (e.g. unplugged), to the point that the 1ms
delay from waiting for each command to complete will noticeably affect
responsiveness.

Fix by decreasing the command completion polling delay from 1ms to
10us.

Signed-off-by: Christian Iversen <ci@iversenit.dk>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c