Skip to contentSkip to conversation

net/ice/base: fix double HW reinitialization

PATCH In review Bruce Richardson 2 participants 3 messages Mar 26 – Mar 27 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice/base: fix double HW reinitialization

After downloading an alternate scheduler topology, the HW needs to be reinitialized. Since commit b47c1229d617 ("net/ice/base: improve global config lock behavior"), a reinitialization is done in the topology download code itself, so we need to remove the extra initialization from the calling code.

Fixes b47c1229d617 ("net/ice/base: improve global config lock behavior")
---
 drivers/net/intel/ice/base/ice_ddp.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/intel/ice/base/ice_ddp.c +0 -4
index 68e75be4d2..ae80d93656 100644
@@ -1359,10 +1359,6 @@ enum ice_ddp_state ice_init_pkg(struct ice_hw *hw, u8 *buf, u32 len, bool load_s
 				  res);
 			return ICE_DDP_PKG_ERR;
 		}
-		ice_debug(hw, ICE_DBG_INIT,
-			  "Topology download successful, reinitializing device\n");
-		ice_deinit_hw(hw);
-		ice_init_hw(hw);
 	}
 
 	/* initialize package info */
Signature · 1 line
2.51.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

Subject: [PATCH] net/ice/base: fix double HW reinitialization

After downloading an alternate scheduler topology, the HW needs to be reinitialized. Since commit b47c1229d617 ("net/ice/base: improve global config lock behavior"), a reinitialization is done in the topology download code itself, so we need to remove the extra initialization from the calling code.

Quoted 4 lines
Fixes b47c1229d617 ("net/ice/base: improve global config lock behavior")
Quoted 24 lines
---
 drivers/net/intel/ice/base/ice_ddp.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/intel/ice/base/ice_ddp.c +0 -4
index 68e75be4d2..ae80d93656 100644
@@ -1359,10 +1359,6 @@ enum ice_ddp_state ice_init_pkg(struct ice_hw
 *hw, u8 *buf, u32 len, bool load_s
 				  res);
 			return ICE_DDP_PKG_ERR;
 		}
-		ice_debug(hw, ICE_DBG_INIT,
-			  "Topology download successful, reinitializing
 device\n");
-		ice_deinit_hw(hw);
-		ice_init_hw(hw);
 	}

/* initialize package info */
--
2.51.0

#2 lore raw
Quoted 8 lines · Ciara
Quoted 8 lines

Subject: [PATCH] net/ice/base: fix double HW reinitialization

After downloading an alternate scheduler topology, the HW needs to be reinitialized. Since commit b47c1229d617 ("net/ice/base: improve global config lock behavior"), a reinitialization is done in the topology download code itself, so we need to remove the extra initialization from the calling code.

Quoted 7 lines
Quoted 4 lines
Fixes b47c1229d617 ("net/ice/base: improve global config lock behavior")

Thanks.
Patch applied to dpdk-next-net-intel.

/Bruce