linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Zhu Yanjun <yanjun.zhu@linux.dev>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
	Yishai Hadas <yishaih@nvidia.com>,
	Bernard Metzler <bmt@zurich.ibm.com>,
	Bryan Tan <bryan-bt.tan@broadcom.com>,
	Chengchang Tang <tangchengchang@huawei.com>,
	Cheng Xu <chengyou@linux.alibaba.com>,
	Christian Benvenuti <benve@cisco.com>,
	Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>,
	Edward Srouji <edwards@nvidia.com>,
	Junxian Huang <huangjunxian6@hisilicon.com>,
	Kai Shen <kaishen@linux.alibaba.com>,
	Kalesh AP <kalesh-anakkur.purayil@broadcom.com>,
	Konstantin Taranov <kotaranov@microsoft.com>,
	linux-rdma@vger.kernel.org, Long Li <longli@microsoft.com>,
	Michael Margolin <mrgolin@amazon.com>,
	Michal Kalderon <mkalderon@marvell.com>,
	Mustafa Ismail <mustafa.ismail@intel.com>,
	Nelson Escobar <neescoba@cisco.com>,
	Potnuri Bharat Teja <bharat@chelsio.com>,
	Selvin Xavier <selvin.xavier@broadcom.com>,
	Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
	Vishnu Dasa <vishnu.dasa@broadcom.com>,
	Zhu Yanjun <zyjzyj2000@gmail.com>
Subject: Re: [PATCH rdma-next v1 7/8] IB: Extend UVERBS_METHOD_REG_MR to get DMAH
Date: Mon, 14 Jul 2025 10:17:00 +0300	[thread overview]
Message-ID: <20250714071700.GB5882@unreal> (raw)
In-Reply-To: <66203913-b684-4d0f-8689-077e51dfcf54@linux.dev>

On Sun, Jul 13, 2025 at 03:04:16PM -0700, Zhu Yanjun wrote:
> 在 2025/7/12 23:37, Leon Romanovsky 写道:
> > From: Yishai Hadas <yishaih@nvidia.com>
> > 
> > Extend UVERBS_METHOD_REG_MR to get DMAH and pass it to all drivers.
> > 
> > It will be used in mlx5 driver as part of the next patch from the
> > series.
> > 
> > Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
> > Reviewed-by: Edward Srouji <edwards@nvidia.com>
> > Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
> > ---
> >   drivers/infiniband/core/uverbs_cmd.c          |  2 +-
> >   drivers/infiniband/core/uverbs_std_types_mr.c | 27 +++++++++++++++----
> >   drivers/infiniband/core/verbs.c               |  5 +++-
> >   drivers/infiniband/hw/bnxt_re/ib_verbs.c      |  8 ++++++
> >   drivers/infiniband/hw/bnxt_re/ib_verbs.h      |  2 ++
> >   drivers/infiniband/hw/cxgb4/iw_cxgb4.h        |  1 +
> >   drivers/infiniband/hw/cxgb4/mem.c             |  6 ++++-
> >   drivers/infiniband/hw/efa/efa.h               |  2 ++
> >   drivers/infiniband/hw/efa/efa_verbs.c         | 12 +++++++++
> >   drivers/infiniband/hw/erdma/erdma_verbs.c     |  6 ++++-
> >   drivers/infiniband/hw/erdma/erdma_verbs.h     |  3 ++-
> >   drivers/infiniband/hw/hns/hns_roce_device.h   |  1 +
> >   drivers/infiniband/hw/hns/hns_roce_mr.c       |  6 +++++
> >   drivers/infiniband/hw/irdma/verbs.c           |  9 +++++++
> >   drivers/infiniband/hw/mana/mana_ib.h          |  2 ++
> >   drivers/infiniband/hw/mana/mr.c               |  8 ++++++
> >   drivers/infiniband/hw/mlx4/mlx4_ib.h          |  1 +
> >   drivers/infiniband/hw/mlx4/mr.c               |  4 +++
> >   drivers/infiniband/hw/mlx5/mlx5_ib.h          |  2 ++
> >   drivers/infiniband/hw/mlx5/mr.c               |  8 +++---
> >   drivers/infiniband/hw/mthca/mthca_provider.c  |  6 ++++-
> >   drivers/infiniband/hw/ocrdma/ocrdma_verbs.c   |  6 ++++-
> >   drivers/infiniband/hw/ocrdma/ocrdma_verbs.h   |  3 ++-
> >   drivers/infiniband/hw/qedr/verbs.c            |  6 ++++-
> >   drivers/infiniband/hw/qedr/verbs.h            |  3 ++-
> >   drivers/infiniband/hw/usnic/usnic_ib_verbs.c  |  4 +++
> >   drivers/infiniband/hw/usnic/usnic_ib_verbs.h  |  1 +
> >   drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c  |  5 ++++
> >   .../infiniband/hw/vmw_pvrdma/pvrdma_verbs.h   |  1 +
> >   drivers/infiniband/sw/rdmavt/mr.c             |  5 ++++
> >   drivers/infiniband/sw/rdmavt/mr.h             |  1 +
> >   drivers/infiniband/sw/rxe/rxe_verbs.c         |  4 +++
> >   drivers/infiniband/sw/siw/siw_verbs.c         |  7 ++++-
> >   drivers/infiniband/sw/siw/siw_verbs.h         |  3 ++-
> >   include/rdma/ib_verbs.h                       |  3 +++
> >   include/uapi/rdma/ib_user_ioctl_cmds.h        |  1 +
> >   36 files changed, 154 insertions(+), 20 deletions(-)

