aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ntb/ntb_transport.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 29553fb7fb8e..777436c47679 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -452,7 +452,7 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
452 452
453 out_offset = 0; 453 out_offset = 0;
454 out_offset += snprintf(buf + out_offset, out_count - out_offset, 454 out_offset += snprintf(buf + out_offset, out_count - out_offset,
455 "NTB QP stats\n"); 455 "\nNTB QP stats:\n\n");
456 out_offset += snprintf(buf + out_offset, out_count - out_offset, 456 out_offset += snprintf(buf + out_offset, out_count - out_offset,
457 "rx_bytes - \t%llu\n", qp->rx_bytes); 457 "rx_bytes - \t%llu\n", qp->rx_bytes);
458 out_offset += snprintf(buf + out_offset, out_count - out_offset, 458 out_offset += snprintf(buf + out_offset, out_count - out_offset,
@@ -470,11 +470,11 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
470 out_offset += snprintf(buf + out_offset, out_count - out_offset, 470 out_offset += snprintf(buf + out_offset, out_count - out_offset,
471 "rx_err_ver - \t%llu\n", qp->rx_err_ver); 471 "rx_err_ver - \t%llu\n", qp->rx_err_ver);
472 out_offset += snprintf(buf + out_offset, out_count - out_offset, 472 out_offset += snprintf(buf + out_offset, out_count - out_offset,
473 "rx_buff - \t%p\n", qp->rx_buff); 473 "rx_buff - \t0x%p\n", qp->rx_buff);
474 out_offset += snprintf(buf + out_offset, out_count - out_offset, 474 out_offset += snprintf(buf + out_offset, out_count - out_offset,
475 "rx_index - \t%u\n", qp->rx_index); 475 "rx_index - \t%u\n", qp->rx_index);
476 out_offset += snprintf(buf + out_offset, out_count - out_offset, 476 out_offset += snprintf(buf + out_offset, out_count - out_offset,
477 "rx_max_entry - \t%u\n", qp->rx_max_entry); 477 "rx_max_entry - \t%u\n\n", qp->rx_max_entry);
478 478
479 out_offset += snprintf(buf + out_offset, out_count - out_offset, 479 out_offset += snprintf(buf + out_offset, out_count - out_offset,
480 "tx_bytes - \t%llu\n", qp->tx_bytes); 480 "tx_bytes - \t%llu\n", qp->tx_bytes);
@@ -489,21 +489,28 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
489 out_offset += snprintf(buf + out_offset, out_count - out_offset, 489 out_offset += snprintf(buf + out_offset, out_count - out_offset,
490 "tx_err_no_buf - %llu\n", qp->tx_err_no_buf); 490 "tx_err_no_buf - %llu\n", qp->tx_err_no_buf);
491 out_offset += snprintf(buf + out_offset, out_count - out_offset, 491 out_offset += snprintf(buf + out_offset, out_count - out_offset,
492 "tx_mw - \t%p\n", qp->tx_mw); 492 "tx_mw - \t0x%p\n", qp->tx_mw);
493 out_offset += snprintf(buf + out_offset, out_count - out_offset, 493 out_offset += snprintf(buf + out_offset, out_count - out_offset,
494 "tx_index - \t%u\n", qp->tx_index); 494 "tx_index (H) - \t%u\n", qp->tx_index);
495 out_offset += snprintf(buf + out_offset, out_count - out_offset, 495 out_offset += snprintf(buf + out_offset, out_count - out_offset,
496 "tx_max_entry - \t%u\n", qp->tx_max_entry); 496 "RRI (T) - \t%u\n",
497 out_offset += snprintf(buf + out_offset, out_count - out_offset,
498 "qp->remote_rx_info->entry - \t%u\n",
499 qp->remote_rx_info->entry); 497 qp->remote_rx_info->entry);
500 out_offset += snprintf(buf + out_offset, out_count - out_offset, 498 out_offset += snprintf(buf + out_offset, out_count - out_offset,
499 "tx_max_entry - \t%u\n", qp->tx_max_entry);
500 out_offset += snprintf(buf + out_offset, out_count - out_offset,
501 "free tx - \t%u\n", 501 "free tx - \t%u\n",
502 ntb_transport_tx_free_entry(qp)); 502 ntb_transport_tx_free_entry(qp));
503 503
504 out_offset += snprintf(buf + out_offset, out_count - out_offset, 504 out_offset += snprintf(buf + out_offset, out_count - out_offset,
505 "\nQP Link %s\n", 505 "\n");
506 out_offset += snprintf(buf + out_offset, out_count - out_offset,
507 "Using DMA - \t%s\n", use_dma ? "Yes" : "No");
508 out_offset += snprintf(buf + out_offset, out_count - out_offset,
509 "QP Link - \t%s\n",
506 qp->link_is_up ? "Up" : "Down"); 510 qp->link_is_up ? "Up" : "Down");
511 out_offset += snprintf(buf + out_offset, out_count - out_offset,
512 "\n");
513
507 if (out_offset > out_count) 514 if (out_offset > out_count)
508 out_offset = out_count; 515 out_offset = out_count;
509 516