dmaengine: idxd: Support device_tx_status
Subsystems (2)
PATCH v3 14/15 dmaengine: idxd: Support device_tx_status
This can now be supported even for devices that complete operations out of order. Add support for directly polling transactions.
Signed-off-by Ben Walker <[email protected]>
--- drivers/dma/idxd/device.c | 1 + drivers/dma/idxd/dma.c | 85 ++++++++++++++++++++++++++++++++++++++- drivers/dma/idxd/idxd.h | 1 + 3 files changed, 85 insertions(+), 2 deletions(-)
drivers/dma/idxd/device.c +1 -0
@@ -148,6 +148,7 @@ int idxd_wq_alloc_resources(struct idxd_wq *wq) desc->iax_completion = &wq->iax_compls[i]; desc->compl_dma = wq->compls_addr + idxd->data->compl_size * i; desc->id = i; + desc->gen =1 ; desc->wq = wq; desc->cpu =-1 ; }
drivers/dma/idxd/dma.c +83 -2
109 lines not on this page · raw message
drivers/dma/idxd/idxd.h +1 -0
@@ -326,6 +326,7 @@ struct idxd_desc {struct llist_node llnode;struct list_head list;u16 id; +u16 gen;int cpu;struct idxd_wq *wq; };
Signature · 1 line
2.35.1