Skip to content

Commit 2657e16

Browse files
pgreenwaanguy11
authored andcommitted
ice: rearm other interrupt cause register after enabling VFs
The other interrupt cause register (OICR), global interrupt 0, is disabled when enabling VFs to prevent handling VFLR. If the OICR is not rearmed then the VF cannot communicate with the PF. Rearm the OICR after enabling VFs. Fixes: 916c7fd ("ice: Separate VF VSI initialization/creation from reset flow") Signed-off-by: Paul Greenwalt <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent f23ab04 commit 2657e16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,10 @@ static int ice_ena_vfs(struct ice_pf *pf, u16 num_vfs)
20232023
if (ret)
20242024
goto err_unroll_sriov;
20252025

2026+
/* rearm global interrupts */
2027+
if (test_and_clear_bit(ICE_OICR_INTR_DIS, pf->state))
2028+
ice_irq_dynamic_ena(hw, NULL, NULL);
2029+
20262030
return 0;
20272031

20282032
err_unroll_sriov:

0 commit comments

Comments
 (0)