Skip to contentSkip to conversation

IB/qib: add err_decode() call for ring dump

PATCH New Mike Marciniszyn 1 participant 1 message Jul 19, 2013 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 IB/qib: add err_decode() call for ring dump

Commit b3ddf380 ("Log all SDMA errors unconditionally") missed part of the patch.

This also corrects a format warning when dma_addr_t is 32 bits on a 64 bit system.

---
 drivers/infiniband/hw/qib/qib_iba7322.c |    2 ++
 drivers/infiniband/hw/qib/qib_sdma.c    |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/infiniband/hw/qib/qib_iba7322.c +2 -0
index 21e8b09..016e742 100644
@@ -1596,6 +1596,8 @@ static void sdma_7322_p_errors(struct qib_pportdata *ppd, u64 errs)
 	struct qib_devdata *dd = ppd->dd;
 
 	errs &= QIB_E_P_SDMAERRS;
+	err_decode(ppd->cpspec->sdmamsgbuf, sizeof(ppd->cpspec->sdmamsgbuf),
+		   errs, qib_7322p_error_msgs);
 
 	if (errs & QIB_E_P_SDMAUNEXPDATA)
 		qib_dev_err(dd, "IB%u:%u SDmaUnexpData\n", dd->unit,
drivers/infiniband/hw/qib/qib_sdma.c +1 -1
index f63b2ac..c6d6a54 100644
@@ -723,7 +723,7 @@ void dump_sdma_state(struct qib_pportdata *ppd)
 	struct qib_sdma_txreq *txp, *txpnext;
 	__le64 *descqp;
 	u64 desc[2];
-	dma_addr_t addr;
+	u64 addr;
 	u16 gen, dwlen, dwoffset;
 	u16 head, tail, cnt;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html