<...>

> > +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c
> > @@ -1271,6 +1271,7 @@ static struct ib_mr *rxe_get_dma_mr(struct ib_pd *ibpd, int access)
> >   static struct ib_mr *rxe_reg_user_mr(struct ib_pd *ibpd, u64 start,
> >   				     u64 length, u64 iova, int access,
> > +				     struct ib_dmah *dmah,
> >   				     struct ib_udata *udata)
> >   {
> >   	struct rxe_dev *rxe = to_rdev(ibpd->device);
> > @@ -1278,6 +1279,9 @@ static struct ib_mr *rxe_reg_user_mr(struct ib_pd *ibpd, u64 start,
> >   	struct rxe_mr *mr;
> >   	int err, cleanup_err;
> > +	if (dmah)
> > +		return ERR_PTR(-EOPNOTSUPP);
> 
> Thanks. If I get this patchset correctly, this patchset is based on the PCIe
> features TPH(TLP Processing Hints),  Steering Tags and Processing Hints. RXE
> is an emulation RDMA driver. Thus it can not support this DMAH feature
> because rxe does not have PCIe features support (THP, Steering Tags and
> Processing Hints).
> 
> Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>

Thanks, and BTW please trim the emails while replying.

  reply	other threads:[~2025-07-14  7:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-13  6:37 [PATCH rdma-next v1 0/8] RDMA support for DMA handle Leon Romanovsky
2025-07-13  6:37 ` [PATCH mlx5-next v1 2/8] net/mlx5: Expose IFC bits for TPH Leon Romanovsky
2025-07-13  6:37 ` [PATCH mlx5-next v1 3/8] net/mlx5: Add support for device steering tag Leon Romanovsky
2025-07-13  6:37 ` [PATCH rdma-next v1 4/8] IB/core: Add UVERBS_METHOD_REG_MR on the MR object Leon Romanovsky
2025-07-14 16:33   ` Jason Gunthorpe
2025-07-15  7:14     ` Leon Romanovsky
2025-07-13  6:37 ` [PATCH rdma-next v1 5/8] RDMA/core: Introduce a DMAH object and its alloc/free APIs Leon Romanovsky
2025-07-14 16:39   ` Jason Gunthorpe
2025-07-15  8:21     ` Yishai Hadas
2025-07-15 12:53       ` Jason Gunthorpe
2025-07-15 15:45         ` Yishai Hadas
2025-07-14 16:39   ` Jason Gunthorpe
2025-07-15  8:29     ` Yishai Hadas
2025-07-16  3:58   ` Wathsala Wathawana Vithanage
2025-07-17 11:08     ` Leon Romanovsky
2025-07-13  6:37 ` [PATCH rdma-next v1 6/8] RDMA/mlx5: Add DMAH object support Leon Romanovsky
2025-07-13  6:37 ` [PATCH rdma-next v1 7/8] IB: Extend UVERBS_METHOD_REG_MR to get DMAH Leon Romanovsky
2025-07-13 22:04   ` Zhu Yanjun
2025-07-14  7:17     ` Leon Romanovsky [this message]
2025-07-14  1:03   ` Junxian Huang
2025-07-13  6:37 ` [PATCH rdma-next v1 8/8] RDMA/mlx5: Add DMAH support for reg_user_mr/reg_user_dmabuf_mr Leon Romanovsky

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=20250714071700.GB5882@unreal \
    --to=leon@kernel.org \
    --cc=benve@cisco.com \
    --cc=bharat@chelsio.com \
    --cc=bmt@zurich.ibm.com \
    --cc=bryan-bt.tan@broadcom.com \
    --cc=chengyou@linux.alibaba.com \
    --cc=dennis.dalessandro@cornelisnetworks.com \
    --cc=edwards@nvidia.com \
    --cc=huangjunxian6@hisilicon.com \
    --cc=jgg@nvidia.com \
    --cc=kaishen@linux.alibaba.com \
    --cc=kalesh-anakkur.purayil@broadcom.com \
    --cc=kotaranov@microsoft.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=longli@microsoft.com \
    --cc=mkalderon@marvell.com \
    --cc=mrgolin@amazon.com \
    --cc=mustafa.ismail@intel.com \
    --cc=neescoba@cisco.com \
    --cc=selvin.xavier@broadcom.com \
    --cc=tangchengchang@huawei.com \
    --cc=tatyana.e.nikolova@intel.com \
    --cc=vishnu.dasa@broadcom.com \
    --cc=yanjun.zhu@linux.dev \
    --cc=yishaih@nvidia.com \
    --cc=zyjzyj2000@gmail.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;
as well as URLs for NNTP newsgroup(s).