Commit a25e2924 authored by Dave Jiang's avatar Dave Jiang Committed by Zheng Zengkai
Browse files

dmaengine: idxd: check device state before issue command



stable inclusion
from stable-5.10.17
commit 40e3b5c128645d2ddad12310c7be98758cafb2b0
bugzilla: 48169

--------------------------------

[ Upstream commit 89e3becd ]

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: default avatarSanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Tested-by: default avatarSanjay Kumar <sanjay.k.kumar@intel.com>
Fixes: 0d5c10b4 ("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: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent a1e5abd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment