cxgb3: Wait longer for control packets on initialization
Subsystems (2)
PATCH 1/1 cxgb3: Wait longer for control packets on initialization
In some Power7 platforms, when using VIOS (Virtual I/O Server), we need to wait longer for control packets to finish transfer during initialization.
Without this change, initialization may fail prematurely.
drivers/net/cxgb3/cxgb3_main.c +1 -1
@@ -439,7 +439,7 @@ static void free_irq_resources(struct adstatic int await_mgmt_replies (struct adapter *adap,unsigned long init_cnt,unsigned long n) { -int attempts =5 ; +int attempts =10 ;while (adap->sge.qs[0 ].rspq.offload_pkts < init_cnt + n) {if (!--attempts)
Quoted 8 lines · Andre Detsch
In some Power7 platforms, when using VIOS (Virtual I/O Server), we need to wait longer for control packets to finish transfer during initialization.
Without this change, initialization may fail prematurely.Signed-off-by Wen Xiong <[email protected]>Signed-off-by Andre Detsch <[email protected]>
Quoted 14 lines
Index:
linux-2.6.34-rc5/drivers/net/cxgb3/cxgb3_main.c
===================================================================drivers/net/cxgb3/cxgb3_main.c +1
-1@@ -439,7 +439,7 @@ static void free_irq_resources(struct adstatic int await_mgmt_replies (struct adapter *adap,unsigned long init_cnt,unsigned long n) { -int attempts =5 ; +int attempts =10 ;while (adap->sge.qs[0 ].rspq.offload_pkts < init_cnt + n) {if (!--attempts)
From: Divy Le Ray <[email protected]>
Date: Mon, 26 Apr 2010 19:16:28 -0700
Quoted 11 lines
Quoted 8 lines · Andre Detsch
In some Power7 platforms, when using VIOS (Virtual I/O Server), we need to wait longer for control packets to finish transfer during initialization.
Without this change, initialization may fail prematurely.Signed-off-by Wen Xiong <[email protected]>Signed-off-by Andre Detsch <[email protected]>Acked-by Divy Le Ray <[email protected]>
Applied.