aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2013-03-04 12:59:54 -0500
committerVinod Koul <vinod.koul@intel.com>2013-04-15 00:21:16 -0400
commit50f9f97e70fa4679fa197cb6dea358329298b987 (patch)
tree656afc5c3eb2bb5c45354d653dd8e4e831db420c /drivers/dma/ioat
parent1d1bbd305a7831c47a35811e3ee7e8a6a7c7ed3a (diff)
ioatdma: make debug output more readable
Making OP field a hex instead of integer to make it more readable. Also add the dump out of the NEXT field. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Acked-by: Dan Williams <djbw@fb.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ioat')
-rw-r--r--drivers/dma/ioat/dma.h2
-rw-r--r--drivers/dma/ioat/dma_v3.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 53a4cbb78f47..95ae7b3139ec 100644
--- a/drivers/dma/ioat/dma.h
+++ b/drivers/dma/ioat/dma.h
@@ -179,7 +179,7 @@ __dump_desc_dbg(struct ioat_chan_common *chan, struct ioat_dma_descriptor *hw,
179 struct device *dev = to_dev(chan); 179 struct device *dev = to_dev(chan);
180 180
181 dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x" 181 dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
182 " ctl: %#x (op: %d int_en: %d compl: %d)\n", id, 182 " ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
183 (unsigned long long) tx->phys, 183 (unsigned long long) tx->phys,
184 (unsigned long long) hw->next, tx->cookie, tx->flags, 184 (unsigned long long) hw->next, tx->cookie, tx->flags,
185 hw->ctl, hw->ctl_f.op, hw->ctl_f.int_en, hw->ctl_f.compl_write); 185 hw->ctl, hw->ctl_f.op, hw->ctl_f.int_en, hw->ctl_f.compl_write);
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index e8336cce360b..dc8dcfb7a8a6 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -605,7 +605,7 @@ dump_pq_desc_dbg(struct ioat2_dma_chan *ioat, struct ioat_ring_ent *desc, struct
605 int i; 605 int i;
606 606
607 dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x" 607 dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
608 " sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt: %d)\n", 608 " sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
609 desc_id(desc), (unsigned long long) desc->txd.phys, 609 desc_id(desc), (unsigned long long) desc->txd.phys,
610 (unsigned long long) (pq_ex ? pq_ex->next : pq->next), 610 (unsigned long long) (pq_ex ? pq_ex->next : pq->next),
611 desc->txd.flags, pq->size, pq->ctl, pq->ctl_f.op, pq->ctl_f.int_en, 611 desc->txd.flags, pq->size, pq->ctl, pq->ctl_f.op, pq->ctl_f.int_en,
@@ -617,6 +617,7 @@ dump_pq_desc_dbg(struct ioat2_dma_chan *ioat, struct ioat_ring_ent *desc, struct
617 (unsigned long long) pq_get_src(descs, i), pq->coef[i]); 617 (unsigned long long) pq_get_src(descs, i), pq->coef[i]);
618 dev_dbg(dev, "\tP: %#llx\n", pq->p_addr); 618 dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
619 dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr); 619 dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
620 dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);
620} 621}
621 622
622static struct dma_async_tx_descriptor * 623static struct dma_async_tx_descriptor *