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,
kalesh-anakkur.purayil@broadcom.com
Subject: Re: [PATCH for-next v2 1/4] RDMA/bnxt_re: Add support for optimized modify QP
Date: Mon, 28 Oct 2024 13:59:08 +0200 [thread overview]
Message-ID: <20241028115908.GF1615717@unreal> (raw)
In-Reply-To: <1728928561-25607-2-git-send-email-selvin.xavier@broadcom.com>
On Mon, Oct 14, 2024 at 10:55:58AM -0700, Selvin Xavier wrote:
> From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
>
> Modify QP improvements are for state transitions
> from INIT -> RTR and RTR -> RTS.
> In order to support the Modify QP Optimization feature,
> the driver is expected to check for the feature support
> in the CMDQ_QUERY_FUNC and register its support for this
> feature with the FW in CMDQ_INITIALIZE_FIRMWARE.
>
> Additionally, the driver is required to specify the new
> fields and attribute masks for the transitions as follows:
> 1. INIT -> RTR:
> - New fields: srq_used, type.
> - enable srq_used when RC QP is configured to use SRQ.
> - set the type based on the QP type.
> - Mandatory masks:
> - RC: CMDQ_MODIFY_QP_MODIFY_MASK_ACCESS,
> CMDQ_MODIFY_QP_MODIFY_MASK_PKEY
> - UD QP and QP1: CMDQ_MODIFY_QP_MODIFY_MASK_PKEY,
> CMDQ_MODIFY_QP_MODIFY_MASK_QKEY
> 2. RTR -> RTS:
> - New fields: type
> - set the type based on the QP type.
> - Mandatory masks:
> - RC: CMDQ_MODIFY_QP_MODIFY_MASK_ACCESS
> - UD QP and QP1: CMDQ_MODIFY_QP_MODIFY_MASK_QKEY
>
> Reviewed-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
> Reviewed-by: Tushar Rane <tushar.rane@broadcom.com>
> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
> ---
> drivers/infiniband/hw/bnxt_re/qplib_fp.c | 40 ++++++++++++++++++++++++++++++
> drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 6 ++++-
> drivers/infiniband/hw/bnxt_re/qplib_res.h | 5 ++++
> drivers/infiniband/hw/bnxt_re/roce_hsi.h | 3 +++
> 4 files changed, 53 insertions(+), 1 deletion(-)
<...>
> diff --git a/drivers/infiniband/hw/bnxt_re/roce_hsi.h b/drivers/infiniband/hw/bnxt_re/roce_hsi.h
> index 3ec8952..69d50d7 100644
> --- a/drivers/infiniband/hw/bnxt_re/roce_hsi.h
> +++ b/drivers/infiniband/hw/bnxt_re/roce_hsi.h
> @@ -216,6 +216,8 @@ struct cmdq_initialize_fw {
> __le16 flags;
> #define CMDQ_INITIALIZE_FW_FLAGS_MRAV_RESERVATION_SPLIT 0x1UL
> #define CMDQ_INITIALIZE_FW_FLAGS_HW_REQUESTER_RETX_SUPPORTED 0x2UL
> + #define CMDQ_INITIALIZE_FW_FLAGS_DRV_VERSION 0x4UL
Where is this define used?
> + #define CMDQ_INITIALIZE_FW_FLAGS_OPTIMIZE_MODIFY_QP_SUPPORTED 0x8UL
Thanks
next prev parent reply other threads:[~2024-10-28 11:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 17:55 [PATCH for-next v2 0/4] RDMA/bnxt_re: driver update Selvin Xavier
2024-10-14 17:55 ` [PATCH for-next v2 1/4] RDMA/bnxt_re: Add support for optimized modify QP Selvin Xavier
2024-10-28 11:59 ` Leon Romanovsky [this message]
2024-10-28 16:50 ` Selvin Xavier
2024-10-28 18:58 ` Leon Romanovsky
2024-10-14 17:55 ` [PATCH for-next v2 2/4] RDMA/bnxt_re: Add support for CQ rx coalescing Selvin Xavier
2024-10-14 17:56 ` [PATCH for-next v2 3/4] RDMA/bnxt_re: Add support for modify_device hook Selvin Xavier
2024-10-14 17:56 ` [PATCH for-next v2 4/4] RDMA/ bnxt_re: Fix access flags for MR and QP modify 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=20241028115908.GF1615717@unreal \
--to=leon@kernel.org \
--cc=andrew.gospodarek@broadcom.com \
--cc=jgg@ziepe.ca \
--cc=kalesh-anakkur.purayil@broadcom.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox