Skip to contentSkip to conversation

dmaengine: idxd: Support device_tx_status

PATCH Superseded Ben Walker 1 participant 1 message Jun 22, 2022

Subsystems (2)

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Ben Walker

author
#0 lore raw

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.

---
 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
index ff0ea60051f0c..3c61eac0b05c7 100644
@@ -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
index bd93ada32c89d..d4f0227895075 100644
@@ -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