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 <grzegorz.nitka@intel.com> Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 1ca645a commit 25a7123

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)