Hi!
Current code blindly writes over the SWERR and the OVERFLOW bits. WriteI believe this is incorrect. Changelog explains that we need to
back the bits actually read instead so the driver avoids clobbering the
OVERFLOW bit that comes after the register is read.
preserve bits in the register...
diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c...but that is not what the code does.
index a60ca11a5784..f1463fc58112 100644
--- a/drivers/dma/idxd/irq.c
+++ b/drivers/dma/idxd/irq.c
@@ -124,7 +124,9 @@ static int process_misc_interrupts(struct idxd_device *idxd, u32 cause)
for (i = 0; i < 4; i++)
idxd->sw_err.bits[i] = ioread64(idxd->reg_base +
IDXD_SWERR_OFFSET + i * sizeof(u64));
- iowrite64(IDXD_SWERR_ACK, idxd->reg_base + IDXD_SWERR_OFFSET);
+
+ iowrite64(idxd->sw_err.bits[0] & IDXD_SWERR_ACK,
+ idxd->reg_base + IDXD_SWERR_OFFSET);
I suspect it should be
+ iowrite64(idxd->sw_err.bits[0] | IDXD_SWERR_ACK,Best regards,
+ idxd->reg_base + IDXD_SWERR_OFFSET);
Pavel