Commit 392be72c authored by Torben Kalkhof's avatar Torben Kalkhof Committed by Carsten Heinz
Browse files

Reset QDMA when loading kernel module

parent ef2111c8
......@@ -77,6 +77,8 @@ struct desc_gen_regs {
uint64_t id;
uint64_t cmd;
uint64_t status;
uint64_t rsvd[26];
uint64_t dma_reset;
} __packed;
// structure of QDMA indirect context programming registers
......@@ -218,6 +220,9 @@ int pcie_qdma_init(struct tlkm_pcie_device *pdev)
goto fail_id;
// reset QDMA
writeq(1, &desc_gen_regs->dma_reset);
DEVLOG(dev->dev_id, TLKM_LF_DMA, "Detected QDMA descriptor generator");
DEVLOG(dev->dev_id, TLKM_LF_DMA, "Map BAR2 and configure QDMA core");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment