netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ice: set the value of global config lock timeout longer
@ 2021-04-19  9:31 Liwei Song
  2021-04-20 22:48 ` Nguyen, Anthony L
  2021-05-12 21:48 ` [Intel-wired-lan] " Brelinski, TonyX
  0 siblings, 2 replies; 7+ messages in thread
From: Liwei Song @ 2021-04-19  9:31 UTC (permalink / raw)
  To: intel-wired-lan, jesse, anthony
  Cc: David, Jakub, netdev, linux-kernel, liwei.song

It may need hold Global Config Lock a longer time when download DDP
package file, extend the timeout value to 5000ms to ensure that
download can be finished before other AQ command got time to run,
this will fix the issue below when probe the device, 5000ms is a test
value that work with both Backplane and BreakoutCable NVM image:

ice 0000:f4:00.0: VSI 12 failed lan queue config, error ICE_ERR_CFG
ice 0000:f4:00.0: Failed to delete VSI 12 in FW - error: ICE_ERR_AQ_TIMEOUT
ice 0000:f4:00.0: probe failed due to setup PF switch: -12
ice: probe of 0000:f4:00.0 failed with error -12

Signed-off-by: Liwei Song <liwei.song@windriver.com>
---
 drivers/net/ethernet/intel/ice/ice_type.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_type.h b/drivers/net/ethernet/intel/ice/ice_type.h
index 266036b7a49a..8a90c47e337d 100644
--- a/drivers/net/ethernet/intel/ice/ice_type.h
+++ b/drivers/net/ethernet/intel/ice/ice_type.h
@@ -63,7 +63,7 @@ enum ice_aq_res_ids {
 /* FW update timeout definitions are in milliseconds */
 #define ICE_NVM_TIMEOUT			180000
 #define ICE_CHANGE_LOCK_TIMEOUT		1000
-#define ICE_GLOBAL_CFG_LOCK_TIMEOUT	3000
+#define ICE_GLOBAL_CFG_LOCK_TIMEOUT	5000
 
 enum ice_aq_res_access_type {
 	ICE_RES_READ = 1,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-12 21:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  9:31 [PATCH] ice: set the value of global config lock timeout longer Liwei Song
2021-04-20 22:48 ` Nguyen, Anthony L
2021-04-21  2:29   ` Liwei Song
2021-04-22 18:16     ` Nguyen, Anthony L
2021-05-04  0:44       ` Nguyen, Anthony L
2021-05-06  1:54         ` Liwei Song
2021-05-12 21:48 ` [Intel-wired-lan] " Brelinski, TonyX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).