Skip to content

Commit 25a7123

Browse files
gnitkaanguy11
authored andcommitted
ice: Fix reset handler
Synchronize OICR IRQ when preparing for reset to avoid potential race conditions between the reset procedure and OICR Fixes: 4aad533 ("ice: add individual interrupt allocation") Signed-off-by: Grzegorz Nitka <[email protected]> Signed-off-by: Sergey Temerkhanov <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 1ca645a commit 25a7123

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ ice_prepare_for_reset(struct ice_pf *pf, enum ice_reset_req reset_type)
559559
if (test_bit(ICE_PREPARED_FOR_RESET, pf->state))
560560
return;
561561

562+
synchronize_irq(pf->oicr_irq.virq);
563+
562564
ice_unplug_aux_dev(pf);
563565

564566
/* Notify VFs of impending reset */

0 commit comments

Comments
 (0)