kernel_optimize_test/drivers/dma/idxd
Dave Jiang 40e3b5c128 dmaengine: idxd: check device state before issue command
[ Upstream commit 89e3becd8f821e507052e012d2559dcda59f538e ]

Add device state check before executing command. Without the check the
command can be issued while device is in halt state and causes the driver to
block while waiting for the completion of the command.

Reported-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Fixes: 0d5c10b4c8 ("dmaengine: idxd: add work queue drain support")
Link: https://lore.kernel.org/r/161219313921.2976211.12222625226450097465.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-17 11:02:25 +01:00
..
cdev.c Merge branch 'for-linus' into fixes 2020-08-05 19:02:07 +05:30
device.c dmaengine: idxd: check device state before issue command 2021-02-17 11:02:25 +01:00
dma.c dmaengine: move channel device_node deletion to driver 2021-02-17 11:02:21 +01:00
idxd.h dmaengine: idxd: check device state before issue command 2021-02-17 11:02:25 +01:00
init.c dmaengine: idxd: check device state before issue command 2021-02-17 11:02:25 +01:00
irq.c dmaengine: idxd: fix misc interrupt completion 2021-02-17 11:02:25 +01:00
Makefile dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
registers.h dmaengine: idxd: fix mapping of portal size 2020-11-16 22:38:20 +05:30
submit.c dmaengine: idxd: fix mapping of portal size 2020-11-16 22:38:20 +05:30
sysfs.c dmaengine: idxd: off by one in cleanup code 2021-01-12 20:18:26 +01:00