]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RDMA/irdma: Fix SIGBUS in AEQ destroy
authorKrzysztof Czurylo <krzysztof.czurylo@intel.com>
Tue, 25 Nov 2025 02:53:45 +0000 (20:53 -0600)
committerLeon Romanovsky <leon@kernel.org>
Wed, 26 Nov 2025 07:26:05 +0000 (02:26 -0500)
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: b800e82feba7 ("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>
drivers/infiniband/hw/irdma/ctrl.c

index c17b1c14dfe2c33b9f6edf1503eb5e899b93ebc3..ce5cf89c463c1fd828c5ad3f1e7cfe317ab4dd8f 100644 (file)
@@ -4635,7 +4635,8 @@ static int irdma_sc_aeq_destroy(struct irdma_sc_aeq *aeq, u64 scratch,
        u64 hdr;
 
        dev = aeq->dev;
-       if (dev->privileged)
+
+       if (dev->hw_attrs.uk_attrs.hw_rev <= IRDMA_GEN_2)
                writel(0, dev->hw_regs[IRDMA_PFINT_AEQCTL]);
 
        cqp = dev->cqp;