Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

idma64: Don't try to serve interrupts when device is powered off

When iDMA 64-bit device is powered off, the IRQ status register
is all 1:s. This is never happen in real case and signalling that
the device is simply powered off. Don't try to serve interrupts
that are not ours.

Fixes: 667dfed98615 ("dmaengine: add a driver for Intel integrated DMA 64-bit")
Reported-by: Heiner Kallweit <hkallweit1@gmail.com>
Closes: https://lore.kernel.org/r/700bbb84-90e1-4505-8ff0-3f17ea8bc631@gmail.com
Tested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240321120453.1360138-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Andy Shevchenko and committed by
Vinod Koul
9140ce47 30f0ced9

+4
+4
drivers/dma/idma64.c
··· 171 171 u32 status_err; 172 172 unsigned short i; 173 173 174 + /* Since IRQ may be shared, check if DMA controller is powered on */ 175 + if (status == GENMASK(31, 0)) 176 + return IRQ_NONE; 177 + 174 178 dev_vdbg(idma64->dma.dev, "%s: status=%#x\n", __func__, status); 175 179 176 180 /* Check if we have any interrupt from the DMA controller */