Skip to contentSkip to conversation

accel/rocket: Check the correct DMA irq status to warn about

PATCH In review Heiko Stuebner 2 participants 2 messages Aug 18, 2025 – Sep 1, 2025

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author reviewer
#0 lore raw

PATCH 1/1 accel/rocket: Check the correct DMA irq status to warn about

Right now, the code checks the DMA_READ_ERROR state 2 times, while I guess it was supposed to warn about both read and write errors.

Change the 2nd check to look at the write-error flag.

Fixes 0810d5ad88a1 ("accel/rocket: Add job submission IOCTL")
---
 drivers/accel/rocket/rocket_job.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/rocket/rocket_job.c +1 -1
index 5d4afd692306..3440b862e749 100644
@@ -422,7 +422,7 @@ static irqreturn_t rocket_job_irq_handler(int irq, void *data)
 	u32 raw_status = rocket_pc_readl(core, INTERRUPT_RAW_STATUS);
 
 	WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_READ_ERROR);
-	WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_READ_ERROR);
+	WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_WRITE_ERROR);
 
 	if (!(raw_status & PC_INTERRUPT_RAW_STATUS_DPU_0 ||
 	      raw_status & PC_INTERRUPT_RAW_STATUS_DPU_1))
Signature · 1 line
2.47.2
maintainer
#1 lore raw
Quoted 8 lines · Heiko Stuebner

Right now, the code checks the DMA_READ_ERROR state 2 times, while I guess it was supposed to warn about both read and write errors.

Change the 2nd check to look at the write-error flag.

Fixes 0810d5ad88a1 ("accel/rocket: Add job submission IOCTL")

Thanks, Heiko, you are right, I have applied it to drm-misc-next.

Regards,

Tomeu

Quoted 20 lines
---
 drivers/accel/rocket/rocket_job.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/rocket/rocket_job.c +1 -2
index 5d4afd692306..3440b862e749 100644
@@ -422,7 +422,7 @@ static irqreturn_t rocket_job_irq_handler(int irq, void *data)
        u32 raw_status = rocket_pc_readl(core, INTERRUPT_RAW_STATUS);
 
        WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_READ_ERROR);
-       WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_READ_ERROR);
+       WARN_ON(raw_status & PC_INTERRUPT_RAW_STATUS_DMA_WRITE_ERROR);
 
        if (!(raw_status & PC_INTERRUPT_RAW_STATUS_DPU_0 ||
              raw_status & PC_INTERRUPT_RAW_STATUS_DPU_1))
--

2.47.2