linux/drivers/net/ethernet/netronome/nfp/nfpcore
Jakub Kicinski 9b5655767c nfp: don't wait for resources indefinitely
There is currently no timeout to the resource and lock acquiring
loops.  We printed warnings and depended on user sending a signal
to the waiting process to stop the waiting.  This doesn't work
very well when wait happens out of a work queue.  The simplest
example of that is PCI probe.  When user loads the module and card
is in a broken state modprobe will wait forever and signals sent
to it will not actually reach the probing thread.

Make sure all wait loops have a time out.  Set the upper wait time
to 60 seconds to stay on the safe side.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-30 11:27:06 -04:00
..
nfp6000
crc32.h
nfp6000_pcie.c nfp: shorten CPP core probe logs 2017-05-30 11:27:05 -04:00
nfp6000_pcie.h
nfp_arm.h
nfp_cpp.h nfp: don't wait for resources indefinitely 2017-05-30 11:27:06 -04:00
nfp_cppcore.c nfp: support long reads and writes with the cpp helpers 2017-05-30 11:27:05 -04:00
nfp_cpplib.c
nfp_hwinfo.c nfp: add hwinfo support 2017-02-10 15:52:25 -05:00
nfp_mip.c nfp: add MIP reading support 2017-02-10 15:52:26 -05:00
nfp_mutex.c nfp: don't wait for resources indefinitely 2017-05-30 11:27:06 -04:00
nfp_nffw.c nfp: add support for reading nffw info 2017-02-10 15:52:25 -05:00
nfp_nffw.h nfp: add rtsym support 2017-02-10 15:52:26 -05:00
nfp_nsp_cmds.c nfp: add hwmon support 2017-05-30 11:27:06 -04:00
nfp_nsp_eth.c nfp: calculate total port lanes for split 2017-05-26 11:01:49 -04:00
nfp_nsp.c nfp: add hwmon support 2017-05-30 11:27:06 -04:00
nfp_nsp.h nfp: add hwmon support 2017-05-30 11:27:06 -04:00
nfp_resource.c nfp: don't wait for resources indefinitely 2017-05-30 11:27:06 -04:00
nfp_rtsym.c nfp: return nfp_rtsym_read_le() errors correctly 2017-02-20 11:18:49 -05:00
nfp_target.c
nfp.h nfp: add hwmon support 2017-05-30 11:27:06 -04:00