staging/rdma/hfi1: Support alternate firmware names
Subsystems (2)
PATCH 1/18 staging/rdma/hfi1: Support alternate firmware names
From: Dean Luick <[email protected]>
Add support for an automatic fallback for firmware names.
--- drivers/staging/rdma/hfi1/firmware.c | 189 ++++++++++++++++++++++++++++------ 1 files changed, 157 insertions(+), 32 deletions(-)
drivers/staging/rdma/hfi1/firmware.c +157 -32
@@ -68,6 +68,10 @@#define DEFAULT_FW_SBUS_NAME "hfi1_sbus.fw"#define DEFAULT_FW_PCIE_NAME "hfi1_pcie.fw"#define DEFAULT_PLATFORM_CONFIG_NAME "hfi1_platform.dat" +#define ALT_FW_8051_NAME_ASIC "hfi1_dc8051_d.fw" +#define ALT_FW_FABRIC_NAME "hfi1_fabric_d.fw" +#define ALT_FW_SBUS_NAME "hfi1_sbus_d.fw" +#define ALT_FW_PCIE_NAME "hfi1_pcie_d.fw"static uint fw_8051_load =1 ;static uint fw_fabric_serdes_load =1 ;
@@ -158,7 +162,8 @@ struct firmware_details {static DEFINE_MUTEX (fw_mutex);enum fw_state {FW_EMPTY , -FW_ACQUIRED , +FW_TRY , +FW_FINAL ,FW_ERR };static enum fw_state fw_state =FW_EMPTY ;
@@ -428,8 +433,8 @@ static int obtain_one_firmware(struct hfi1_devdata *dd, const char *name, ret =request_firmware (&fdet->fw, name, &dd->pcidev->dev);if (ret) { -dd_dev_err (dd,"cannot load firmware \"%s\", err %d\n" , - name, ret); +dd_dev_err (dd,"cannot find firmware \"%s\", err %d\n" , + name, ret);return ret; }
@@ -539,28 +544,53 @@ done:static void dispose_one_firmware (struct firmware_details *fdet) {release_firmware (fdet->fw); - fdet->fw =NULL ; +/* erase all previous information */ +memset (fdet,0 ,sizeof (*fdet)); }/* -* Called by all HFIs when loading their firmware - i.e. device probe time. -* The first one will do the actual firmware load. Use a mutex to resolve -* any possible race condition. +* Obtain the 4 firmwares from the OS. All must be obtained at once or not +* at all. If called with the firmware state in FW_TRY, use alternate names. +* On exit, this routine will have set the firmware state to one of FW_TRY, +* FW_FINAL, or FW_ERR. * -* The call to this routine cannot be moved to driver load because the kernel -* call request_firmware() requires a device which is only available after -* the first device probe. +* Must be holding fw_mutex. */ -static int obtain_firmware (struct hfi1_devdata *dd) +static void __obtain_firmware (struct hfi1_devdata *dd) {int err =0 ; -mutex_lock (&fw_mutex); -if (fw_state ==FW_ACQUIRED ) { - goto done;/* already acquired */ - }else if (fw_state ==FW_ERR ) { - err = fw_err; - goto done;/* already tried and failed */ +if (fw_state ==FW_FINAL )/* nothing more to obtain */ +return ; +if (fw_state ==FW_ERR )/* already in error */ +return ; + +/* fw_state is FW_EMPTY or FW_TRY */ +retry: +if (fw_state ==FW_TRY ) { +/* +* We tried the original and it failed. Move to the +* alternate. +*/ +dd_dev_info (dd,"using alternate firmware names\n" ); +/* +* Let others run. Some systems, when missing firmware, does +* something that holds for 30 seconds. If we do that twice +* in a row it triggers task blocked warning. +*/ +cond_resched (); +if (fw_8051_load) +dispose_one_firmware (&fw_8051); +if (fw_fabric_serdes_load) +dispose_one_firmware (&fw_fabric); +if (fw_sbus_load) +dispose_one_firmware (&fw_sbus); +if (fw_pcie_serdes_load) +dispose_one_firmware (&fw_pcie); + fw_8051_name =ALT_FW_8051_NAME_ASIC ; + fw_fabric_serdes_name =ALT_FW_FABRIC_NAME ; + fw_sbus_name =ALT_FW_SBUS_NAME ; + fw_pcie_serdes_name =ALT_FW_PCIE_NAME ; }if (fw_8051_load) {
@@ -588,27 +618,82 @@ static int obtain_firmware(struct hfi1_devdata *dd) goto done; } +done: +if (err) { +/* oops, had problems obtaining a firmware */ +if (fw_state ==FW_EMPTY ) { +/* retry with alternate */ + fw_state =FW_TRY ; + goto retry; + } + fw_state =FW_ERR ; + fw_err = -ENOENT ; + }else { +/* success */ +if (fw_state ==FW_EMPTY ) + fw_state =FW_TRY ;/* may retry later */ +else + fw_state =FW_FINAL ;/* cannot try again */ + } +} + +/* +* Called by all HFIs when loading their firmware - i.e. device probe time. +* The first one will do the actual firmware load. Use a mutex to resolve +* any possible race condition. +* +* The call to this routine cannot be moved to driver load because the kernel +* call request_firmware() requires a device which is only available after +* the first device probe. +*/ +static int obtain_firmware (struct hfi1_devdata *dd) +{ +unsigned long timeout; +int err =0 ; + +mutex_lock (&fw_mutex); + +/* 40s delay due to long delay on missing firmware on some systems */ + timeout = jiffies +msecs_to_jiffies (40000 ); +while (fw_state ==FW_TRY ) { +/* +* Another device is trying the firmware. Wait until it +* decides what works (or not). +*/ +if (time_after (jiffies, timeout)) { +/* waited too long */ +dd_dev_err (dd,"Timeout waiting for firmware try" ); + fw_state =FW_ERR ; + fw_err = -ETIMEDOUT ; +break ; + } +mutex_unlock (&fw_mutex); +msleep (20 );/* arbitrary delay */ +mutex_lock (&fw_mutex); + } +/* not in FW_TRY state */ + +if (fw_state ==FW_FINAL ) + goto done;/* already acquired */ +else if (fw_state ==FW_ERR ) + goto done;/* already tried and failed */ +/* fw_state is FW_EMPTY */ + +/* set fw_state to FW_TRY, FW_FINAL, or FW_ERR, and fw_err */ +__obtain_firmware (dd); +if (platform_config_load) { platform_config =NULL ; err =request_firmware (&platform_config, platform_config_name, &dd->pcidev->dev); -if (err) { - err =0 ; +if (err) platform_config =NULL ; - } } -/* success */ - fw_state =FW_ACQUIRED ; - done: -if (err) { - fw_err = err; - fw_state =FW_ERR ; - }mutex_unlock (&fw_mutex); -return err; +return fw_err; }/*
@@ -638,6 +723,38 @@ void dispose_firmware(void) }/* +* Called with the result of a firmware download. +* +* Return 1 to retry loading the firmware, 0 to stop. +*/ +static int retry_firmware (struct hfi1_devdata *dd,int load_result) +{ +int retry; + +mutex_lock (&fw_mutex); + +if (load_result ==0 ) { +/* +* The load succeeded, so expect all others to do the same. +* Do not retry again. +*/ +if (fw_state ==FW_TRY ) + fw_state =FW_FINAL ; + retry =0 ;/* do NOT retry */ + }else if (fw_state ==FW_TRY ) { +/* load failed, obtain alternate firmware */ +__obtain_firmware (dd); + retry = (fw_state ==FW_FINAL ); + }else { +/* else in FW_FINAL or FW_ERR, no retry in either case */ + retry =0 ; + } + +mutex_unlock (&fw_mutex); +return retry; +} + +/* * Write a block of data to a given array CSR. All calls will be in * multiples of 8 bytes. */
@@ -1248,7 +1365,9 @@ int load_firmware(struct hfi1_devdata *dd) fabric_serdes_addrs[dd->hfi1_id], NUM_FABRIC_SERDES);turn_off_spicos (dd,SPICO_FABRIC ); - ret =load_fabric_serdes_firmware (dd, &fw_fabric); +do { + ret =load_fabric_serdes_firmware (dd, &fw_fabric); + }while (retry_firmware (dd, ret));clear_sbus_fast_mode (dd);release_hw_mutex (dd);
@@ -1257,7 +1376,9 @@ int load_firmware(struct hfi1_devdata *dd) }if (fw_8051_load) { - ret =load_8051_firmware (dd, &fw_8051); +do { + ret =load_8051_firmware (dd, &fw_8051); + }while (retry_firmware (dd, ret));if (ret)return ret; }
@@ -1570,7 +1691,9 @@ int load_pcie_firmware(struct hfi1_devdata *dd)if (fw_sbus_load && (dd->flags &HFI1_DO_INIT_ASIC )) {turn_off_spicos (dd,SPICO_SBUS ); - ret =load_sbus_firmware (dd, &fw_sbus); +do { + ret =load_sbus_firmware (dd, &fw_sbus); + }while (retry_firmware (dd, ret));if (ret) goto done; }
@@ -1581,7 +1704,9 @@ int load_pcie_firmware(struct hfi1_devdata *dd) pcie_serdes_broadcast[dd->hfi1_id], pcie_serdes_addrs[dd->hfi1_id], NUM_PCIE_SERDES); - ret =load_pcie_serdes_firmware (dd, &fw_pcie); +do { + ret =load_pcie_serdes_firmware (dd, &fw_pcie); + }while (retry_firmware (dd, ret));if (ret) goto done; }
Signature · 1 line
1.7.0.7
PATCH 2/18 staging/rdma/hfi1: Decode CNP opcode
From: Dean Luick <[email protected]>
Add CNP opcode decode
--- drivers/staging/rdma/hfi1/trace.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/staging/rdma/hfi1/trace.h +2 -1
@@ -417,7 +417,8 @@ __print_symbolic(opcode, \ ib_opcode_name(UC_RDMA_WRITE_ONLY), \ ib_opcode_name(UC_RDMA_WRITE_ONLY_WITH_IMMEDIATE), \ ib_opcode_name(UD_SEND_ONLY), \ - ib_opcode_name(UD_SEND_ONLY_WITH_IMMEDIATE)) + ib_opcode_name(UD_SEND_ONLY_WITH_IMMEDIATE), \ + ib_opcode_name(CNP))#define LRH_PRN "vl %d lver %d sl %d lnh %d,%s dlid %.4x len %d slid %.4x"
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-2-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 02/18] staging/rdma/hfi1: Decode CNP opcode
Quoted 3 lines · Jubin John
From: Dean Luick <[email protected]>
Add CNP opcode decode
Why?
--
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
RE: [PATCH 02/18] staging/rdma/hfi1: Decode CNP opcode
Quoted 3 lines
Quoted 1 line
Add CNP opcode decode
Why?
Prior to this patch the trace appeared like:
<idle>-0 [001] d.h. 94062.578932: input_ibhdr: [0000:05:00.0] vl 0 lver 0
sl 0 lnh 2,LRH_BTH dlid 0003 len 6 slid 0001 op 0x80,0x80 se 0 m 0 pad 0 tver 0 pkey 0x8001 f 0 b 0 qpn 0x001234 a 0 psn 0x00000000
Note the "op 0x80,0x80".
With this patch:
<idle>-0 [000] d.h. 233975.912059: input_ibhdr: [0000:05:00.0] vl
0 lver 0 sl 0 lnh 2,LRH_BTH dlid 0015 len 6 slid 0014 op 0x80,CNP se 0 m 0 pad 0 tver 0 pkey 0x8001 f 0 b 0 qpn 0x001234 a 0 psn 0x00000000
Note the "op 0x80,CNP"
Mike
PATCH 3/18 staging/rdma/hfi1: Add aeth name syndrome decode
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
Add aeth name syndrome decode
--- drivers/staging/rdma/hfi1/trace.c | 29 ++++++++++++++++++++++------- 1 files changed, 22 insertions(+), 7 deletions(-)
drivers/staging/rdma/hfi1/trace.c +22 -7
@@ -67,7 +67,7 @@ u8 ibhdr_exhdr_len(struct hfi1_ib_header *hdr)#define IMM_PRN "imm %d"#define RETH_PRN "reth vaddr 0x%.16llx rkey 0x%.8x dlen 0x%.8x" -#define AETH_PRN "aeth syn 0x%.2x msn 0x%.8x" +#define AETH_PRN "aeth syn 0x%.2x %s msn 0x%.8x"#define DETH_PRN "deth qkey 0x%.8x sqpn 0x%.6x"#define ATOMICACKETH_PRN "origdata %lld"#define ATOMICETH_PRN "vaddr 0x%llx rkey 0x%.8x sdata %lld cdata %lld"
@@ -79,6 +79,19 @@ static u64 ib_u64_get(__be32 *p)return ((u64 )be32_to_cpu (p[0 ]) <<32 ) |be32_to_cpu (p[1 ]); } +static const char *parse_syndrome (u8 syndrome) +{ +switch (syndrome >>5 ) { +case 0 : +return "ACK" ; +case 1 : +return "RNRNAK" ; +case 3 : +return "NAK" ; + } +return "" ; +} + const char *parse_everbs_hdrs( struct trace_seq *p, u8 opcode,
@@ -124,16 +137,18 @@ const char *parse_everbs_hdrs(case OP (RC ,RDMA_READ_RESPONSE_LAST ):case OP (RC ,RDMA_READ_RESPONSE_ONLY ):case OP (RC ,ACKNOWLEDGE ): -trace_seq_printf (p,AETH_PRN , -be32_to_cpu (eh->aeth) >>24 , -be32_to_cpu (eh->aeth) &HFI1_MSN_MASK ); +trace_seq_printf (p,AETH_PRN ,be32_to_cpu (eh->aeth) >>24 , +parse_syndrome (be32_to_cpu (eh->aeth) >>24 ), +be32_to_cpu (eh->aeth) &HFI1_MSN_MASK );break ;/* aeth + atomicacketh */ case OP (RC ,ATOMIC_ACKNOWLEDGE ):trace_seq_printf (p,AETH_PRN " " ATOMICACKETH_PRN , - (be32_to_cpu (eh->at.aeth) >>24 ) &0xff , -be32_to_cpu (eh->at.aeth) &HFI1_MSN_MASK , - (unsigned long long )ib_u64_get (eh->at.atomic_ack_eth)); +be32_to_cpu (eh->at.aeth) >>24 , +parse_syndrome (be32_to_cpu (eh->at.aeth) >>24 ), +be32_to_cpu (eh->at.aeth) &HFI1_MSN_MASK , + (unsigned long long ) +ib_u64_get (eh->at.atomic_ack_eth));break ;/* atomiceth */ case OP (RC ,COMPARE_SWAP ):
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-3-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 03/18] staging/rdma/hfi1: Add aeth name syndrome decode
Quoted 3 lines · Jubin John
From: Dean Luick <[email protected]>
Add aeth name syndrome decode
Again, why?
Come on, be more descriptive about why you are making the change, not what the change is, we can all read code.
Please fix this whole series up and resend.
thanks,
greg k-h
--
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: [PATCH 03/18] staging/rdma/hfi1: Add aeth name syndrome decode
Quoted 4 lines
Quoted 1 line
Add aeth name syndrome decode
Again, why?
This fix is to enhance debugging.
The IBTA RC ACK contains an ACK extended transport header.
Part of that header is the syndrome field that qualifies the RC ACK as an ACK, NAK, or RNR NAK.
Without the patch here is the syndrome decode:
aeth syn 0x00
Here is the decode with the fix:
aeth syn 0x00 ACK
Mike
--
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
PATCH 4/18 staging/rdma/hfi1: Fix qp.h comments
In reply to Jubin JohnFrom: Kaike Wan <[email protected]>
This patch fixes a few qp.h comments.
--- drivers/staging/rdma/hfi1/qp.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rdma/hfi1/qp.h +4 -4
@@ -212,7 +212,7 @@ int hfi1_qp_init(struct hfi1_ibdev *dev);void hfi1_qp_exit (struct hfi1_ibdev *dev);/** -* hfi1_qp_waitup - wake up on the indicated event +* hfi1_qp_wakeup - wake up on the indicated event * @qp: the QP * @flag: flag the qp on which the qp is stalled */
@@ -223,19 +223,19 @@ struct sdma_engine *qp_to_sdma_engine(struct hfi1_qp *qp, u8 sc5);struct qp_iter ;/** -* qp_iter_init - wake up on the indicated event +* qp_iter_init - initialize the iterator for the qp hash list * @dev: the hfi1_ibdev */ struct qp_iter *qp_iter_init (struct hfi1_ibdev *dev);/** -* qp_iter_next - wakeup on the indicated event +* qp_iter_next - Find the next qp in the hash list * @iter: the iterator for the qp hash list */ int qp_iter_next (struct qp_iter *iter);/** -* qp_iter_next - wake up on the indicated event +* qp_iter_print - print the qp information to seq_file * @s: the seq_file to emit the qp information on * @iter: the iterator for the qp hash list */
Signature · 1 line
1.7.0.7
PATCH 5/18 staging/rdma/hfi1: Clean up comments
In reply to Jubin JohnFrom: Edward Mascarenhas <[email protected]>
Clean up comments
--- drivers/staging/rdma/hfi1/chip.c | 1 - drivers/staging/rdma/hfi1/driver.c | 2 +- drivers/staging/rdma/hfi1/hfi.h | 4 ++-- drivers/staging/rdma/hfi1/pcie.c | 2 +- drivers/staging/rdma/hfi1/ud.c | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-)
drivers/staging/rdma/hfi1/chip.c +0 -1
@@ -10274,7 +10274,6 @@ int hfi1_set_ctxt_jkey(struct hfi1_devdata *dd, unsigned ctxt, u16 jkey)write_kctxt_csr (dd, sctxt,SEND_CTXT_CHECK_JOB_KEY , reg);/* * Enable send-side J_KEY integrity check, unless this is A0 h/w -* (due to A0 erratum). */ if (!is_a0 (dd)) { reg =read_kctxt_csr (dd, sctxt,SEND_CTXT_CHECK_ENABLE );
drivers/staging/rdma/hfi1/driver.c +1 -1
@@ -368,7 +368,7 @@ static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd,if (opcode ==IB_OPCODE_CNP ) {/* * Only in pre-B0 h/w is the CNP_OPCODE handled -* via this code path (errata 291394). +* via this code path. */ struct hfi1_qp *qp =NULL ;u32 lqpn, rqpn;
drivers/staging/rdma/hfi1/hfi.h +2 -2
@@ -1714,7 +1714,7 @@ static inline u64 hfi1_pkt_default_send_ctxt_mask(struct hfi1_devdata *dd, base_sc_integrity |=HFI1_PKT_KERNEL_SC_INTEGRITY ;if (is_a0 (dd)) -/* turn off send-side job key checks - A0 erratum */ +/* turn off send-side job key checks - A0 */ return base_sc_integrity & ~SEND_CTXT_CHECK_ENABLE_CHECK_JOB_KEY_SMASK ;return base_sc_integrity;
@@ -1741,7 +1741,7 @@ static inline u64 hfi1_pkt_base_sdma_integrity(struct hfi1_devdata *dd) | SEND_DMA_CHECK_ENABLE_CHECK_ENABLE_SMASK;if (is_a0 (dd)) -/* turn off send-side job key checks - A0 erratum */ +/* turn off send-side job key checks - A0 */ return base_sdma_integrity & ~SEND_DMA_CHECK_ENABLE_CHECK_JOB_KEY_SMASK ;return base_sdma_integrity;
drivers/staging/rdma/hfi1/pcie.c +1 -1
@@ -994,7 +994,7 @@ retry:* PcieCfgRegPl100 - Gen3 Control * * turn off PcieCfgRegPl100.Gen3ZRxDcNonCompl -* turn on PcieCfgRegPl100.EqEieosCnt (erratum) +* turn on PcieCfgRegPl100.EqEieosCnt * Everything else zero. */ reg32 =PCIE_CFG_REG_PL100_EQ_EIEOS_CNT_SMASK ;
drivers/staging/rdma/hfi1/ud.c +1 -1
@@ -671,7 +671,7 @@ void hfi1_ud_rcv(struct hfi1_packet *packet)if (unlikely (bth1 &HFI1_BECN_SMASK )) {/* * In pre-B0 h/w the CNP_OPCODE is handled via an -* error path (errata 291394). +* error path. */ struct hfi1_pportdata *ppd =ppd_from_ibp (ibp);u32 lqpn =be32_to_cpu (ohdr->bth[1 ]) &HFI1_QPN_MASK ;
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-5-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 05/18] staging/rdma/hfi1: Clean up comments
Quoted 3 lines · Jubin John
From: Edward Mascarenhas <[email protected]>
Clean up comments
In what way?
--
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: [PATCH 05/18] staging/rdma/hfi1: Clean up comments
Quoted 4 lines
Quoted 1 line
Clean up comments
In what way?
The patch deleted numbering and terms internal to intel.
The information on the actual bugs is not deleted.
Mike
--
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
PATCH 6/18 staging/rdma/hfi: Add one-time LCB reset
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
Add one-time LCB reset on driver load to pre-emptively work around any LCB power cycle issues.
--- drivers/staging/rdma/hfi1/chip.c | 20 ++++++++++++++++++++ drivers/staging/rdma/hfi1/chip_registers.h | 3 +++ 2 files changed, 23 insertions(+), 0 deletions(-)
drivers/staging/rdma/hfi1/chip.c +20 -0
@@ -5856,6 +5856,23 @@ void init_qsfp(struct hfi1_pportdata *ppd) } } +/* +* Do a one-time initialize of the LCB block. +*/ +static void init_lcb (struct hfi1_devdata *dd) +{ +/* the DC has been reset earlier in the driver load */ + +/* set LCB for cclk loopback on the port */ +write_csr (dd,DC_LCB_CFG_TX_FIFOS_RESET ,0x01 ); +write_csr (dd,DC_LCB_CFG_LANE_WIDTH ,0x00 ); +write_csr (dd,DC_LCB_CFG_REINIT_AS_SLAVE ,0x00 ); +write_csr (dd,DC_LCB_CFG_CNT_FOR_SKIP_STALL ,0x110 ); +write_csr (dd,DC_LCB_CFG_CLK_CNTR ,0x08 ); +write_csr (dd,DC_LCB_CFG_LOOPBACK ,0x02 ); +write_csr (dd,DC_LCB_CFG_TX_FIFOS_RESET ,0x00 ); +} +int bringup_serdes (struct hfi1_pportdata *ppd) {struct hfi1_devdata *dd = ppd->dd;
@@ -5877,6 +5894,9 @@ int bringup_serdes(struct hfi1_pportdata *ppd)/* Set linkinit_reason on power up per OPA spec */ ppd->linkinit_reason =OPA_LINKINIT_REASON_LINKUP ; +/* one-time init of the LCB */ +init_lcb (dd); +if (loopback) { ret =init_loopback (dd);if (ret <0 )
drivers/staging/rdma/hfi1/chip_registers.h +3 -0
@@ -318,6 +318,9 @@#define DC_LCB_CFG_TX_FIFOS_RADR_RST_VAL_SHIFT 0#define DC_LCB_CFG_TX_FIFOS_RESET (DC_LCB_CSRS + 0x000000000008)#define DC_LCB_CFG_TX_FIFOS_RESET_VAL_SHIFT 0 +#define DC_LCB_CFG_REINIT_AS_SLAVE (DC_LCB_CSRS + 0x000000000030) +#define DC_LCB_CFG_CNT_FOR_SKIP_STALL (DC_LCB_CSRS + 0x000000000040) +#define DC_LCB_CFG_CLK_CNTR (DC_LCB_CSRS + 0x000000000110)#define DC_LCB_ERR_CLR (DC_LCB_CSRS + 0x000000000308)#define DC_LCB_ERR_EN (DC_LCB_CSRS + 0x000000000310)#define DC_LCB_ERR_FLG (DC_LCB_CSRS + 0x000000000300)
Signature · 1 line
1.7.0.7
Greg KH
maintainerRe: [PATCH 06/18] staging/rdma/hfi: Add one-time LCB reset
Quoted 4 lines · Jubin John
From: Dean Luick <[email protected]>
Add one-time LCB reset on driver load to pre-emptively work around any LCB power cycle issues.
You dropped a character in your Subject line :(
PATCH 7/18 staging/rdma/hfi1: Extend quiet timeout
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
The longest quiet timeout is now 6s. Extend the driver wait.
--- drivers/staging/rdma/hfi1/chip.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/staging/rdma/hfi1/chip.c +3 -2
@@ -6339,9 +6339,10 @@ static int goto_offline(struct hfi1_pportdata *ppd, u8 rem_reason)* depending on how the link went down. The 8051 firmware * will observe the needed wait time and only move to ready * when that is completed. The largest of the quiet timeouts -* is 2.5s, so wait that long and then a bit more. +* is 6s, so wait that long and then at least 0.5s more for +* other transitions, and another 0.5s for a buffer. */ - ret =wait_fm_ready (dd,3000 ); + ret =wait_fm_ready (dd,7000 );if (ret) {dd_dev_err (dd,"After going offline, timed out waiting for the 8051 to become ready to accept host requests\n" );
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-7-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 07/18] staging/rdma/hfi1: Extend quiet timeout
Quoted 3 lines · Jubin John
From: Dean Luick <[email protected]>
The longest quiet timeout is now 6s. Extend the driver wait.
To what? And why? What does this fix?
--
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: [PATCH 07/18] staging/rdma/hfi1: Extend quiet timeout
Quoted 4 lines
Quoted 1 line
The longest quiet timeout is now 6s. Extend the driver wait.
To what? And why? What does this fix?
The driver wasn't following the our internal specification: 6 seconds.
The patch corrects that issue.
Mike
--
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
A message that is not in the archive (sent off-list or not yet received): 32E1700B9017364D9B60AED9960492BC259BD7AF-RjuIdWtd+YbTXloPLtfHfbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [PATCH 07/18] staging/rdma/hfi1: Extend quiet timeout
Quoted 8 lines · Mike
Quoted 4 lines
Quoted 1 line
The longest quiet timeout is now 6s. Extend the driver wait.
To what? And why? What does this fix?
The driver wasn't following the our internal specification: 6 seconds.
The patch corrects that issue.
Does that mean the patch fixes something which is visible to the user? A better description would be:
We added XXX long timeout so now the longest timeout is 6 seconds in our spec. It shouldn't affect most users but something something prevents a hang.
I had all the same issues that Greg did with these patch descriptions so it was predictable that he was going to complain.
regards,
dan carpenter
--
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
PATCH 8/18 staging/rdma/hfi1: Add a credit push on diagpkt allocate fail
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
When sending a diagnostic packet, if the send context does not have enough room, force a credit return and try again.
--- drivers/staging/rdma/hfi1/diag.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/staging/rdma/hfi1/diag.c +8 -0
@@ -379,6 +379,7 @@ static ssize_t diagpkt_send(struct diag_pkt *dp)pio_release_cb credit_cb =NULL ;void *credit_arg =NULL ;struct diagpkt_wait *wait =NULL ; +int trycount =0 ; dd =hfi1_lookup (dp->unit);if (!dd || !(dd->flags &HFI1_PRESENT ) || !dd->kregbase) {
@@ -493,8 +494,15 @@ static ssize_t diagpkt_send(struct diag_pkt *dp) credit_arg = wait; } +retry: pbuf =sc_buffer_alloc (sc, total_len, credit_cb, credit_arg);if (!pbuf) { +if (trycount ==0 ) { +/* force a credit return and try again */ +sc_return_credits (sc); + trycount =1 ; + goto retry; + }/* * No send buffer means no credit callback. Undo * the wait set-up that was done above. We free wait
Signature · 1 line
1.7.0.7
PATCH 9/18 staging/rdma/hfi1: Correctly limit VLs against SDMA engines
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
Correctly reduce the number of VLs when limited by the number of SDMA engines.
--- drivers/staging/rdma/hfi1/chip.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rdma/hfi1/chip.c +3 -3
@@ -10574,9 +10574,9 @@ struct hfi1_devdata *hfi1_init_dd(struct pci_dev *pdev,/* insure num_vls isn't larger than number of sdma engines */ if (HFI1_CAP_IS_KSET (SDMA ) && num_vls > dd->chip_sdma_engines) {dd_dev_err (dd,"num_vls %u too large, using %u VLs\n" , - num_vls,HFI1_MAX_VLS_SUPPORTED ); - ppd->vls_supported = num_vls =HFI1_MAX_VLS_SUPPORTED ; - ppd->vls_operational = ppd->vls_supported; + num_vls, dd->chip_sdma_engines); + num_vls = dd->chip_sdma_engines; + ppd->vls_supported = dd->chip_sdma_engines; }/*
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-9-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 09/18] staging/rdma/hfi1: Correctly limit VLs against SDMA engines
Quoted 4 lines · Jubin John
From: Dean Luick <[email protected]>
Correctly reduce the number of VLs when limited by the number of SDMA engines.
why? What does this "solve"?
--
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
RE: [PATCH 09/18] staging/rdma/hfi1: Correctly limit VLs against SDMA engines
Quoted 6 lines
Quoted 4 lines
From: Dean Luick <[email protected]>
Correctly reduce the number of VLs when limited by the number of SDMA engines.
why? What does this "solve"?
The hardware has multiple egress mechanisms, SDMA and pio, and multiples of those.
These mechanisms are chosen using the VL (8)
The fix corrects a panic issue with one of the platforms that doesn't have enough SDMA (4) mechanisms for the typical number of VLs.
Mike
--
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
PATCH 10/18 staging/rdma/hfi1: Adds software counters for bitfields within various error status fields
In reply to Jubin JohnFrom: Joel Rosenzweig <[email protected]>
Provides error status counters for CceErrStatus, Send*ErrStatus, RcvErrStatus and MISC_ERR_STATUS
--- drivers/staging/rdma/hfi1/chip.c | 3185 +++++++++++++++++++++++++++++++++++++- drivers/staging/rdma/hfi1/chip.h | 269 ++++ drivers/staging/rdma/hfi1/hfi.h | 34 + 3 files changed, 3487 insertions(+), 1 deletions(-)
drivers/staging/rdma/hfi1/chip.c +3184 -1
@@ -663,7 +663,7 @@ static struct flag_table egress_err_info_flags[] = {*/ #define SES (name) SEND_ERR_STATUS_SEND_##name##_ERR_SMASKstatic struct flag_table send_err_status_flags[] = { -/* 0*/ FLAG_ENTRY0 ("SDmaRpyTagErr" ,SES (CSR_PARITY )), +/* 0*/ FLAG_ENTRY0 ("SendCsrParityErr" ,SES (CSR_PARITY )),/* 1*/ FLAG_ENTRY0 ("SendCsrReadBadAddrErr" ,SES (CSR_READ_BAD_ADDR )),/* 2*/ FLAG_ENTRY0 ("SendCsrWriteBadAddrErr" ,SES (CSR_WRITE_BAD_ADDR )) };
@@ -1538,6 +1538,2336 @@ static u64 access_sw_send_schedule(const struct cntr_entry *entry,return dd->verbs_dev.n_send_schedule; } +/* Software counters for the error status bits within MISC_ERR_STATUS */ +static u64 access_misc_pll_lock_fail_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[12 ]; +} + +static u64 access_misc_mbist_fail_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[11 ]; +} + +static u64 access_misc_invalid_eep_cmd_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[10 ]; +} + +static u64 access_misc_efuse_done_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[9 ]; +} + +static u64 access_misc_efuse_write_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[8 ]; +} + +static u64 access_misc_efuse_read_bad_addr_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[7 ]; +} + +static u64 access_misc_efuse_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[6 ]; +} + +static u64 access_misc_fw_auth_failed_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[5 ]; +} + +static u64 access_misc_key_mismatch_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[4 ]; +} + +static u64 access_misc_sbus_write_failed_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[3 ]; +} + +static u64 access_misc_csr_write_bad_addr_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[2 ]; +} + +static u64 access_misc_csr_read_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[1 ]; +} + +static u64 access_misc_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->misc_err_status_cnt[0 ]; +} + +/* +* Software counter for the aggregate of +* individual CceErrStatus counters +*/ +static u64 access_sw_cce_err_status_aggregated_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_cce_err_status_aggregate; +} + +/* +* Software counters corresponding to each of the +* error status bits within CceErrStatus +*/ +static u64 access_cce_msix_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[40 ]; +} + +static u64 access_cce_int_map_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[39 ]; +} + +static u64 access_cce_int_map_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[38 ]; +} + +static u64 access_cce_msix_table_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[37 ]; +} + +static u64 access_cce_msix_table_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[36 ]; +} + +static u64 access_cce_rxdma_conv_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[35 ]; +} + +static u64 access_cce_rcpl_async_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[34 ]; +} + +static u64 access_cce_seg_write_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[33 ]; +} + +static u64 access_cce_seg_read_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[32 ]; +} + +static u64 access_la_triggered_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[31 ]; +} + +static u64 access_cce_trgt_cpl_timeout_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[30 ]; +} + +static u64 access_pcic_receive_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[29 ]; +} + +static u64 access_pcic_transmit_back_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[28 ]; +} + +static u64 access_pcic_transmit_front_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[27 ]; +} + +static u64 access_pcic_cpl_dat_q_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[26 ]; +} + +static u64 access_pcic_cpl_hd_q_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[25 ]; +} + +static u64 access_pcic_post_dat_q_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[24 ]; +} + +static u64 access_pcic_post_hd_q_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[23 ]; +} + +static u64 access_pcic_retry_sot_mem_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[22 ]; +} + +static u64 access_pcic_retry_mem_unc_err (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[21 ]; +} + +static u64 access_pcic_n_post_dat_q_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[20 ]; +} + +static u64 access_pcic_n_post_h_q_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[19 ]; +} + +static u64 access_pcic_cpl_dat_q_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[18 ]; +} + +static u64 access_pcic_cpl_hd_q_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[17 ]; +} + +static u64 access_pcic_post_dat_q_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[16 ]; +} + +static u64 access_pcic_post_hd_q_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[15 ]; +} + +static u64 access_pcic_retry_sot_mem_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[14 ]; +} + +static u64 access_pcic_retry_mem_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[13 ]; +} + +static u64 access_cce_cli1_async_fifo_dbg_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[12 ]; +} + +static u64 access_cce_cli1_async_fifo_rxdma_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[11 ]; +} + +static u64 access_cce_cli1_async_fifo_sdma_hd_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[10 ]; +} + +static u64 access_cce_cl1_async_fifo_pio_crdt_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[9 ]; +} + +static u64 access_cce_cli2_async_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[8 ]; +} + +static u64 access_cce_csr_cfg_bus_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[7 ]; +} + +static u64 access_cce_cli0_async_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[6 ]; +} + +static u64 access_cce_rspd_data_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[5 ]; +} + +static u64 access_cce_trgt_access_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[4 ]; +} + +static u64 access_cce_trgt_async_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[3 ]; +} + +static u64 access_cce_csr_write_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[2 ]; +} + +static u64 access_cce_csr_read_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[1 ]; +} + +static u64 access_ccs_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->cce_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within RcvErrStatus +*/ +static u64 access_rx_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[63 ]; +} + +static u64 access_rx_csr_write_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[62 ]; +} + +static u64 access_rx_csr_read_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[61 ]; +} + +static u64 access_rx_dma_csr_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[60 ]; +} + +static u64 access_rx_dma_dq_fsm_encoding_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[59 ]; +} + +static u64 access_rx_dma_eq_fsm_encoding_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[58 ]; +} + +static u64 access_rx_dma_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[57 ]; +} + +static u64 access_rx_rbuf_data_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[56 ]; +} + +static u64 access_rx_rbuf_data_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[55 ]; +} + +static u64 access_rx_dma_data_fifo_rd_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[54 ]; +} + +static u64 access_rx_dma_data_fifo_rd_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[53 ]; +} + +static u64 access_rx_dma_hdr_fifo_rd_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[52 ]; +} + +static u64 access_rx_dma_hdr_fifo_rd_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[51 ]; +} + +static u64 access_rx_rbuf_desc_part2_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[50 ]; +} + +static u64 access_rx_rbuf_desc_part2_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[49 ]; +} + +static u64 access_rx_rbuf_desc_part1_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[48 ]; +} + +static u64 access_rx_rbuf_desc_part1_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[47 ]; +} + +static u64 access_rx_hq_intr_fsm_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[46 ]; +} + +static u64 access_rx_hq_intr_csr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[45 ]; +} + +static u64 access_rx_lookup_csr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[44 ]; +} + +static u64 access_rx_lookup_rcv_array_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[43 ]; +} + +static u64 access_rx_lookup_rcv_array_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[42 ]; +} + +static u64 access_rx_lookup_des_part2_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[41 ]; +} + +static u64 access_rx_lookup_des_part1_unc_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[40 ]; +} + +static u64 access_rx_lookup_des_part1_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[39 ]; +} + +static u64 access_rx_rbuf_next_free_buf_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[38 ]; +} + +static u64 access_rx_rbuf_next_free_buf_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[37 ]; +} + +static u64 access_rbuf_fl_init_wr_addr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[36 ]; +} + +static u64 access_rx_rbuf_fl_initdone_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[35 ]; +} + +static u64 access_rx_rbuf_fl_write_addr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[34 ]; +} + +static u64 access_rx_rbuf_fl_rd_addr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[33 ]; +} + +static u64 access_rx_rbuf_empty_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[32 ]; +} + +static u64 access_rx_rbuf_full_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[31 ]; +} + +static u64 access_rbuf_bad_lookup_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[30 ]; +} + +static u64 access_rbuf_ctx_id_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[29 ]; +} + +static u64 access_rbuf_csr_qeopdw_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[28 ]; +} + +static u64 access_rx_rbuf_csr_q_num_of_pkt_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[27 ]; +} + +static u64 access_rx_rbuf_csr_q_t1_ptr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[26 ]; +} + +static u64 access_rx_rbuf_csr_q_hd_ptr_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[25 ]; +} + +static u64 access_rx_rbuf_csr_q_vld_bit_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[24 ]; +} + +static u64 access_rx_rbuf_csr_q_next_buf_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[23 ]; +} + +static u64 access_rx_rbuf_csr_q_ent_cnt_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[22 ]; +} + +static u64 access_rx_rbuf_csr_q_head_buf_num_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[21 ]; +} + +static u64 access_rx_rbuf_block_list_read_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[20 ]; +} + +static u64 access_rx_rbuf_block_list_read_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[19 ]; +} + +static u64 access_rx_rbuf_lookup_des_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[18 ]; +} + +static u64 access_rx_rbuf_lookup_des_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[17 ]; +} + +static u64 access_rx_rbuf_lookup_des_reg_unc_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[16 ]; +} + +static u64 access_rx_rbuf_lookup_des_reg_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[15 ]; +} + +static u64 access_rx_rbuf_free_list_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[14 ]; +} + +static u64 access_rx_rbuf_free_list_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[13 ]; +} + +static u64 access_rx_rcv_fsm_encoding_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[12 ]; +} + +static u64 access_rx_dma_flag_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[11 ]; +} + +static u64 access_rx_dma_flag_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[10 ]; +} + +static u64 access_rx_dc_sop_eop_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[9 ]; +} + +static u64 access_rx_rcv_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[8 ]; +} + +static u64 access_rx_rcv_qp_map_table_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[7 ]; +} + +static u64 access_rx_rcv_qp_map_table_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[6 ]; +} + +static u64 access_rx_rcv_data_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[5 ]; +} + +static u64 access_rx_rcv_data_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[4 ]; +} + +static u64 access_rx_rcv_hdr_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[3 ]; +} + +static u64 access_rx_rcv_hdr_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[2 ]; +} + +static u64 access_rx_dc_intf_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[1 ]; +} + +static u64 access_rx_dma_csr_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->rcv_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendPioErrStatus +*/ +static u64 access_pio_pec_sop_head_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[35 ]; +} + +static u64 access_pio_pcc_sop_head_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[34 ]; +} + +static u64 access_pio_last_returned_cnt_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[33 ]; +} + +static u64 access_pio_current_free_cnt_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[32 ]; +} + +static u64 access_pio_reserved_31_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[31 ]; +} + +static u64 access_pio_reserved_30_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[30 ]; +} + +static u64 access_pio_ppmc_sop_len_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[29 ]; +} + +static u64 access_pio_ppmc_bqc_mem_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[28 ]; +} + +static u64 access_pio_vl_fifo_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[27 ]; +} + +static u64 access_pio_vlf_sop_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[26 ]; +} + +static u64 access_pio_vlf_v1_len_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[25 ]; +} + +static u64 access_pio_block_qw_count_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[24 ]; +} + +static u64 access_pio_write_qw_valid_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[23 ]; +} + +static u64 access_pio_state_machine_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[22 ]; +} + +static u64 access_pio_write_data_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[21 ]; +} + +static u64 access_pio_host_addr_mem_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[20 ]; +} + +static u64 access_pio_host_addr_mem_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[19 ]; +} + +static u64 access_pio_pkt_evict_sm_or_arb_sm_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[18 ]; +} + +static u64 access_pio_init_sm_in_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[17 ]; +} + +static u64 access_pio_ppmc_pbl_fifo_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[16 ]; +} + +static u64 access_pio_credit_ret_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[15 ]; +} + +static u64 access_pio_v1_len_mem_bank1_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[14 ]; +} + +static u64 access_pio_v1_len_mem_bank0_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[13 ]; +} + +static u64 access_pio_v1_len_mem_bank1_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[12 ]; +} + +static u64 access_pio_v1_len_mem_bank0_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[11 ]; +} + +static u64 access_pio_sm_pkt_reset_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[10 ]; +} + +static u64 access_pio_pkt_evict_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[9 ]; +} + +static u64 access_pio_sbrdctrl_crrel_fifo_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[8 ]; +} + +static u64 access_pio_sbrdctl_crrel_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[7 ]; +} + +static u64 access_pio_pec_fifo_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[6 ]; +} + +static u64 access_pio_pcc_fifo_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[5 ]; +} + +static u64 access_pio_sb_mem_fifo1_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[4 ]; +} + +static u64 access_pio_sb_mem_fifo0_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[3 ]; +} + +static u64 access_pio_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[2 ]; +} + +static u64 access_pio_write_addr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[1 ]; +} + +static u64 access_pio_write_bad_ctxt_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_pio_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendDmaErrStatus +*/ +static u64 access_sdma_pcie_req_tracking_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_dma_err_status_cnt[3 ]; +} + +static u64 access_sdma_pcie_req_tracking_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_dma_err_status_cnt[2 ]; +} + +static u64 access_sdma_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_dma_err_status_cnt[1 ]; +} + +static u64 access_sdma_rpy_tag_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_dma_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendEgressErrStatus +*/ +static u64 access_tx_read_pio_memory_csr_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[63 ]; +} + +static u64 access_tx_read_sdma_memory_csr_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[62 ]; +} + +static u64 access_tx_egress_fifo_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[61 ]; +} + +static u64 access_tx_read_pio_memory_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[60 ]; +} + +static u64 access_tx_read_sdma_memory_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[59 ]; +} + +static u64 access_tx_sb_hdr_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[58 ]; +} + +static u64 access_tx_credit_overrun_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[57 ]; +} + +static u64 access_tx_launch_fifo8_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[56 ]; +} + +static u64 access_tx_launch_fifo7_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[55 ]; +} + +static u64 access_tx_launch_fifo6_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[54 ]; +} + +static u64 access_tx_launch_fifo5_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[53 ]; +} + +static u64 access_tx_launch_fifo4_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[52 ]; +} + +static u64 access_tx_launch_fifo3_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[51 ]; +} + +static u64 access_tx_launch_fifo2_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[50 ]; +} + +static u64 access_tx_launch_fifo1_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[49 ]; +} + +static u64 access_tx_launch_fifo0_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[48 ]; +} + +static u64 access_tx_credit_return_vl_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[47 ]; +} + +static u64 access_tx_hcrc_insertion_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[46 ]; +} + +static u64 access_tx_egress_fifo_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[45 ]; +} + +static u64 access_tx_read_pio_memory_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[44 ]; +} + +static u64 access_tx_read_sdma_memory_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[43 ]; +} + +static u64 access_tx_sb_hdr_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[42 ]; +} + +static u64 access_tx_credit_return_partiy_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[41 ]; +} + +static u64 access_tx_launch_fifo8_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[40 ]; +} + +static u64 access_tx_launch_fifo7_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[39 ]; +} + +static u64 access_tx_launch_fifo6_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[38 ]; +} + +static u64 access_tx_launch_fifo5_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[37 ]; +} + +static u64 access_tx_launch_fifo4_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[36 ]; +} + +static u64 access_tx_launch_fifo3_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[35 ]; +} + +static u64 access_tx_launch_fifo2_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[34 ]; +} + +static u64 access_tx_launch_fifo1_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[33 ]; +} + +static u64 access_tx_launch_fifo0_unc_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[32 ]; +} + +static u64 access_tx_sdma15_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[31 ]; +} + +static u64 access_tx_sdma14_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[30 ]; +} + +static u64 access_tx_sdma13_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[29 ]; +} + +static u64 access_tx_sdma12_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[28 ]; +} + +static u64 access_tx_sdma11_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[27 ]; +} + +static u64 access_tx_sdma10_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[26 ]; +} + +static u64 access_tx_sdma9_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[25 ]; +} + +static u64 access_tx_sdma8_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[24 ]; +} + +static u64 access_tx_sdma7_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[23 ]; +} + +static u64 access_tx_sdma6_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[22 ]; +} + +static u64 access_tx_sdma5_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[21 ]; +} + +static u64 access_tx_sdma4_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[20 ]; +} + +static u64 access_tx_sdma3_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[19 ]; +} + +static u64 access_tx_sdma2_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[18 ]; +} + +static u64 access_tx_sdma1_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[17 ]; +} + +static u64 access_tx_sdma0_disallowed_packet_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[16 ]; +} + +static u64 access_tx_config_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[15 ]; +} + +static u64 access_tx_sbrd_ctl_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[14 ]; +} + +static u64 access_tx_launch_csr_parity_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[13 ]; +} + +static u64 access_tx_illegal_vl_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[12 ]; +} + +static u64 access_tx_sbrd_ctl_state_machine_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[11 ]; +} + +static u64 access_egress_reserved_10_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[10 ]; +} + +static u64 access_egress_reserved_9_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[9 ]; +} + +static u64 access_tx_sdma_launch_intf_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[8 ]; +} + +static u64 access_tx_pio_launch_intf_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[7 ]; +} + +static u64 access_egress_reserved_6_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[6 ]; +} + +static u64 access_tx_incorrect_link_state_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[5 ]; +} + +static u64 access_tx_linkdown_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[4 ]; +} + +static u64 access_tx_egress_fifi_underrun_or_parity_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[3 ]; +} + +static u64 access_egress_reserved_2_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[2 ]; +} + +static u64 access_tx_pkt_integrity_mem_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[1 ]; +} + +static u64 access_tx_pkt_integrity_mem_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_egress_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendErrStatus +*/ +static u64 access_send_csr_write_bad_addr_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_err_status_cnt[2 ]; +} + +static u64 access_send_csr_read_bad_addr_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_err_status_cnt[1 ]; +} + +static u64 access_send_csr_parity_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->send_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendCtxtErrStatus +*/ +static u64 access_pio_write_out_of_bounds_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_ctxt_err_status_cnt[4 ]; +} + +static u64 access_pio_write_overflow_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_ctxt_err_status_cnt[3 ]; +} + +static u64 access_pio_write_crosses_boundary_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_ctxt_err_status_cnt[2 ]; +} + +static u64 access_pio_disallowed_packet_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_ctxt_err_status_cnt[1 ]; +} + +static u64 access_pio_inconsistent_sop_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_ctxt_err_status_cnt[0 ]; +} + +/* +* Software counters corresponding to each of the +* error status bits within SendDmaEngErrStatus +*/ +static u64 access_sdma_header_request_fifo_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[23 ]; +} + +static u64 access_sdma_header_storage_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[22 ]; +} + +static u64 access_sdma_packet_tracking_cor_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[21 ]; +} + +static u64 access_sdma_assembly_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[20 ]; +} + +static u64 access_sdma_desc_table_cor_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[19 ]; +} + +static u64 access_sdma_header_request_fifo_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[18 ]; +} + +static u64 access_sdma_header_storage_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[17 ]; +} + +static u64 access_sdma_packet_tracking_unc_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[16 ]; +} + +static u64 access_sdma_assembly_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[15 ]; +} + +static u64 access_sdma_desc_table_unc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[14 ]; +} + +static u64 access_sdma_timeout_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[13 ]; +} + +static u64 access_sdma_header_length_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[12 ]; +} + +static u64 access_sdma_header_address_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[11 ]; +} + +static u64 access_sdma_header_select_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[10 ]; +} + +static u64 access_sdma_reserved_9_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[9 ]; +} + +static u64 access_sdma_packet_desc_overflow_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[8 ]; +} + +static u64 access_sdma_length_mismatch_err_cnt (const struct cntr_entry *entry, +void *context,int vl, +int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[7 ]; +} + +static u64 access_sdma_halt_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[6 ]; +} + +static u64 access_sdma_mem_read_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[5 ]; +} + +static u64 access_sdma_first_desc_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[4 ]; +} + +static u64 access_sdma_tail_out_of_bounds_err_cnt ( +const struct cntr_entry *entry, +void *context,int vl,int mode,u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[3 ]; +} + +static u64 access_sdma_too_long_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[2 ]; +} + +static u64 access_sdma_gen_mismatch_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[1 ]; +} + +static u64 access_sdma_wrong_dw_err_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_devdata *dd = (struct hfi1_devdata *)context; + +return dd->sw_send_dma_eng_err_status_cnt[0 ]; +} +#define def_access_sw_cpu (cntr) \ static u64 access_sw_cpu_##cntr(const struct cntr_entry *entry, \ void *context, int vl, int mode, u64 data) \
@@ -1730,6 +4060,794 @@ static struct cntr_entry dev_cntrs[DEV_CNTR_LAST] = { access_sw_kmem_wait), [C_SW_SEND_SCHED ] =CNTR_ELEM ("SendSched" ,0 ,0 ,CNTR_NORMAL , access_sw_send_schedule), +/* MISC_ERR_STATUS */ +[C_MISC_PLL_LOCK_FAIL_ERR ] =CNTR_ELEM ("MISC_PLL_LOCK_FAIL_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_pll_lock_fail_err_cnt), +[C_MISC_MBIST_FAIL_ERR ] =CNTR_ELEM ("MISC_MBIST_FAIL_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_mbist_fail_err_cnt), +[C_MISC_INVALID_EEP_CMD_ERR ] =CNTR_ELEM ("MISC_INVALID_EEP_CMD_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_invalid_eep_cmd_err_cnt), +[C_MISC_EFUSE_DONE_PARITY_ERR ] =CNTR_ELEM ("MISC_EFUSE_DONE_PARITY_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_efuse_done_parity_err_cnt), +[C_MISC_EFUSE_WRITE_ERR ] =CNTR_ELEM ("MISC_EFUSE_WRITE_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_efuse_write_err_cnt), +[C_MISC_EFUSE_READ_BAD_ADDR_ERR ] =CNTR_ELEM ("MISC_EFUSE_READ_BAD_ADDR_ERR" ,0 , +0 ,CNTR_NORMAL , + access_misc_efuse_read_bad_addr_err_cnt), +[C_MISC_EFUSE_CSR_PARITY_ERR ] =CNTR_ELEM ("MISC_EFUSE_CSR_PARITY_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_efuse_csr_parity_err_cnt), +[C_MISC_FW_AUTH_FAILED_ERR ] =CNTR_ELEM ("MISC_FW_AUTH_FAILED_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_fw_auth_failed_err_cnt), +[C_MISC_KEY_MISMATCH_ERR ] =CNTR_ELEM ("MISC_KEY_MISMATCH_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_key_mismatch_err_cnt), +[C_MISC_SBUS_WRITE_FAILED_ERR ] =CNTR_ELEM ("MISC_SBUS_WRITE_FAILED_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_sbus_write_failed_err_cnt), +[C_MISC_CSR_WRITE_BAD_ADDR_ERR ] =CNTR_ELEM ("MISC_CSR_WRITE_BAD_ADDR_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_csr_write_bad_addr_err_cnt), +[C_MISC_CSR_READ_BAD_ADDR_ERR ] =CNTR_ELEM ("MISC_CSR_READ_BAD_ADDR_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_csr_read_bad_addr_err_cnt), +[C_MISC_CSR_PARITY_ERR ] =CNTR_ELEM ("MISC_CSR_PARITY_ERR" ,0 ,0 , +CNTR_NORMAL , + access_misc_csr_parity_err_cnt), +/* CceErrStatus */ +[C_CCE_ERR_STATUS_AGGREGATED_CNT ] =CNTR_ELEM ("CceErrStatusAggregatedCnt" ,0 ,0 , +CNTR_NORMAL , + access_sw_cce_err_status_aggregated_cnt), +[C_CCE_MSIX_CSR_PARITY_ERR ] =CNTR_ELEM ("CceMsixCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_msix_csr_parity_err_cnt), +[C_CCE_INT_MAP_UNC_ERR ] =CNTR_ELEM ("CceIntMapUncErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_int_map_unc_err_cnt), +[C_CCE_INT_MAP_COR_ERR ] =CNTR_ELEM ("CceIntMapCorErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_int_map_cor_err_cnt), +[C_CCE_MSIX_TABLE_UNC_ERR ] =CNTR_ELEM ("CceMsixTableUncErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_msix_table_unc_err_cnt), +[C_CCE_MSIX_TABLE_COR_ERR ] =CNTR_ELEM ("CceMsixTableCorErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_msix_table_cor_err_cnt), +[C_CCE_RXDMA_CONV_FIFO_PARITY_ERR ] =CNTR_ELEM ("CceRxdmaConvFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_cce_rxdma_conv_fifo_parity_err_cnt), +[C_CCE_RCPL_ASYNC_FIFO_PARITY_ERR ] =CNTR_ELEM ("CceRcplAsyncFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_cce_rcpl_async_fifo_parity_err_cnt), +[C_CCE_SEG_WRITE_BAD_ADDR_ERR ] =CNTR_ELEM ("CceSegWriteBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_seg_write_bad_addr_err_cnt), +[C_CCE_SEG_READ_BAD_ADDR_ERR ] =CNTR_ELEM ("CceSegReadBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_seg_read_bad_addr_err_cnt), +[C_LA_TRIGGERED ] =CNTR_ELEM ("Cce LATriggered" ,0 ,0 , +CNTR_NORMAL , + access_la_triggered_cnt), +[C_CCE_TRGT_CPL_TIMEOUT_ERR ] =CNTR_ELEM ("CceTrgtCplTimeoutErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_trgt_cpl_timeout_err_cnt), +[C_PCIC_RECEIVE_PARITY_ERR ] =CNTR_ELEM ("PcicReceiveParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_receive_parity_err_cnt), +[C_PCIC_TRANSMIT_BACK_PARITY_ERR ] =CNTR_ELEM ("PcicTransmitBackParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_transmit_back_parity_err_cnt), +[C_PCIC_TRANSMIT_FRONT_PARITY_ERR ] =CNTR_ELEM ("PcicTransmitFrontParityErr" ,0 , +0 ,CNTR_NORMAL , + access_pcic_transmit_front_parity_err_cnt), +[C_PCIC_CPL_DAT_Q_UNC_ERR ] =CNTR_ELEM ("PcicCplDatQUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_cpl_dat_q_unc_err_cnt), +[C_PCIC_CPL_HD_Q_UNC_ERR ] =CNTR_ELEM ("PcicCplHdQUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_cpl_hd_q_unc_err_cnt), +[C_PCIC_POST_DAT_Q_UNC_ERR ] =CNTR_ELEM ("PcicPostDatQUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_post_dat_q_unc_err_cnt), +[C_PCIC_POST_HD_Q_UNC_ERR ] =CNTR_ELEM ("PcicPostHdQUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_post_hd_q_unc_err_cnt), +[C_PCIC_RETRY_SOT_MEM_UNC_ERR ] =CNTR_ELEM ("PcicRetrySotMemUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_retry_sot_mem_unc_err_cnt), +[C_PCIC_RETRY_MEM_UNC_ERR ] =CNTR_ELEM ("PcicRetryMemUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_retry_mem_unc_err), +[C_PCIC_N_POST_DAT_Q_PARITY_ERR ] =CNTR_ELEM ("PcicNPostDatQParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_n_post_dat_q_parity_err_cnt), +[C_PCIC_N_POST_H_Q_PARITY_ERR ] =CNTR_ELEM ("PcicNPostHQParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_n_post_h_q_parity_err_cnt), +[C_PCIC_CPL_DAT_Q_COR_ERR ] =CNTR_ELEM ("PcicCplDatQCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_cpl_dat_q_cor_err_cnt), +[C_PCIC_CPL_HD_Q_COR_ERR ] =CNTR_ELEM ("PcicCplHdQCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_cpl_hd_q_cor_err_cnt), +[C_PCIC_POST_DAT_Q_COR_ERR ] =CNTR_ELEM ("PcicPostDatQCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_post_dat_q_cor_err_cnt), +[C_PCIC_POST_HD_Q_COR_ERR ] =CNTR_ELEM ("PcicPostHdQCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_post_hd_q_cor_err_cnt), +[C_PCIC_RETRY_SOT_MEM_COR_ERR ] =CNTR_ELEM ("PcicRetrySotMemCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_retry_sot_mem_cor_err_cnt), +[C_PCIC_RETRY_MEM_COR_ERR ] =CNTR_ELEM ("PcicRetryMemCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pcic_retry_mem_cor_err_cnt), +[C_CCE_CLI1_ASYNC_FIFO_DBG_PARITY_ERR ] =CNTR_ELEM ( +"CceCli1AsyncFifoDbgParityError" ,0 ,0 , +CNTR_NORMAL , + access_cce_cli1_async_fifo_dbg_parity_err_cnt), +[C_CCE_CLI1_ASYNC_FIFO_RXDMA_PARITY_ERR ] =CNTR_ELEM ( +"CceCli1AsyncFifoRxdmaParityError" ,0 ,0 , +CNTR_NORMAL , + access_cce_cli1_async_fifo_rxdma_parity_err_cnt + ), +[C_CCE_CLI1_ASYNC_FIFO_SDMA_HD_PARITY_ERR ] =CNTR_ELEM ( +"CceCli1AsyncFifoSdmaHdParityErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_cli1_async_fifo_sdma_hd_parity_err_cnt), +[C_CCE_CLI1_ASYNC_FIFO_PIO_CRDT_PARITY_ERR ] =CNTR_ELEM ( +"CceCli1AsyncFifoPioCrdtParityErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_cl1_async_fifo_pio_crdt_parity_err_cnt), +[C_CCE_CLI2_ASYNC_FIFO_PARITY_ERR ] =CNTR_ELEM ("CceCli2AsyncFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_cce_cli2_async_fifo_parity_err_cnt), +[C_CCE_CSR_CFG_BUS_PARITY_ERR ] =CNTR_ELEM ("CceCsrCfgBusParityErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_csr_cfg_bus_parity_err_cnt), +[C_CCE_CLI0_ASYNC_FIFO_PARTIY_ERR ] =CNTR_ELEM ("CceCli0AsyncFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_cce_cli0_async_fifo_parity_err_cnt), +[C_CCE_RSPD_DATA_PARITY_ERR ] =CNTR_ELEM ("CceRspdDataParityErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_rspd_data_parity_err_cnt), +[C_CCE_TRGT_ACCESS_ERR ] =CNTR_ELEM ("CceTrgtAccessErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_trgt_access_err_cnt), +[C_CCE_TRGT_ASYNC_FIFO_PARITY_ERR ] =CNTR_ELEM ("CceTrgtAsyncFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_cce_trgt_async_fifo_parity_err_cnt), +[C_CCE_CSR_WRITE_BAD_ADDR_ERR ] =CNTR_ELEM ("CceCsrWriteBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_csr_write_bad_addr_err_cnt), +[C_CCE_CSR_READ_BAD_ADDR_ERR ] =CNTR_ELEM ("CceCsrReadBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_cce_csr_read_bad_addr_err_cnt), +[C_CCE_CSR_PARITY_ERR ] =CNTR_ELEM ("CceCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_ccs_csr_parity_err_cnt), + +/* RcvErrStatus */ +[C_RX_CSR_PARITY_ERR ] =CNTR_ELEM ("RxCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_csr_parity_err_cnt), +[C_RX_CSR_WRITE_BAD_ADDR_ERR ] =CNTR_ELEM ("RxCsrWriteBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_csr_write_bad_addr_err_cnt), +[C_RX_CSR_READ_BAD_ADDR_ERR ] =CNTR_ELEM ("RxCsrReadBadAddrErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_csr_read_bad_addr_err_cnt), +[C_RX_DMA_CSR_UNC_ERR ] =CNTR_ELEM ("RxDmaCsrUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_csr_unc_err_cnt), +[C_RX_DMA_DQ_FSM_ENCODING_ERR ] =CNTR_ELEM ("RxDmaDqFsmEncodingErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_dq_fsm_encoding_err_cnt), +[C_RX_DMA_EQ_FSM_ENCODING_ERR ] =CNTR_ELEM ("RxDmaEqFsmEncodingErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_eq_fsm_encoding_err_cnt), +[C_RX_DMA_CSR_PARITY_ERR ] =CNTR_ELEM ("RxDmaCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_csr_parity_err_cnt), +[C_RX_RBUF_DATA_COR_ERR ] =CNTR_ELEM ("RxRbufDataCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_data_cor_err_cnt), +[C_RX_RBUF_DATA_UNC_ERR ] =CNTR_ELEM ("RxRbufDataUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_data_unc_err_cnt), +[C_RX_DMA_DATA_FIFO_RD_COR_ERR ] =CNTR_ELEM ("RxDmaDataFifoRdCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_data_fifo_rd_cor_err_cnt), +[C_RX_DMA_DATA_FIFO_RD_UNC_ERR ] =CNTR_ELEM ("RxDmaDataFifoRdUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_data_fifo_rd_unc_err_cnt), +[C_RX_DMA_HDR_FIFO_RD_COR_ERR ] =CNTR_ELEM ("RxDmaHdrFifoRdCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_hdr_fifo_rd_cor_err_cnt), +[C_RX_DMA_HDR_FIFO_RD_UNC_ERR ] =CNTR_ELEM ("RxDmaHdrFifoRdUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_hdr_fifo_rd_unc_err_cnt), +[C_RX_RBUF_DESC_PART2_COR_ERR ] =CNTR_ELEM ("RxRbufDescPart2CorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_desc_part2_cor_err_cnt), +[C_RX_RBUF_DESC_PART2_UNC_ERR ] =CNTR_ELEM ("RxRbufDescPart2UncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_desc_part2_unc_err_cnt), +[C_RX_RBUF_DESC_PART1_COR_ERR ] =CNTR_ELEM ("RxRbufDescPart1CorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_desc_part1_cor_err_cnt), +[C_RX_RBUF_DESC_PART1_UNC_ERR ] =CNTR_ELEM ("RxRbufDescPart1UncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_desc_part1_unc_err_cnt), +[C_RX_HQ_INTR_FSM_ERR ] =CNTR_ELEM ("RxHqIntrFsmErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_hq_intr_fsm_err_cnt), +[C_RX_HQ_INTR_CSR_PARITY_ERR ] =CNTR_ELEM ("RxHqIntrCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_hq_intr_csr_parity_err_cnt), +[C_RX_LOOKUP_CSR_PARITY_ERR ] =CNTR_ELEM ("RxLookupCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_lookup_csr_parity_err_cnt), +[C_RX_LOOKUP_RCV_ARRAY_COR_ERR ] =CNTR_ELEM ("RxLookupRcvArrayCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_lookup_rcv_array_cor_err_cnt), +[C_RX_LOOKUP_RCV_ARRAY_UNC_ERR ] =CNTR_ELEM ("RxLookupRcvArrayUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_lookup_rcv_array_unc_err_cnt), +[C_RX_LOOKUP_DES_PART2_PARITY_ERR ] =CNTR_ELEM ("RxLookupDesPart2ParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_lookup_des_part2_parity_err_cnt), +[C_RX_LOOKUP_DES_PART1_UNC_COR_ERR ] =CNTR_ELEM ("RxLookupDesPart1UncCorErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_lookup_des_part1_unc_cor_err_cnt), +[C_RX_LOOKUP_DES_PART1_UNC_ERR ] =CNTR_ELEM ("RxLookupDesPart1UncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_lookup_des_part1_unc_err_cnt), +[C_RX_RBUF_NEXT_FREE_BUF_COR_ERR ] =CNTR_ELEM ("RxRbufNextFreeBufCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_next_free_buf_cor_err_cnt), +[C_RX_RBUF_NEXT_FREE_BUF_UNC_ERR ] =CNTR_ELEM ("RxRbufNextFreeBufUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_next_free_buf_unc_err_cnt), +[C_RX_RBUF_FL_INIT_WR_ADDR_PARITY_ERR ] =CNTR_ELEM ( +"RxRbufFlInitWrAddrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rbuf_fl_init_wr_addr_parity_err_cnt), +[C_RX_RBUF_FL_INITDONE_PARITY_ERR ] =CNTR_ELEM ("RxRbufFlInitdoneParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_fl_initdone_parity_err_cnt), +[C_RX_RBUF_FL_WRITE_ADDR_PARITY_ERR ] =CNTR_ELEM ("RxRbufFlWrAddrParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_fl_write_addr_parity_err_cnt), +[C_RX_RBUF_FL_RD_ADDR_PARITY_ERR ] =CNTR_ELEM ("RxRbufFlRdAddrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_fl_rd_addr_parity_err_cnt), +[C_RX_RBUF_EMPTY_ERR ] =CNTR_ELEM ("RxRbufEmptyErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_empty_err_cnt), +[C_RX_RBUF_FULL_ERR ] =CNTR_ELEM ("RxRbufFullErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_full_err_cnt), +[C_RX_RBUF_BAD_LOOKUP_ERR ] =CNTR_ELEM ("RxRBufBadLookupErr" ,0 ,0 , +CNTR_NORMAL , + access_rbuf_bad_lookup_err_cnt), +[C_RX_RBUF_CTX_ID_PARITY_ERR ] =CNTR_ELEM ("RxRbufCtxIdParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rbuf_ctx_id_parity_err_cnt), +[C_RX_RBUF_CSR_QEOPDW_PARITY_ERR ] =CNTR_ELEM ("RxRbufCsrQEOPDWParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rbuf_csr_qeopdw_parity_err_cnt), +[C_RX_RBUF_CSR_Q_NUM_OF_PKT_PARITY_ERR ] =CNTR_ELEM ( +"RxRbufCsrQNumOfPktParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_csr_q_num_of_pkt_parity_err_cnt), +[C_RX_RBUF_CSR_Q_T1_PTR_PARITY_ERR ] =CNTR_ELEM ( +"RxRbufCsrQTlPtrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_csr_q_t1_ptr_parity_err_cnt), +[C_RX_RBUF_CSR_Q_HD_PTR_PARITY_ERR ] =CNTR_ELEM ("RxRbufCsrQHdPtrParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_csr_q_hd_ptr_parity_err_cnt), +[C_RX_RBUF_CSR_Q_VLD_BIT_PARITY_ERR ] =CNTR_ELEM ("RxRbufCsrQVldBitParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_csr_q_vld_bit_parity_err_cnt), +[C_RX_RBUF_CSR_Q_NEXT_BUF_PARITY_ERR ] =CNTR_ELEM ("RxRbufCsrQNextBufParityErr" , +0 ,0 ,CNTR_NORMAL , + access_rx_rbuf_csr_q_next_buf_parity_err_cnt), +[C_RX_RBUF_CSR_Q_ENT_CNT_PARITY_ERR ] =CNTR_ELEM ("RxRbufCsrQEntCntParityErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_csr_q_ent_cnt_parity_err_cnt), +[C_RX_RBUF_CSR_Q_HEAD_BUF_NUM_PARITY_ERR ] =CNTR_ELEM ( +"RxRbufCsrQHeadBufNumParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_csr_q_head_buf_num_parity_err_cnt), +[C_RX_RBUF_BLOCK_LIST_READ_COR_ERR ] =CNTR_ELEM ("RxRbufBlockListReadCorErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_block_list_read_cor_err_cnt), +[C_RX_RBUF_BLOCK_LIST_READ_UNC_ERR ] =CNTR_ELEM ("RxRbufBlockListReadUncErr" ,0 , +0 ,CNTR_NORMAL , + access_rx_rbuf_block_list_read_unc_err_cnt), +[C_RX_RBUF_LOOKUP_DES_COR_ERR ] =CNTR_ELEM ("RxRbufLookupDesCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_lookup_des_cor_err_cnt), +[C_RX_RBUF_LOOKUP_DES_UNC_ERR ] =CNTR_ELEM ("RxRbufLookupDesUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_lookup_des_unc_err_cnt), +[C_RX_RBUF_LOOKUP_DES_REG_UNC_COR_ERR ] =CNTR_ELEM ( +"RxRbufLookupDesRegUncCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_lookup_des_reg_unc_cor_err_cnt), +[C_RX_RBUF_LOOKUP_DES_REG_UNC_ERR ] =CNTR_ELEM ("RxRbufLookupDesRegUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_lookup_des_reg_unc_err_cnt), +[C_RX_RBUF_FREE_LIST_COR_ERR ] =CNTR_ELEM ("RxRbufFreeListCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_free_list_cor_err_cnt), +[C_RX_RBUF_FREE_LIST_UNC_ERR ] =CNTR_ELEM ("RxRbufFreeListUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rbuf_free_list_unc_err_cnt), +[C_RX_RCV_FSM_ENCODING_ERR ] =CNTR_ELEM ("RxRcvFsmEncodingErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_fsm_encoding_err_cnt), +[C_RX_DMA_FLAG_COR_ERR ] =CNTR_ELEM ("RxDmaFlagCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_flag_cor_err_cnt), +[C_RX_DMA_FLAG_UNC_ERR ] =CNTR_ELEM ("RxDmaFlagUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_flag_unc_err_cnt), +[C_RX_DC_SOP_EOP_PARITY_ERR ] =CNTR_ELEM ("RxDcSopEopParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dc_sop_eop_parity_err_cnt), +[C_RX_RCV_CSR_PARITY_ERR ] =CNTR_ELEM ("RxRcvCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_csr_parity_err_cnt), +[C_RX_RCV_QP_MAP_TABLE_COR_ERR ] =CNTR_ELEM ("RxRcvQpMapTableCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_qp_map_table_cor_err_cnt), +[C_RX_RCV_QP_MAP_TABLE_UNC_ERR ] =CNTR_ELEM ("RxRcvQpMapTableUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_qp_map_table_unc_err_cnt), +[C_RX_RCV_DATA_COR_ERR ] =CNTR_ELEM ("RxRcvDataCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_data_cor_err_cnt), +[C_RX_RCV_DATA_UNC_ERR ] =CNTR_ELEM ("RxRcvDataUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_data_unc_err_cnt), +[C_RX_RCV_HDR_COR_ERR ] =CNTR_ELEM ("RxRcvHdrCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_hdr_cor_err_cnt), +[C_RX_RCV_HDR_UNC_ERR ] =CNTR_ELEM ("RxRcvHdrUncErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_rcv_hdr_unc_err_cnt), +[C_RX_DC_INTF_PARITY_ERR ] =CNTR_ELEM ("RxDcIntfParityErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dc_intf_parity_err_cnt), +[C_RX_DMA_CSR_COR_ERR ] =CNTR_ELEM ("RxDmaCsrCorErr" ,0 ,0 , +CNTR_NORMAL , + access_rx_dma_csr_cor_err_cnt), +/* SendPioErrStatus */ +[C_PIO_PEC_SOP_HEAD_PARITY_ERR ] =CNTR_ELEM ("PioPecSopHeadParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pec_sop_head_parity_err_cnt), +[C_PIO_PCC_SOP_HEAD_PARITY_ERR ] =CNTR_ELEM ("PioPccSopHeadParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pcc_sop_head_parity_err_cnt), +[C_PIO_LAST_RETURNED_CNT_PARITY_ERR ] =CNTR_ELEM ("PioLastReturnedCntParityErr" , +0 ,0 ,CNTR_NORMAL , + access_pio_last_returned_cnt_parity_err_cnt), +[C_PIO_CURRENT_FREE_CNT_PARITY_ERR ] =CNTR_ELEM ("PioCurrentFreeCntParityErr" ,0 , +0 ,CNTR_NORMAL , + access_pio_current_free_cnt_parity_err_cnt), +[C_PIO_RSVD_31_ERR ] =CNTR_ELEM ("Pio Reserved 31" ,0 ,0 , +CNTR_NORMAL , + access_pio_reserved_31_err_cnt), +[C_PIO_RSVD_30_ERR ] =CNTR_ELEM ("Pio Reserved 30" ,0 ,0 , +CNTR_NORMAL , + access_pio_reserved_30_err_cnt), +[C_PIO_PPMC_SOP_LEN_ERR ] =CNTR_ELEM ("PioPpmcSopLenErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_ppmc_sop_len_err_cnt), +[C_PIO_PPMC_BQC_MEM_PARITY_ERR ] =CNTR_ELEM ("PioPpmcBqcMemParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_ppmc_bqc_mem_parity_err_cnt), +[C_PIO_VL_FIFO_PARITY_ERR ] =CNTR_ELEM ("PioVlFifoParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_vl_fifo_parity_err_cnt), +[C_PIO_VLF_SOP_PARITY_ERR ] =CNTR_ELEM ("PioVlfSopParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_vlf_sop_parity_err_cnt), +[C_PIO_VLF_V1_LEN_PARITY_ERR ] =CNTR_ELEM ("PioVlfVlLenParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_vlf_v1_len_parity_err_cnt), +[C_PIO_BLOCK_QW_COUNT_PARITY_ERR ] =CNTR_ELEM ("PioBlockQwCountParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_block_qw_count_parity_err_cnt), +[C_PIO_WRITE_QW_VALID_PARITY_ERR ] =CNTR_ELEM ("PioWriteQwValidParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_write_qw_valid_parity_err_cnt), +[C_PIO_STATE_MACHINE_ERR ] =CNTR_ELEM ("PioStateMachineErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_state_machine_err_cnt), +[C_PIO_WRITE_DATA_PARITY_ERR ] =CNTR_ELEM ("PioWriteDataParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_write_data_parity_err_cnt), +[C_PIO_HOST_ADDR_MEM_COR_ERR ] =CNTR_ELEM ("PioHostAddrMemCorErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_host_addr_mem_cor_err_cnt), +[C_PIO_HOST_ADDR_MEM_UNC_ERR ] =CNTR_ELEM ("PioHostAddrMemUncErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_host_addr_mem_unc_err_cnt), +[C_PIO_PKT_EVICT_SM_OR_ARM_SM_ERR ] =CNTR_ELEM ("PioPktEvictSmOrArbSmErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pkt_evict_sm_or_arb_sm_err_cnt), +[C_PIO_INIT_SM_IN_ERR ] =CNTR_ELEM ("PioInitSmInErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_init_sm_in_err_cnt), +[C_PIO_PPMC_PBL_FIFO_ERR ] =CNTR_ELEM ("PioPpmcPblFifoErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_ppmc_pbl_fifo_err_cnt), +[C_PIO_CREDIT_RET_FIFO_PARITY_ERR ] =CNTR_ELEM ("PioCreditRetFifoParityErr" ,0 , +0 ,CNTR_NORMAL , + access_pio_credit_ret_fifo_parity_err_cnt), +[C_PIO_V1_LEN_MEM_BANK1_COR_ERR ] =CNTR_ELEM ("PioVlLenMemBank1CorErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_v1_len_mem_bank1_cor_err_cnt), +[C_PIO_V1_LEN_MEM_BANK0_COR_ERR ] =CNTR_ELEM ("PioVlLenMemBank0CorErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_v1_len_mem_bank0_cor_err_cnt), +[C_PIO_V1_LEN_MEM_BANK1_UNC_ERR ] =CNTR_ELEM ("PioVlLenMemBank1UncErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_v1_len_mem_bank1_unc_err_cnt), +[C_PIO_V1_LEN_MEM_BANK0_UNC_ERR ] =CNTR_ELEM ("PioVlLenMemBank0UncErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_v1_len_mem_bank0_unc_err_cnt), +[C_PIO_SM_PKT_RESET_PARITY_ERR ] =CNTR_ELEM ("PioSmPktResetParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_sm_pkt_reset_parity_err_cnt), +[C_PIO_PKT_EVICT_FIFO_PARITY_ERR ] =CNTR_ELEM ("PioPktEvictFifoParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pkt_evict_fifo_parity_err_cnt), +[C_PIO_SBRDCTRL_CRREL_FIFO_PARITY_ERR ] =CNTR_ELEM ( +"PioSbrdctrlCrrelFifoParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_sbrdctrl_crrel_fifo_parity_err_cnt), +[C_PIO_SBRDCTL_CRREL_PARITY_ERR ] =CNTR_ELEM ("PioSbrdctlCrrelParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_sbrdctl_crrel_parity_err_cnt), +[C_PIO_PEC_FIFO_PARITY_ERR ] =CNTR_ELEM ("PioPecFifoParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pec_fifo_parity_err_cnt), +[C_PIO_PCC_FIFO_PARITY_ERR ] =CNTR_ELEM ("PioPccFifoParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_pcc_fifo_parity_err_cnt), +[C_PIO_SB_MEM_FIFO1_ERR ] =CNTR_ELEM ("PioSbMemFifo1Err" ,0 ,0 , +CNTR_NORMAL , + access_pio_sb_mem_fifo1_err_cnt), +[C_PIO_SB_MEM_FIFO0_ERR ] =CNTR_ELEM ("PioSbMemFifo0Err" ,0 ,0 , +CNTR_NORMAL , + access_pio_sb_mem_fifo0_err_cnt), +[C_PIO_CSR_PARITY_ERR ] =CNTR_ELEM ("PioCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_csr_parity_err_cnt), +[C_PIO_WRITE_ADDR_PARITY_ERR ] =CNTR_ELEM ("PioWriteAddrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_write_addr_parity_err_cnt), +[C_PIO_WRITE_BAD_CTXT_ERR ] =CNTR_ELEM ("PioWriteBadCtxtErr" ,0 ,0 , +CNTR_NORMAL , + access_pio_write_bad_ctxt_err_cnt), +/* SendDmaErrStatus */ +[C_SDMA_PCIE_REQ_TRACKING_COR_ERR ] =CNTR_ELEM ("SDmaPcieReqTrackingCorErr" ,0 , +0 ,CNTR_NORMAL , + access_sdma_pcie_req_tracking_cor_err_cnt), +[C_SDMA_PCIE_REQ_TRACKING_UNC_ERR ] =CNTR_ELEM ("SDmaPcieReqTrackingUncErr" ,0 , +0 ,CNTR_NORMAL , + access_sdma_pcie_req_tracking_unc_err_cnt), +[C_SDMA_CSR_PARITY_ERR ] =CNTR_ELEM ("SDmaCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_sdma_csr_parity_err_cnt), +[C_SDMA_RPY_TAG_ERR ] =CNTR_ELEM ("SDmaRpyTagErr" ,0 ,0 , +CNTR_NORMAL , + access_sdma_rpy_tag_err_cnt), +/* SendEgressErrStatus */ +[C_TX_READ_PIO_MEMORY_CSR_UNC_ERR ] =CNTR_ELEM ("TxReadPioMemoryCsrUncErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_read_pio_memory_csr_unc_err_cnt), +[C_TX_READ_SDMA_MEMORY_CSR_UNC_ERR ] =CNTR_ELEM ("TxReadSdmaMemoryCsrUncErr" ,0 , +0 ,CNTR_NORMAL , + access_tx_read_sdma_memory_csr_err_cnt), +[C_TX_EGRESS_FIFO_COR_ERR ] =CNTR_ELEM ("TxEgressFifoCorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_egress_fifo_cor_err_cnt), +[C_TX_READ_PIO_MEMORY_COR_ERR ] =CNTR_ELEM ("TxReadPioMemoryCorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_read_pio_memory_cor_err_cnt), +[C_TX_READ_SDMA_MEMORY_COR_ERR ] =CNTR_ELEM ("TxReadSdmaMemoryCorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_read_sdma_memory_cor_err_cnt), +[C_TX_SB_HDR_COR_ERR ] =CNTR_ELEM ("TxSbHdrCorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_sb_hdr_cor_err_cnt), +[C_TX_CREDIT_OVERRUN_ERR ] =CNTR_ELEM ("TxCreditOverrunErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_credit_overrun_err_cnt), +[C_TX_LAUNCH_FIFO8_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo8CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo8_cor_err_cnt), +[C_TX_LAUNCH_FIFO7_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo7CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo7_cor_err_cnt), +[C_TX_LAUNCH_FIFO6_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo6CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo6_cor_err_cnt), +[C_TX_LAUNCH_FIFO5_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo5CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo5_cor_err_cnt), +[C_TX_LAUNCH_FIFO4_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo4CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo4_cor_err_cnt), +[C_TX_LAUNCH_FIFO3_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo3CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo3_cor_err_cnt), +[C_TX_LAUNCH_FIFO2_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo2CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo2_cor_err_cnt), +[C_TX_LAUNCH_FIFO1_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo1CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo1_cor_err_cnt), +[C_TX_LAUNCH_FIFO0_COR_ERR ] =CNTR_ELEM ("TxLaunchFifo0CorErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_fifo0_cor_err_cnt), +[C_TX_CREDIT_RETURN_VL_ERR ] =CNTR_ELEM ("TxCreditReturnVLErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_credit_return_vl_err_cnt), +[C_TX_HCRC_INSERTION_ERR ] =CNTR_ELEM ("TxHcrcInsertionErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_hcrc_insertion_err_cnt), +[C_TX_EGRESS_FIFI_UNC_ERR ] =CNTR_ELEM ("TxEgressFifoUncErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_egress_fifo_unc_err_cnt), +[C_TX_READ_PIO_MEMORY_UNC_ERR ] =CNTR_ELEM ("TxReadPioMemoryUncErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_read_pio_memory_unc_err_cnt), +[C_TX_READ_SDMA_MEMORY_UNC_ERR ] =CNTR_ELEM ("TxReadSdmaMemoryUncErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_read_sdma_memory_unc_err_cnt), +[C_TX_SB_HDR_UNC_ERR ] =CNTR_ELEM ("TxSbHdrUncErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_sb_hdr_unc_err_cnt), +[C_TX_CREDIT_RETURN_PARITY_ERR ] =CNTR_ELEM ("TxCreditReturnParityErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_credit_return_partiy_err_cnt), +[C_TX_LAUNCH_FIFO8_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo8UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo8_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO7_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo7UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo7_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO6_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo6UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo6_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO5_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo5UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo5_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO4_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo4UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo4_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO3_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo3UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo3_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO2_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo2UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo2_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO1_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo1UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo1_unc_or_parity_err_cnt), +[C_TX_LAUNCH_FIFO0_UNC_OR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchFifo0UncOrParityErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_launch_fifo0_unc_or_parity_err_cnt), +[C_TX_SDMA15_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma15DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma15_disallowed_packet_err_cnt), +[C_TX_SDMA14_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma14DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma14_disallowed_packet_err_cnt), +[C_TX_SDMA13_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma13DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma13_disallowed_packet_err_cnt), +[C_TX_SDMA12_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma12DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma12_disallowed_packet_err_cnt), +[C_TX_SDMA11_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma11DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma11_disallowed_packet_err_cnt), +[C_TX_SDMA10_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma10DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma10_disallowed_packet_err_cnt), +[C_TX_SDMA9_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma9DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma9_disallowed_packet_err_cnt), +[C_TX_SDMA8_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma8DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma8_disallowed_packet_err_cnt), +[C_TX_SDMA7_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma7DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma7_disallowed_packet_err_cnt), +[C_TX_SDMA6_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma6DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma6_disallowed_packet_err_cnt), +[C_TX_SDMA5_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma5DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma5_disallowed_packet_err_cnt), +[C_TX_SDMA4_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma4DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma4_disallowed_packet_err_cnt), +[C_TX_SDMA3_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma3DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma3_disallowed_packet_err_cnt), +[C_TX_SDMA2_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma2DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma2_disallowed_packet_err_cnt), +[C_TX_SDMA1_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma1DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma1_disallowed_packet_err_cnt), +[C_TX_SDMA0_DISALLOWED_PACKET_ERR ] =CNTR_ELEM ("TxSdma0DisallowedPacketErr" , +0 ,0 ,CNTR_NORMAL , + access_tx_sdma0_disallowed_packet_err_cnt), +[C_TX_CONFIG_PARITY_ERR ] =CNTR_ELEM ("TxConfigParityErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_config_parity_err_cnt), +[C_TX_SBRD_CTL_CSR_PARITY_ERR ] =CNTR_ELEM ("TxSbrdCtlCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_sbrd_ctl_csr_parity_err_cnt), +[C_TX_LAUNCH_CSR_PARITY_ERR ] =CNTR_ELEM ("TxLaunchCsrParityErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_launch_csr_parity_err_cnt), +[C_TX_ILLEGAL_CL_ERR ] =CNTR_ELEM ("TxIllegalVLErr" ,0 ,0 , +CNTR_NORMAL , + access_tx_illegal_vl_err_cnt), +[C_TX_SBRD_CTL_STATE_MACHINE_PARITY_ERR] = CNTR_ELEM( + "TxSbrdCtlStateMachineParityErr", 0, 0,
Lines of this file are not shown. View the raw message.
drivers/staging/rdma/hfi1/chip.h +269 -0
269 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.0.7
Part of the diff is not shown here. View the raw message.
PATCH 11/18 staging/rdma/hfi1: Destroy workqueues if hfi1_register_ib_device() call returns error
In reply to Jubin JohnFrom: Harish Chegondi <[email protected]>
Currently, if hfi1_register_ib_device() call is unsuccessful, workqueues are not being destroyed before bailing out. This patch fixes this issue.
--- drivers/staging/rdma/hfi1/init.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
drivers/staging/rdma/hfi1/init.c +8 -1
@@ -1308,6 +1308,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) {int ret =0 , j, pidx, initfail;struct hfi1_devdata *dd =NULL ; +struct hfi1_pportdata *ppd;/* First, lock the non-writable module parameters */ HFI1_CAP_LOCK ();
@@ -1403,8 +1404,14 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)if (initfail || ret) {stop_timers (dd);flush_workqueue (ib_wq); -for (pidx =0 ; pidx < dd->num_pports; ++pidx) +for (pidx =0 ; pidx < dd->num_pports; ++pidx) {hfi1_quiet_serdes (dd->pport + pidx); + ppd = dd->pport + pidx; +if (ppd->hfi1_wq) { +destroy_workqueue (ppd->hfi1_wq); + ppd->hfi1_wq =NULL ; + } + }if (!j)hfi1_device_remove (dd);if (!ret)
Signature · 1 line
1.7.0.7
PATCH 12/18 staging/rdma/hfi1: Unexpected link up pkey values are not an error
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
Only warn when link up pkeys are not what we expect. Also, allow for the pkey to already be initialized.
--- drivers/staging/rdma/hfi1/chip.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rdma/hfi1/chip.c +4 -4
@@ -6725,10 +6725,10 @@ static void add_full_mgmt_pkey(struct hfi1_pportdata *ppd) {struct hfi1_devdata *dd = ppd->dd; -/* Sanity check - ppd->pkeys[2] should be 0 */ -if (ppd->pkeys[2 ] !=0 ) -dd_dev_err (dd,"%s pkey[2] already set to 0x%x, resetting it to 0x%x\n" , - __func__, ppd->pkeys[2 ],FULL_MGMT_P_KEY ); +/* Sanity check - ppd->pkeys[2] should be 0, or already initalized */ +if (!((ppd->pkeys[2 ] ==0 ) || (ppd->pkeys[2 ] ==FULL_MGMT_P_KEY ))) +dd_dev_warn (dd,"%s pkey[2] already set to 0x%x, resetting it to 0x%x\n" , + __func__, ppd->pkeys[2 ],FULL_MGMT_P_KEY ); ppd->pkeys[2 ] =FULL_MGMT_P_KEY ; (void )hfi1_set_ib_cfg (ppd,HFI1_IB_CFG_PKEYS ,0 ); }
Signature · 1 line
1.7.0.7
PATCH 13/18 staging/rdma/hfi1: remove SPC freeze error messages
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
An SPC freeze is not an error. Remove the messages.
--- drivers/staging/rdma/hfi1/chip.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/rdma/hfi1/chip.c +0 -2
@@ -6496,7 +6496,6 @@ void handle_freeze(struct work_struct *work)struct hfi1_devdata *dd = ppd->dd;/* wait for freeze indicators on all affected blocks */ -dd_dev_info (dd,"Entering SPC freeze\n" );wait_for_freeze_status (dd,1 );/* SPC is now frozen */
@@ -6554,7 +6553,6 @@ void handle_freeze(struct work_struct *work)wake_up (&dd->event_queue);/* no longer frozen */ -dd_dev_err (dd,"Exiting SPC freeze\n" ); }/*
Signature · 1 line
1.7.0.7
PATCH 14/18 staging/rdma/hfi1: unknown frame messages are not errors
In reply to Jubin JohnFrom: Dean Luick <[email protected]>
Change reported unknown frame messages into a counter. These are informational, no errors.
--- drivers/staging/rdma/hfi1/chip.c | 18 ++++++++++++++++++ drivers/staging/rdma/hfi1/chip.h | 1 + drivers/staging/rdma/hfi1/hfi.h | 2 ++ 3 files changed, 21 insertions(+), 0 deletions(-)
drivers/staging/rdma/hfi1/chip.c +18 -0
@@ -1417,6 +1417,17 @@ static u64 access_sw_link_up_cnt(const struct cntr_entry *entry, void *context,return read_write_sw (ppd->dd, &ppd->link_up, mode, data); } +static u64 access_sw_unknown_frame_cnt (const struct cntr_entry *entry, +void *context,int vl,int mode, +u64 data) +{ +struct hfi1_pportdata *ppd = (struct hfi1_pportdata *)context; + +if (vl !=CNTR_INVALID_VL ) +return 0 ; +return read_write_sw (ppd->dd, &ppd->unknown_frame_count, mode, data); +} +static u64 access_sw_xmit_discards (const struct cntr_entry *entry,void *context,int vl,int mode,u64 data) {
@@ -4880,6 +4891,8 @@ static struct cntr_entry port_cntrs[PORT_CNTR_LAST] = { access_sw_link_dn_cnt), [C_SW_LINK_UP ] =CNTR_ELEM ("SwLinkUp" ,0 ,0 ,CNTR_SYNTH |CNTR_32BIT , access_sw_link_up_cnt), +[C_SW_UNKNOWN_FRAME ] =CNTR_ELEM ("UnknownFrame" ,0 ,0 ,CNTR_NORMAL , + access_sw_unknown_frame_cnt), [C_SW_XMIT_DSCD ] =CNTR_ELEM ("XmitDscd" ,0 ,0 ,CNTR_SYNTH |CNTR_32BIT , access_sw_xmit_discards), [C_SW_XMIT_DSCD_VL] = CNTR_ELEM("XmitDscdVl", 0, 0,
@@ -7227,6 +7240,11 @@ static void handle_8051_interrupt(struct hfi1_devdata *dd, u32 unused, u64 reg) } err &= ~(u64 )FAILED_LNI ; } +/* unknown frames can happen durning LNI, just count */ +if (err &UNKNOWN_FRAME ) { + ppd->unknown_frame_count++; + err &= ~(u64 )UNKNOWN_FRAME ; + }if (err) {/* report remaining errors, but do not do anything */ dd_dev_err(dd, "8051 info error: %s\n",
drivers/staging/rdma/hfi1/chip.h +1 -0
@@ -1079,6 +1079,7 @@ enum {C_RX_WORDS ,C_SW_LINK_DOWN ,C_SW_LINK_UP , +C_SW_UNKNOWN_FRAME ,C_SW_XMIT_DSCD ,C_SW_XMIT_DSCD_VL , C_SW_XMIT_CSTR_ERR,
drivers/staging/rdma/hfi1/hfi.h +2 -0
@@ -720,6 +720,8 @@ struct hfi1_pportdata {u64 link_downed;/* number of times link retrained successfully */ u64 link_up; +/* number of times a link unknown frame was reported */ +u64 unknown_frame_count;/* port_ltp_crc_mode is returned in 'portinfo' MADs */ u16 port_ltp_crc_mode;/* port_crc_mode_enabled is the crc we support */
Signature · 1 line
1.7.0.7
PATCH 15/18 staging/rdma/hfi1: Consider VL15 MTU also when calculating the maximum VL MTU
In reply to Jubin JohnFrom: Harish Chegondi <[email protected]>
Currently, only MTUs of VLs 0-7 are checked when calculating the maximum VL MTU which is used to set the port MTU capability in DCC_CFG_PORT_CONFIG CSR This can cause a port MTU capability to be set to 0 if MTUs of VLs 0-7 is 0 This would affect the VL15 traffic.
--- drivers/staging/rdma/hfi1/chip.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/staging/rdma/hfi1/chip.c +2 -1
@@ -9367,7 +9367,8 @@ u32 lrh_max_header_bytes(struct hfi1_devdata *dd)static void set_send_length (struct hfi1_pportdata *ppd) {struct hfi1_devdata *dd = ppd->dd; -u32 max_hb =lrh_max_header_bytes (dd), maxvlmtu =0 , dcmtu; +u32 max_hb =lrh_max_header_bytes (dd), dcmtu; +u32 maxvlmtu = dd->vld[15 ].mtu;u64 len1 =0 , len2 = (((dd->vld[15 ].mtu + max_hb) >>2 ) &SEND_LEN_CHECK1_LEN_VL15_MASK ) <<SEND_LEN_CHECK1_LEN_VL15_SHIFT ;
Signature · 1 line
1.7.0.7
PATCH 16/18 staging/rdma/hfi1: Fix Xmit Wait calculation
In reply to Jubin JohnFrom: Ira Weiny <[email protected]>
Total XMIT wait needs to sum the xmit wait values of all the VLs not just those requested in the query. Also, make the algorithm used for both PortStatus and PortDataCounters the same.
--- drivers/staging/rdma/hfi1/mad.c | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-)
drivers/staging/rdma/hfi1/mad.c +20 -12
@@ -2272,7 +2272,7 @@ static void a0_portstatus(struct hfi1_pportdata *ppd,if (!is_bx (ppd->dd)) {unsigned long vl;int vfi =0 ; -u64 max_vl_xmit_wait =0 , tmp; +u64 sum_vl_xmit_wait =0 ;u32 vl_all_mask =VL_MASK_ALL ;u64 rcv_data, rcv_bubble;
@@ -2302,12 +2302,18 @@ static void a0_portstatus(struct hfi1_pportdata *ppd,for_each_set_bit (vl, (unsigned long *)&(vl_all_mask),8 *sizeof (vl_all_mask)) { - tmp =read_port_cntr (ppd,C_TX_WAIT_VL , -idx_from_vl (vl)); -if (tmp > max_vl_xmit_wait) - max_vl_xmit_wait = tmp; +u64 tmp = sum_vl_xmit_wait + +read_port_cntr (ppd,C_TX_WAIT_VL , +idx_from_vl (vl)); +if (tmp < sum_vl_xmit_wait) { +/* we wrapped */ + sum_vl_xmit_wait = (u64 )~0 ; +break ; + } + sum_vl_xmit_wait = tmp; } - rsp->port_xmit_wait =cpu_to_be64 (max_vl_xmit_wait); +if (be64_to_cpu (rsp->port_xmit_wait) > sum_vl_xmit_wait) + rsp->port_xmit_wait =cpu_to_be64 (sum_vl_xmit_wait); } }
@@ -2513,13 +2519,14 @@ static u64 get_error_counter_summary(struct ib_device *ibdev, u8 port)return error_counter_summary; } -static void a0_datacounters (struct hfi1_devdata *dd,struct _port_dctrs *rsp, +static void a0_datacounters (struct hfi1_pportdata *ppd,struct _port_dctrs *rsp,u32 vl_select_mask) { -if (!is_bx (dd)) { +if (!is_bx (ppd->dd)) {unsigned long vl;int vfi =0 ;u64 rcv_data, rcv_bubble, sum_vl_xmit_wait =0 ; +u32 vl_all_mask =VL_MASK_ALL ; rcv_data =be64_to_cpu (rsp->port_rcv_data); rcv_bubble =be64_to_cpu (rsp->port_rcv_bubble);
@@ -2545,10 +2552,11 @@ static void a0_datacounters(struct hfi1_devdata *dd, struct _port_dctrs *rsp, vfi++; } vfi =0 ; -for_each_set_bit (vl, (unsigned long *)&(vl_select_mask), -8 *sizeof (vl_select_mask)) { +for_each_set_bit (vl, (unsigned long *)&(vl_all_mask), +8 *sizeof (vl_all_mask)) {u64 tmp = sum_vl_xmit_wait + -be64_to_cpu (rsp->vls[vfi++].port_vl_xmit_wait); +read_port_cntr (ppd,C_TX_WAIT_VL , +idx_from_vl (vl));if (tmp < sum_vl_xmit_wait) {/* we wrapped */ sum_vl_xmit_wait = (u64 ) ~0 ;
@@ -2710,7 +2718,7 @@ static int pma_get_opa_datacounters(struct opa_pma_mad *pmp, vfi++; } -a0_datacounters (dd, rsp, vl_select_mask); +a0_datacounters (ppd, rsp, vl_select_mask);if (resp_len) *resp_len += response_data_size;
Signature · 1 line
1.7.0.7
PATCH 17/18 staging/rdma/hfi1: Adding counter resolutions for DataPortCounters
In reply to Jubin JohnFrom: Andrea Lowe <[email protected]>
Changing the 32-bit reserved field in opa_port_data_counters_msg to the new 'resolution' field. PMA will use resolutions to right- shift values for LocalLinkIntegrity and LinkErrorRecovery when computing the ErrorCounterSummary for a DataPortCounters request.
--- drivers/staging/rdma/hfi1/mad.c | 38 ++++++++++++++++++++++++++------------ 1 files changed, 26 insertions(+), 12 deletions(-)
drivers/staging/rdma/hfi1/mad.c +26 -12
@@ -2076,13 +2076,20 @@ struct opa_aggregate {u8 data[0 ]; }; -/* Request contains first two fields, response contains those plus the rest */ +#define MSK_LLI 0x000000f0 +#define MSK_LLI_SFT 4 +#define MSK_LER 0x0000000f +#define MSK_LER_SFT 0 +#define ADD_LLI 8 +#define ADD_LER 2 + +/* Request contains first three fields, response contains those plus the rest */ struct opa_port_data_counters_msg {__be64 port_select_mask[4 ];__be32 vl_select_mask; +__be32 resolution;/* Response fields follow */ -__be32 reserved1;struct _port_dctrs {u8 port_number;u8 reserved2[3 ];
@@ -2480,7 +2487,8 @@ static int pma_get_opa_portstatus(struct opa_pma_mad *pmp,return reply ((struct ib_mad_hdr *)pmp); } -static u64 get_error_counter_summary (struct ib_device *ibdev,u8 port) +static u64 get_error_counter_summary (struct ib_device *ibdev,u8 port, +u8 res_lli,u8 res_ler) {struct hfi1_devdata *dd =dd_from_ibdev (ibdev);struct hfi1_ibport *ibp =to_iport (ibdev, port);
@@ -2496,14 +2504,14 @@ static u64 get_error_counter_summary(struct ib_device *ibdev, u8 port) CNTR_INVALID_VL); error_counter_summary +=read_dev_cntr (dd,C_DC_RMT_PHY_ERR ,CNTR_INVALID_VL ); - error_counter_summary +=read_dev_cntr (dd,C_DC_TX_REPLAY , -CNTR_INVALID_VL ); - error_counter_summary +=read_dev_cntr (dd,C_DC_RX_REPLAY , -CNTR_INVALID_VL ); - error_counter_summary +=read_dev_cntr (dd,C_DC_SEQ_CRC_CNT , -CNTR_INVALID_VL ); - error_counter_summary +=read_dev_cntr (dd,C_DC_REINIT_FROM_PEER_CNT , -CNTR_INVALID_VL ); +/* local link integrity must be right-shifted by the lli resolution */ + tmp =read_dev_cntr (dd,C_DC_RX_REPLAY ,CNTR_INVALID_VL ); + tmp +=read_dev_cntr (dd,C_DC_TX_REPLAY ,CNTR_INVALID_VL ); + error_counter_summary += (tmp >> res_lli); +/* link error recovery must b right-shifted by the ler resolution */ + tmp =read_dev_cntr (dd,C_DC_SEQ_CRC_CNT ,CNTR_INVALID_VL ); + tmp +=read_dev_cntr (dd,C_DC_REINIT_FROM_PEER_CNT ,CNTR_INVALID_VL ); + error_counter_summary += (tmp >> res_ler); error_counter_summary +=read_dev_cntr (dd,C_DC_RCV_ERR ,CNTR_INVALID_VL ); error_counter_summary +=read_dev_cntr (dd,C_RCV_OVF ,CNTR_INVALID_VL );
@@ -2583,6 +2591,7 @@ static int pma_get_opa_datacounters(struct opa_pma_mad *pmp,u32 num_ports;u8 num_pslm;u8 lq, num_vls; +u8 res_lli, res_ler;u64 port_mask;unsigned long port_num;unsigned long vl;
@@ -2593,6 +2602,10 @@ static int pma_get_opa_datacounters(struct opa_pma_mad *pmp, num_pslm =hweight64 (be64_to_cpu (req->port_select_mask[3 ])); num_vls =hweight32 (be32_to_cpu (req->vl_select_mask)); vl_select_mask =be32_to_cpu (req->vl_select_mask); + res_lli = (u8)(be32_to_cpu (req->resolution) &MSK_LLI ) >>MSK_LLI_SFT ; + res_lli = res_lli ? res_lli +ADD_LLI :0 ; + res_ler = (u8)(be32_to_cpu (req->resolution) &MSK_LER ) >>MSK_LER_SFT ; + res_ler = res_ler ? res_ler +ADD_LER :0 ;if (num_ports !=1 || (vl_select_mask & ~VL_MASK_ALL )) { pmp->mad_hdr.status |=IB_SMP_INVALID_FIELD ;
@@ -2663,7 +2676,8 @@ static int pma_get_opa_datacounters(struct opa_pma_mad *pmp,cpu_to_be64 (read_dev_cntr (dd,C_DC_RCV_BCN ,CNTR_INVALID_VL )); rsp->port_error_counter_summary = -cpu_to_be64 (get_error_counter_summary (ibdev, port)); +cpu_to_be64 (get_error_counter_summary (ibdev, port, + res_lli, res_ler)); vlinfo = &(rsp->vls[0 ]); vfi =0 ;
Signature · 1 line
1.7.0.7
PATCH 18/18 staging/rdma/hfi1: Workaround CONFIG_SDMA_VERBOSITY timing issue
In reply to Jubin JohnEnabling CONFIG_SDMA_VERBOSITY exposes a timing issue in the driver/DC firmware. Removing the CCE_INT_* CSR reads from sdma_dumpstate and a sdma_dumpstate call from the sdma_sendctrl() works around the issue
--- drivers/staging/rdma/hfi1/sdma.c | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)
drivers/staging/rdma/hfi1/sdma.c +0 -11
@@ -1635,9 +1635,6 @@ static void sdma_sendctrl(struct sdma_engine *sde, unsigned op)spin_unlock_irqrestore (&sde->senddmactrl_lock, flags); -#ifdef CONFIG_SDMA_VERBOSITY -sdma_dumpstate (sde); -#endif }static void sdma_setlengen (struct sdma_engine *sde)
@@ -1774,7 +1771,6 @@ static void init_sdma_regs(void sdma_dumpstate (struct sdma_engine *sde) {u64 csr; -unsigned i;sdma_dumpstate_helper (SD (CTRL ));sdma_dumpstate_helper (SD (STATUS ));
@@ -1782,13 +1778,6 @@ void sdma_dumpstate(struct sdma_engine *sde)sdma_dumpstate_helper0 (SD (ERR_MASK ));sdma_dumpstate_helper (SD (ENG_ERR_STATUS ));sdma_dumpstate_helper (SD (ENG_ERR_MASK )); - -for (i =0 ; i <CCE_NUM_INT_CSRS ; ++i) { -sdma_dumpstate_helper2 (CCE_INT_STATUS ); -sdma_dumpstate_helper2 (CCE_INT_MASK ); -sdma_dumpstate_helper2 (CCE_INT_BLOCKED ); - } -sdma_dumpstate_helper (SD (TAIL ));sdma_dumpstate_helper (SD (HEAD ));sdma_dumpstate_helper (SD (PRIORITY_THLD ));
Signature · 1 line
1.7.0.7
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-18-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Re: [PATCH 18/18] staging/rdma/hfi1: Workaround CONFIG_SDMA_VERBOSITY timing issue
Quoted 4 lines · Jubin John
Enabling
CONFIG_SDMA_VERBOSITYexposes a timing issue in the driver/DC firmware. Removing the CCE_INT_* CSR reads fromsdma_dumpstateand asdma_dumpstatecall from thesdma_sendctrl()works around the issue
That sounds like a horrid hack, and this implies that a slower machine will still have this problem...
--
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
RE: [PATCH 18/18] staging/rdma/hfi1: Workaround CONFIG_SDMA_VERBOSITY timing issue
Quoted 2 lines
That sounds like a horrid hack, and this implies that a slower machine will still have this problem...
Greg,
I'm NAK'ing this patch for two reasons:
1. Code underneath the CONFIG option is only used during rework
2. It is a hack as you have noted
We are going to take this up internally to get to the root cause.
Go ahead and drop or whatever you do.
Mike
A message that is not in the archive (sent off-list or not yet received): 32E1700B9017364D9B60AED9960492BC259BD8A2-RjuIdWtd+YbTXloPLtfHfbfspsVTdybXVpNB7YpNyf8@public.gmane.org
Re: [PATCH 18/18] staging/rdma/hfi1: Workaround CONFIG_SDMA_VERBOSITY timing issue
Quoted 5 lines · Mike
Quoted 2 lines
That sounds like a horrid hack, and this implies that a slower machine will still have this problem...
Greg,
Quoted 7 lines
I'm NAK'ing this patch for two reasons:
1. Code underneath the CONFIG option is only used during rework
2. It is a hack as you have notedWe are going to take this up internally to get to the root cause.
Go ahead and drop or whatever you do.
This whole series is dropped from my queue, it needs to be fixed up and resent before I will consider it again.
thanks,
greg k-h
--
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
A message that is not in the archive (sent off-list or not yet received): 1447472236-622-1-git-send-email-jubin.john-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Quoted 3 lines · Jubin John
From: Dean Luick <[email protected]>
Add support for an automatic fallback for firmware names.
Why?
--
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