All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Selvin Xavier <selvin.xavier@broadcom.com>
Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org,
	andrew.gospodarek@broadcom.com,
	Chandramohan Akula <chandramohan.akula@broadcom.com>
Subject: Re: [PATCH for-next 2/3] RDMA/bnxt_re: Report async events and errors
Date: Mon, 9 Oct 2023 09:10:38 +0300	[thread overview]
Message-ID: <20231009061038.GB5042@unreal> (raw)
In-Reply-To: <1696483889-17427-3-git-send-email-selvin.xavier@broadcom.com>

On Wed, Oct 04, 2023 at 10:31:28PM -0700, Selvin Xavier wrote:
> From: Chandramohan Akula <chandramohan.akula@broadcom.com>
> 
> Report QP, SRQ and CQ async events and errors.
> 
> Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
> ---
>  drivers/infiniband/hw/bnxt_re/main.c | 165 +++++++++++++++++++++++++++++++++--
>  1 file changed, 156 insertions(+), 9 deletions(-)

<...>

> +	if (err_event->res_err_state_reason || err_event->req_err_state_reason) {
> +		dev_err_once(rdev_to_dev(qp->rdev),
> +			     "%s %s qp_id: %d cons (%d %d) req (%d %d) res (%d %d)\n",
> +			     __func__, rdma_is_kernel_res(&qp->ib_qp.res) ? "kernel" : "user",
> +			     qp->qplib_qp.id,
> +			     err_event->sq_cons_idx,
> +			     err_event->rq_cons_idx,
> +			     err_event->req_slow_path_state,
> +			     err_event->req_err_state_reason,
> +			     err_event->res_slow_path_state,
> +			     err_event->res_err_state_reason);

<...>

> +		dev_err_once(rdev_to_dev(cq->rdev),
> +			     "%s err reason %d\n", __func__, cqerr->cq_err_reason);
> +		cq->ib_cq.event_handler(&ibevent, cq->ib_cq.cq_context);

ibdev_*() prints please.

Thanks

  reply	other threads:[~2023-10-09  6:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05  5:31 [PATCH for-next 0/3] RDMA/bnxt_re: Async events update Selvin Xavier
2023-10-05  5:31 ` [PATCH for-next 1/3] RDMA/bnxt_re: Update HW interface headers Selvin Xavier
2023-10-09  6:09   ` Leon Romanovsky
2023-10-11 10:04     ` Selvin Xavier
2023-10-05  5:31 ` [PATCH for-next 2/3] RDMA/bnxt_re: Report async events and errors Selvin Xavier
2023-10-09  6:10   ` Leon Romanovsky [this message]
2023-10-11 10:04     ` Selvin Xavier
2023-10-05  5:31 ` [PATCH for-next 3/3] RDMA/bnxt_re: Do not report SRQ error in srq notification Selvin Xavier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231009061038.GB5042@unreal \
    --to=leon@kernel.org \
    --cc=andrew.gospodarek@broadcom.com \
    --cc=chandramohan.akula@broadcom.com \
    --cc=jgg@ziepe.ca \
    --cc=linux-rdma@vger.kernel.org \
    --cc=selvin.xavier@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.