]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:18 +0000 (14:03 +0100)
[ Upstream commit 5eff1ecce30143c3f8924d91770d81d44bd5abe5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/irdma/ctrl.c

index 991ce4890bfb27222b4b0b71e81a7df816b93d48..cb970c9090ee0ed343b11bc00b171a3ced6b6da1 100644 (file)
@@ -4734,7 +4734,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;