aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/t4.h
diff options
context:
space:
mode:
authorHariprasad Shenai <hariprasad@chelsio.com>2014-07-14 12:04:53 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-15 19:25:16 -0400
commit031cf4769bc4504d046074274d1ecd70d89d20b8 (patch)
tree9fc2ee18f4ee2cf26c365e4e3083ed8994c105e7 /drivers/infiniband/hw/cxgb4/t4.h
parent4c2c5763227a14ce111d6f35df708459d2443cc3 (diff)
cxgb4/iw_cxgb4: display TPTE on errors
With ingress WRITE or READ RESPONSE errors, HW provides the offending stag from the packet. This patch adds logic to log the parsed TPTE in this case. cxgb4 now exports a function to read a TPTE entry from adapter memory. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/t4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/t4.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/t4.h b/drivers/infiniband/hw/cxgb4/t4.h
index e64fa8b2be06..dd45186d1c55 100644
--- a/drivers/infiniband/hw/cxgb4/t4.h
+++ b/drivers/infiniband/hw/cxgb4/t4.h
@@ -236,8 +236,8 @@ struct t4_cqe {
236#define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx) 236#define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx)
237 237
238/* generic accessor macros */ 238/* generic accessor macros */
239#define CQE_WRID_HI(x) ((x)->u.gen.wrid_hi) 239#define CQE_WRID_HI(x) (be32_to_cpu((x)->u.gen.wrid_hi))
240#define CQE_WRID_LOW(x) ((x)->u.gen.wrid_low) 240#define CQE_WRID_LOW(x) (be32_to_cpu((x)->u.gen.wrid_low))
241 241
242/* macros for flit 3 of the cqe */ 242/* macros for flit 3 of the cqe */
243#define S_CQE_GENBIT 63 243#define S_CQE_GENBIT 63