Skip to content

Commit 6e20d00

Browse files
sukadevdavem330
authored andcommitted
ibmvnic: Process crqs after enabling interrupts
Soon after registering a CRQ it is possible that we get a fail over or maybe a CRQ_INIT from the VIOS while interrupts were disabled. Look for any such CRQs after enabling interrupts. Otherwise we can intermittently fail to bring up ibmvnic adapters during boot, specially in kexec/kdump kernels. Fixes: 032c5e8 ("Driver for IBM System i/p VNIC protocol") Reported-by: Vaishnavi Bhat <[email protected]> Signed-off-by: Sukadev Bhattiprolu <[email protected]> Reviewed-by: Dany Madden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8878e46 commit 6e20d00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,6 +5412,9 @@ static int init_crq_queue(struct ibmvnic_adapter *adapter)
54125412
crq->cur = 0;
54135413
spin_lock_init(&crq->lock);
54145414

5415+
/* process any CRQs that were queued before we enabled interrupts */
5416+
tasklet_schedule(&adapter->tasklet);
5417+
54155418
return retrc;
54165419

54175420
req_irq_failed:

0 commit comments

Comments
 (0)