aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/chip.h
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-04-14 08:31:36 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:29 -0400
commitfeb831ddf2f2cfbc4d26d9df3a982790f6fbbf6a (patch)
tree4c2967f2a812b59d40f5d1f7ab0b459d6f1e5728 /drivers/staging/rdma/hfi1/chip.h
parentIB/hfi1: Ignore link downgrade with 0 lanes (diff)
downloadlinux-dev-feb831ddf2f2cfbc4d26d9df3a982790f6fbbf6a.tar.xz
linux-dev-feb831ddf2f2cfbc4d26d9df3a982790f6fbbf6a.zip
IB/hfi1: Use the neighbor link down reason only when valid
The 8051 uses a link down reason to inform the driver why the link went down. The neighbor planned link down reason code is only valid when a link down idle message is received by the 8051. Enhance the explanation on why the link went down. Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.h')
-rw-r--r--drivers/staging/rdma/hfi1/chip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.h b/drivers/staging/rdma/hfi1/chip.h
index e02e00619adc..1948706fff1a 100644
--- a/drivers/staging/rdma/hfi1/chip.h
+++ b/drivers/staging/rdma/hfi1/chip.h
@@ -389,6 +389,7 @@
#define LAST_REMOTE_STATE_COMPLETE 0x13
#define LINK_QUALITY_INFO 0x14
#define REMOTE_DEVICE_ID 0x15
+#define LINK_DOWN_REASON 0x16
/* 8051 lane specific register field IDs */
#define TX_EQ_SETTINGS 0x00
@@ -497,6 +498,11 @@
#define PWRM_BER_CONTROL 0x1
#define PWRM_BANDWIDTH_CONTROL 0x2
+/* 8051 link down reasons */
+#define LDR_LINK_TRANSFER_ACTIVE_LOW 0xa
+#define LDR_RECEIVED_LINKDOWN_IDLE_MSG 0xb
+#define LDR_RECEIVED_HOST_OFFLINE_REQ 0xc
+
/* verify capability fabric CRC size bits */
enum {
CAP_CRC_14B = (1 << 0), /* 14b CRC */