public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioatdma: make debug output more readable
@ 2013-03-04 17:59 Dave Jiang
  2013-03-05 22:20 ` Dan Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dave Jiang @ 2013-03-04 17:59 UTC (permalink / raw)
  To: djbw; +Cc: vinod.koul, linux-kernel

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>
---
 drivers/dma/ioat/dma.h    |    2 +-
 drivers/dma/ioat/dma_v3.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
index 53a4cbb..95ae7b3 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,
 	struct device *dev = to_dev(chan);
 
 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
-		" ctl: %#x (op: %d int_en: %d compl: %d)\n", id,
+		" ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
 		(unsigned long long) tx->phys,
 		(unsigned long long) hw->next, tx->cookie, tx->flags,
 		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 53ea4bd..ce6fcee 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
 	int i;
 
 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
-		" sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
+		" sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
 		desc_id(desc), (unsigned long long) desc->txd.phys,
 		(unsigned long long) (pq_ex ? pq_ex->next : pq->next),
 		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
 			(unsigned long long) pq_get_src(descs, i), pq->coef[i]);
 	dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
 	dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
+	dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);
 }
 
 static struct dma_async_tx_descriptor *


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ioatdma: make debug output more readable
  2013-03-04 17:59 [PATCH] ioatdma: make debug output more readable Dave Jiang
@ 2013-03-05 22:20 ` Dan Williams
  2013-03-05 22:26   ` Dave Jiang
  2013-03-07 12:27 ` Vinod Koul
  2013-03-07 12:28 ` Vinod Koul
  2 siblings, 1 reply; 5+ messages in thread
From: Dan Williams @ 2013-03-05 22:20 UTC (permalink / raw)
  To: Dave Jiang; +Cc: vinod.koul@intel.com, linux-kernel@vger.kernel.org



On 3/4/13 9:59 AM, "Dave Jiang" <dave.jiang@intel.com> wrote:

>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>
>---
> drivers/dma/ioat/dma.h    |    2 +-
> drivers/dma/ioat/dma_v3.c |    3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
>index 53a4cbb..95ae7b3 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,
> 	struct device *dev = to_dev(chan);
> 
> 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
>-		" ctl: %#x (op: %d int_en: %d compl: %d)\n", id,
>+		" ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
> 		(unsigned long long) tx->phys,
> 		(unsigned long long) hw->next, tx->cookie, tx->flags,
> 		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 53ea4bd..ce6fcee 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
> 	int i;
> 
> 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
>-		" sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt:
>%d)\n",
>+		" sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt:
>%d)\n",
> 		desc_id(desc), (unsigned long long) desc->txd.phys,
> 		(unsigned long long) (pq_ex ? pq_ex->next : pq->next),
> 		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
> 			(unsigned long long) pq_get_src(descs, i), pq->coef[i]);
> 	dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
> 	dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
>+	dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);

Looks ok, did you want to distinguish when ->next is pointing to an
extended descriptor?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ioatdma: make debug output more readable
  2013-03-05 22:20 ` Dan Williams
@ 2013-03-05 22:26   ` Dave Jiang
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Jiang @ 2013-03-05 22:26 UTC (permalink / raw)
  To: Dan Williams; +Cc: vinod.koul@intel.com, linux-kernel@vger.kernel.org

On 03/05/2013 03:20 PM, Dan Williams wrote:
>
> On 3/4/13 9:59 AM, "Dave Jiang" <dave.jiang@intel.com> wrote:
>
>> 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>
>> ---
>> drivers/dma/ioat/dma.h    |    2 +-
>> drivers/dma/ioat/dma_v3.c |    3 ++-
>> 2 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
>> index 53a4cbb..95ae7b3 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,
>> 	struct device *dev = to_dev(chan);
>>
>> 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
>> -		" ctl: %#x (op: %d int_en: %d compl: %d)\n", id,
>> +		" ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
>> 		(unsigned long long) tx->phys,
>> 		(unsigned long long) hw->next, tx->cookie, tx->flags,
>> 		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 53ea4bd..ce6fcee 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
>> 	int i;
>>
>> 	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
>> -		" sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt:
>> %d)\n",
>> +		" sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt:
>> %d)\n",
>> 		desc_id(desc), (unsigned long long) desc->txd.phys,
>> 		(unsigned long long) (pq_ex ? pq_ex->next : pq->next),
>> 		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
>> 			(unsigned long long) pq_get_src(descs, i), pq->coef[i]);
>> 	dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
>> 	dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
>> +	dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);
> Looks ok, did you want to distinguish when ->next is pointing to an
> extended descriptor?

Probably a good idea. Let me add that

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ioatdma: make debug output more readable
  2013-03-04 17:59 [PATCH] ioatdma: make debug output more readable Dave Jiang
  2013-03-05 22:20 ` Dan Williams
