Skip to content

Commit 7bb0c4b

Browse files
Jakub Kicinskigregkh
authored andcommitted
nfp: ignore signals when communicating with management FW
[ Upstream commit 5496295 ] We currently allow signals to interrupt the wait for management FW commands. Exiting the wait should not cause trouble, the FW will just finish executing the command in the background and new commands will wait for the old one to finish. However, this may not be what users expect (Ctrl-C not actually stopping the command). Moreover some systems routinely request link information with signals pending (Ubuntu 14.04 runs a landscape-sysinfo python tool from MOTD) worrying users with errors like these: nfp 0000:04:00.0: nfp_nsp: Error -512 waiting for code 0x0007 to start nfp 0000:04:00.0: nfp: reading port table failed -512 Make the wait for management FW responses non-interruptible. Fixes: 1a64821 ("nfp: add support for service processor access") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d96da2a commit 7bb0c4b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • drivers/net/ethernet/netronome/nfp/nfpcore

‎drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ nfp_nsp_wait_reg(struct nfp_cpp *cpp, u64 *reg,
277277
if ((*reg & mask) == val)
278278
return 0;
279279

280-
if (msleep_interruptible(25))
281-
return -ERESTARTSYS;
280+
msleep(25);
282281

283282
if (time_after(start_time, wait_until))
284283
return -ETIMEDOUT;

0 commit comments

Comments
 (0)