Commit 0fdba88a authored by Geetha sowjanya's avatar Geetha sowjanya Committed by Jakub Kicinski
Browse files

octeontx2-af: Fix mbox INTR handler when num VFs > 64



When number of RVU VFs > 64, the vfs value passed to "rvu_queue_work"
function is incorrect. Due to which mbox workqueue entries for
VFs 0 to 63 never gets added to workqueue.

Fixes: 9bdc47a6 ("octeontx2-af: Mbox communication support btw AF and it's VFs")
Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250327091441.1284-1-gakula@marvell.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 42f34238
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2634,7 +2634,7 @@ static irqreturn_t rvu_mbox_intr_handler(int irq, void *rvu_irq)
		rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INTX(1), intr);

		rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr);
		vfs -= 64;
		vfs = 64;
	}

	intr = rvupf_read64(rvu, RVU_PF_VFPF_MBOX_INTX(0));