]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: Clean up descriptors with fault error
authorDave Jiang <dave.jiang@intel.com>
Tue, 27 Oct 2020 17:34:40 +0000 (10:34 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 30 Oct 2020 08:40:36 +0000 (14:10 +0530)
commitd9d2384de345c7e1c02e81d3bae4f027a477a7ae
tree7273200c8ca36d68ab7ee3c3bb99bd1be03d749c
parent29c01b2a50893bf8fae9932e6e8738de38394bd5
dmaengine: idxd: Clean up descriptors with fault error

Add code to "complete" a descriptor when the descriptor or its completion
address hit a fault error when SVA mode is being used. This error can be
triggered due to bad programming by the user. A lock is introduced in order
to protect the descriptor completion lists since the fault handler will run
from the system work queue after being scheduled in the interrupt handler.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/160382008092.3911367.12766483427643278985.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/irq.c