OSDN Git Service

RDMA/irdma: Add AE source to error log
authorMustafa Ismail <mustafa.ismail@intel.com>
Tue, 5 Jul 2022 23:08:10 +0000 (18:08 -0500)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 07:39:36 +0000 (10:39 +0300)
To assist with debugging add the Asynchronous Event (AE) source when
logging the abnormal AE error log message.

Link: https://lore.kernel.org/r/20220705230815.265-3-shiraz.saleem@intel.com
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/hw.c

index dd3943d..bb60431 100644 (file)
@@ -376,8 +376,8 @@ static void irdma_process_aeq(struct irdma_pci_f *rf)
                                ctx_info->iwarp_info->err_rq_idx_valid = false;
                        fallthrough;
                default:
-                       ibdev_err(&iwdev->ibdev, "abnormal ae_id = 0x%x bool qp=%d qp_id = %d\n",
-                                 info->ae_id, info->qp, info->qp_cq_id);
+                       ibdev_err(&iwdev->ibdev, "abnormal ae_id = 0x%x bool qp=%d qp_id = %d, ae_src=%d\n",
+                                 info->ae_id, info->qp, info->qp_cq_id, info->ae_src);
                        if (rdma_protocol_roce(&iwdev->ibdev, 1)) {
                                if (!info->sq && ctx_info->roce_info->err_rq_idx_valid) {
                                        ctx_info->roce_info->err_rq_idx = info->wqe_idx;