Skip to content

Commit 5eff1ec

Browse files
krzyczrleon
authored andcommitted
RDMA/irdma: Fix SIGBUS in AEQ destroy
Removes write to IRDMA_PFINT_AEQCTL register prior to destroying AEQ, as this register does not exist in GEN3+ hardware and this kind of IRQ configuration is no longer required. Fixes: b800e82 ("RDMA/irdma: Add GEN3 support for AEQ and CEQ") Signed-off-by: Krzysztof Czurylo <krzysztof.czurylo@intel.com> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Link: https://patch.msgid.link/20251125025350.180-5-tatyana.e.nikolova@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 9e13d88 commit 5eff1ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • drivers/infiniband/hw/irdma

drivers/infiniband/hw/irdma/ctrl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4635,7 +4635,8 @@ static int irdma_sc_aeq_destroy(struct irdma_sc_aeq *aeq, u64 scratch,
46354635
u64 hdr;
46364636

46374637
dev = aeq->dev;
4638-
if (dev->privileged)
4638+
4639+
if (dev->hw_attrs.uk_attrs.hw_rev <= IRDMA_GEN_2)
46394640
writel(0, dev->hw_regs[IRDMA_PFINT_AEQCTL]);
46404641

46414642
cqp = dev->cqp;

0 commit comments

Comments
 (0)