From 0c6c30dda3eb358bc3c78eefc6dc3357557068f1 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Fri, 11 Nov 2022 04:54:17 -0500 Subject: [PATCH] ips/dma: comment debug outputs to improve villas-fpga-cat performance fix rebase artifacts --- fpga/lib/ips/dma.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fpga/lib/ips/dma.cpp b/fpga/lib/ips/dma.cpp index 556e4d832..974dc3b83 100644 --- a/fpga/lib/ips/dma.cpp +++ b/fpga/lib/ips/dma.cpp @@ -345,9 +345,10 @@ Dma::writeCompleteScatterGather() int ret = XST_FAILURE; size_t bytesWritten = 0; - if ((processedBds = XAxiDma_BdRingFromHw(txRing, 1, &bd)) == 0) { - auto intrNum = irqs[mm2sInterrupt].irqController->waitForInterrupt(irqs[mm2sInterrupt].num); - logger->info("Got {} interrupts (id: {}) from write channel", intrNum, irqs[mm2sInterrupt].num); + if ((processedBds = XAxiDma_BdRingFromHw(txRing, 1, &bd)) == 0) + { + /*auto intrNum = */irqs[mm2sInterrupt].irqController->waitForInterrupt(irqs[mm2sInterrupt].num); + //logger->info("Got {} interrupts (id: {}) from write channel", intrNum, irqs[mm2sInterrupt].num); processedBds = XAxiDma_BdRingFromHw(txRing, 1, &bd); } @@ -387,9 +388,10 @@ Dma::readCompleteScatterGather() size_t bytesRead = 0; // Wait until the data has been received by the RX channel. - if ((processedBds = XAxiDma_BdRingFromHw(rxRing, 1, &bd)) == 0) { - auto intrNum = irqs[s2mmInterrupt].irqController->waitForInterrupt(irqs[s2mmInterrupt].num); - logger->info("Got {} interrupts (id: {}) from write channel", intrNum, irqs[mm2sInterrupt].num); + if ((processedBds = XAxiDma_BdRingFromHw(rxRing, 1, &bd)) == 0) + { + /*auto intrNum = */irqs[s2mmInterrupt].irqController->waitForInterrupt(irqs[s2mmInterrupt].num); + //logger->info("Got {} interrupts (id: {}) from write channel", intrNum, irqs[mm2sInterrupt].num); processedBds = XAxiDma_BdRingFromHw(rxRing, 1, &bd); }