net/ark: report hardware status on init
Expose additional fpga status registers. Report hardware status during PMD init. Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com> Acked-by: John Miller <john.miller@atomicrules.com>
This commit is contained in:
parent
3574222fc4
commit
9ff8fe95dc
@ -318,6 +318,15 @@ eth_ark_dev_init(struct rte_eth_dev *dev)
|
||||
ark->sysctrl.t32[4], __func__);
|
||||
return -1;
|
||||
}
|
||||
if (ark->sysctrl.t32[3] != 0) {
|
||||
if (ark_rqp_lasped(ark->rqpacing)) {
|
||||
PMD_DRV_LOG(ERR, "Arkville Evaluation System - "
|
||||
"Timer has Expired\n");
|
||||
return -1;
|
||||
}
|
||||
PMD_DRV_LOG(WARNING, "Arkville Evaluation System - "
|
||||
"Timer is Running\n");
|
||||
}
|
||||
|
||||
PMD_DRV_LOG(INFO,
|
||||
"HW Sanity test has PASSED, expected constant"
|
||||
|
@ -89,3 +89,9 @@ ark_rqp_dump(struct ark_rqpace_t *rqp)
|
||||
"cplh pending max", rqp->cplh_pending_max,
|
||||
"cpld pending max", rqp->cpld_pending_max);
|
||||
}
|
||||
|
||||
int
|
||||
ark_rqp_lasped(struct ark_rqpace_t *rqp)
|
||||
{
|
||||
return rqp->lasped;
|
||||
}
|
||||
|
@ -76,9 +76,11 @@ struct ark_rqpace_t {
|
||||
volatile uint32_t cplh_pending_max;
|
||||
volatile uint32_t cpld_pending_max;
|
||||
volatile uint32_t err_count_other;
|
||||
char eval[4];
|
||||
volatile int lasped;
|
||||
};
|
||||
|
||||
void ark_rqp_dump(struct ark_rqpace_t *rqp);
|
||||
void ark_rqp_stats_reset(struct ark_rqpace_t *rqp);
|
||||
|
||||
int ark_rqp_lasped(struct ark_rqpace_t *rqp);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user