]> git.droids-corp.org - dpdk.git/commitdiff
net/ark: report additional errors from firmware
authorEd Czeck <ed.czeck@atomicrules.com>
Tue, 7 Jun 2022 21:31:47 +0000 (17:31 -0400)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 8 Jun 2022 08:38:39 +0000 (10:38 +0200)
Detect and report completion errors from firmware

Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
drivers/net/ark/ark_rqp.c
drivers/net/ark/ark_rqp.h

index ef9ccd07066387aec5a1344841e0201f6c81942f..efb9730fe6643903692de411eb93c2507a23ac44 100644 (file)
@@ -22,14 +22,16 @@ ark_rqp_stats_reset(struct ark_rqpace_t *rqp)
 void
 ark_rqp_dump(struct ark_rqpace_t *rqp)
 {
-       if (rqp->err_count_other != 0)
+       if (rqp->err_count_other || rqp->cmpl_errors)
                ARK_PMD_LOG(ERR,
                            "RQP Errors noted: ctrl: %d cplh_hmax %d cpld_max %d"
                            ARK_SU32
+                           ARK_SU32
                            ARK_SU32 "\n",
                            rqp->ctrl, rqp->cplh_max, rqp->cpld_max,
                            "Error Count", rqp->err_cnt,
-                           "Error General", rqp->err_count_other);
+                           "Error General", rqp->err_count_other,
+                           "Cmpl Errors", rqp->cmpl_errors);
 
        ARK_PMD_LOG(INFO, "RQP Dump: ctrl: %d cplh_hmax %d cpld_max %d"
                      ARK_SU32
index 6c8046062be25af2aae8582a6ed0229997306484..d09f242e1ef7ca288d245d3e878deca7fd1b0ed0 100644 (file)
@@ -48,7 +48,8 @@ struct ark_rqpace_t {
        volatile uint32_t cpld_pending_max;
        volatile uint32_t err_count_other;
        char eval[4];
-       volatile int lasped;
+       volatile int32_t lasped;
+       volatile uint32_t cmpl_errors;
 };
 
 void ark_rqp_dump(struct ark_rqpace_t *rqp);