[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250116134257.93643-1-ahmed.zaki@intel.com>
Date: Thu, 16 Jan 2025 06:42:57 -0700
From: Ahmed Zaki <ahmed.zaki@...el.com>
To: intel-wired-lan@...ts.osuosl.org
Cc: netdev@...r.kernel.org,
Ahmed Zaki <ahmed.zaki@...el.com>,
Madhu Chittim <madhu.chittim@...el.com>,
Sudheer Mogilappagari <sudheer.mogilappagari@...el.com>
Subject: [PATCH iwl-net] idpf: synchronize pending IRQs after disable
Wait for pending IRQ handler after it is disabled. This will ensure the IRQ
is cleanly freed afterwards.
Fixes: d4d558718266 ("idpf: initialize interrupts and enable vport")
Reviewed-by: Madhu Chittim <madhu.chittim@...el.com>
Suggested-by: Sudheer Mogilappagari <sudheer.mogilappagari@...el.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@...el.com>
---
drivers/net/ethernet/intel/idpf/idpf_txrx.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
index 9be6a6b59c4e..8006bd9a95f6 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
@@ -3592,10 +3592,15 @@ static void idpf_vport_intr_rel_irq(struct idpf_vport *vport)
static void idpf_vport_intr_dis_irq_all(struct idpf_vport *vport)
{
struct idpf_q_vector *q_vector = vport->q_vectors;
- int q_idx;
+ int q_idx, vidx, irq_num;
+
+ for (q_idx = 0; q_idx < vport->num_q_vectors; q_idx++) {
+ vidx = vport->q_vector_idxs[q_idx];
+ irq_num = vport->adapter->msix_entries[vidx].vector;
- for (q_idx = 0; q_idx < vport->num_q_vectors; q_idx++)
writel(0, q_vector[q_idx].intr_reg.dyn_ctl);
+ synchronize_irq(irq_num);
+ }
}
/**
--
2.43.0
Powered by blists - more mailing lists