dma/idxd: add vchan status
authorKevin Laatz <kevin.laatz@intel.com>
Wed, 20 Oct 2021 16:30:09 +0000 (16:30 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 22 Oct 2021 20:40:59 +0000 (22:40 +0200)
commit5a23df349a48282129670d2e08f4c0b141200937
treeace280268454118be154c815936395e62953fafc
parent280c3ca02ce23a024c23efb12c3230c98a828cc7
dma/idxd: add vchan status

When testing dmadev drivers, it is useful to have the HW device in a known
state. This patch adds the implementation of the function which will wait
for the device to be idle (all jobs completed) before proceeding.

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/idxd/idxd_bus.c
drivers/dma/idxd/idxd_common.c
drivers/dma/idxd/idxd_internal.h
drivers/dma/idxd/idxd_pci.c