OSDN Git Service

dmaengine: idxd: add helper for per interrupt handle drain
authorDave Jiang <dave.jiang@intel.com>
Tue, 26 Oct 2021 21:36:23 +0000 (14:36 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Nov 2021 05:51:26 +0000 (11:21 +0530)
commit46c6df1c958e55558212cfa94cad201eae48d684
tree765f3bbd1e7de313cfa417cb7caec4433bcbdf87
parenteb0cf33a91b46cd50b590d032471f7f977d5a92a
dmaengine: idxd: add helper for per interrupt handle drain

The helper is called at the completion of the interrupt handle refresh
event. It issues drain descriptors to each of the wq with associated
interrupt handle. The drain descriptor will have interrupt request set but
without completion record. This will ensure all descriptors with incorrect
interrupt completion handle get drained and a completion interrupt is
triggered for the guest driver to process them.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163528418315.3925689.7944718440052849626.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/irq.c