@ 2013-03-07 12:27 ` Vinod Koul
  2013-03-07 12:28 ` Vinod Koul
  2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2013-03-07 12:27 UTC (permalink / raw)
  To: Dave Jiang; +Cc: djbw, linux-kernel

On Mon, Mar 04, 2013 at 10:59:54AM -0700, Dave Jiang wrote:
> 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>
Applied thanks

> ---
>  drivers/dma/ioat/dma.h    |    2 +-
>  drivers/dma/ioat/dma_v3.c |    3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
> index 53a4cbb..95ae7b3 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,
>  	struct device *dev = to_dev(chan);
>  
>  	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
> -		" ctl: %#x (op: %d int_en: %d compl: %d)\n", id,
> +		" ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
>  		(unsigned long long) tx->phys,
>  		(unsigned long long) hw->next, tx->cookie, tx->flags,
>  		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 53ea4bd..ce6fcee 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
>  	int i;
>  
>  	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
> -		" sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
> +		" sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
>  		desc_id(desc), (unsigned long long) desc->txd.phys,
>  		(unsigned long long) (pq_ex ? pq_ex->next : pq->next),
>  		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
>  			(unsigned long long) pq_get_src(descs, i), pq->coef[i]);
>  	dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
>  	dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
> +	dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);
>  }
>  
>  static struct dma_async_tx_descriptor *
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ioatdma: make debug output more readable
  2013-03-04 17:59 [PATCH] ioatdma: make debug output more readable Dave Jiang
  2013-03-05 22:20 ` Dan Williams
  2013-03-07 12:27 ` Vinod Koul
@ 2013-03-07 12:28 ` Vinod Koul
  2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2013-03-07 12:28 UTC (permalink / raw)
  To: Dave Jiang; +Cc: djbw, linux-kernel

On Mon, Mar 04, 2013 at 10:59:54AM -0700, Dave Jiang wrote:
> 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>
Applied Thanks
> ---
>  drivers/dma/ioat/dma.h    |    2 +-
>  drivers/dma/ioat/dma_v3.c |    3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h
> index 53a4cbb..95ae7b3 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,
>  	struct device *dev = to_dev(chan);
>  
>  	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) cookie: %d flags: %#x"
> -		" ctl: %#x (op: %d int_en: %d compl: %d)\n", id,
> +		" ctl: %#10.8x (op: %#x int_en: %d compl: %d)\n", id,
>  		(unsigned long long) tx->phys,
>  		(unsigned long long) hw->next, tx->cookie, tx->flags,
>  		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 53ea4bd..ce6fcee 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
>  	int i;
>  
>  	dev_dbg(dev, "desc[%d]: (%#llx->%#llx) flags: %#x"
> -		" sz: %#x ctl: %#x (op: %d int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
> +		" sz: %#10.8x ctl: %#x (op: %#x int: %d compl: %d pq: '%s%s' src_cnt: %d)\n",
>  		desc_id(desc), (unsigned long long) desc->txd.phys,
>  		(unsigned long long) (pq_ex ? pq_ex->next : pq->next),
>  		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
>  			(unsigned long long) pq_get_src(descs, i), pq->coef[i]);
>  	dev_dbg(dev, "\tP: %#llx\n", pq->p_addr);
>  	dev_dbg(dev, "\tQ: %#llx\n", pq->q_addr);
> +	dev_dbg(dev, "\tNEXT: %#llx\n", pq->next);
>  }
>  
>  static struct dma_async_tx_descriptor *
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-07 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 17:59 [PATCH] ioatdma: make debug output more readable Dave Jiang
2013-03-05 22:20 ` Dan Williams
2013-03-05 22:26   ` Dave Jiang
2013-03-07 12:27 ` Vinod Koul
2013-03-07 12:28 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox