From: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Bryan Tan <bryantan-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH for-rc 1/6] RDMA/vmw_pvrdma: Clarify QP is_kernel logic
Date: Wed, 13 Dec 2017 21:20:09 +0200 [thread overview]
Message-ID: <20171213192008.GC6074@yuvallap> (raw)
In-Reply-To: <20171213190825.GH20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
On Wed, Dec 13, 2017 at 11:08:26AM -0800, Bryan Tan wrote:
> On Wed, Dec 13, 2017 at 11:02:46AM +0200, Yuval Shaia wrote:
> > On Fri, Dec 08, 2017 at 11:00:17AM -0800, Bryan Tan wrote:
> > > Be more consistent in checking is_kernel flag for QPs.
> >
> > Consist with what?
> > (asking because expecting also pvrdma_create_cq to be fixed).
>
> I had updated create SRQ's is_kernel in the same way. Thanks for
> pointing out that I had missed it in create CQ.
>
> > >
> > > Testing Done: ibv_rc_pingpong, rping, perftests.
> >
> > These are all userspace tests, right?
>
> Yes. That was accidentally carried over from our how we
> format our commits internally. I'll remove the "Testing Done"
> line here and in the next commit message.
But...since you exposed this info my question remains, you changed a flow
of a branch that checks if verb was requested by kernel or userspace but
you tested it only with userspace tools.
>
> > >
> > > Reviewed-by: Adit Ranadive <aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
> > > Reviewed-by: Aditya Sarwade <asarwade-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
> > > Reviewed-by: Jorgen Hansen <jhansen-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
> > > Signed-off-by: Bryan Tan <bryantan-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
> > > ---
> > > drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 7 +++----
> > > 1 file changed, 3 insertions(+), 4 deletions(-)
> > >
> > > diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
> > > index 10420a1..b932b7e 100644
> > > --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
> > > +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
> > > @@ -249,8 +249,9 @@ struct ib_qp *pvrdma_create_qp(struct ib_pd *pd,
> > > init_waitqueue_head(&qp->wait);
> > >
> > > qp->state = IB_QPS_RESET;
> > > + qp->is_kernel = !(pd->uobject && udata);
> > >
> > > - if (pd->uobject && udata) {
> > > + if (!qp->is_kernel) {
> > > dev_dbg(&dev->pdev->dev,
> > > "create queuepair from user space\n");
> > >
> > > @@ -291,8 +292,6 @@ struct ib_qp *pvrdma_create_qp(struct ib_pd *pd,
> > > qp->npages_recv = 0;
> > > qp->npages = qp->npages_send + qp->npages_recv;
> > > } else {
> > > - qp->is_kernel = true;
> > > -
> > > ret = pvrdma_set_sq_size(to_vdev(pd->device),
> > > &init_attr->cap, qp);
> > > if (ret)
> > > @@ -394,7 +393,7 @@ struct ib_qp *pvrdma_create_qp(struct ib_pd *pd,
> > > err_pdir:
> > > pvrdma_page_dir_cleanup(dev, &qp->pdir);
> > > err_umem:
> > > - if (pd->uobject && udata) {
> > > + if (!qp->is_kernel) {
> > > if (qp->rumem)
> > > ib_umem_release(qp->rumem);
> > > if (qp->sumem)
> >
> > Regardless of the comments:
> >
> > Reviewed-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
> >
> > > --
> > > 1.8.5.6
> > >
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> > > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > > More majordomo info at https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIBAg&c=uilaK90D4TOVoH58JNXRgQ&r=MjCVwEZlX7H-yXFOZ8b3IdkUDz9tjnFu-2RVvpFiKHw&m=M9b99UdgNMHlndgR9oY0KSFjeYht9EpUHM4iqxKTcUE&s=d8rmC5ZUNj2gLH8KOcrCgMmMg6484BYoXivYSjKEha0&e=
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-12-13 19:20 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-08 18:58 [PATCH for-rc 0/6] vmw_pvrdma fixes for 4.15 Bryan Tan
[not found] ` <20171208185818.GA28514-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-08 19:00 ` [PATCH for-rc 1/6] RDMA/vmw_pvrdma: Clarify QP is_kernel logic Bryan Tan
[not found] ` <20171208190010.GA31023-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 9:02 ` Yuval Shaia
2017-12-13 19:08 ` Bryan Tan
[not found] ` <20171213190825.GH20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 19:20 ` Yuval Shaia [this message]
2017-12-13 21:22 ` Bryan Tan
2017-12-08 19:01 ` [PATCH for-rc 2/6] RDMA/vmw_pvrdma: Call ib_umem_release on destroy QP path Bryan Tan
[not found] ` <20171208190106.GA32066-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 8:53 ` Yuval Shaia
2017-12-13 16:17 ` Jason Gunthorpe
[not found] ` <20171213161755.GB16920-uk2M96/98Pc@public.gmane.org>
2017-12-13 18:40 ` Yuval Shaia
2017-12-13 18:55 ` Bryan Tan
[not found] ` <20171213185517.GG20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 19:04 ` Yuval Shaia
2017-12-13 19:16 ` Yuval Shaia
2017-12-13 18:56 ` Jason Gunthorpe
2017-12-08 19:01 ` [PATCH for-rc 3/6] RDMA/vmw_pvrdma: Use more specific sizeof in kcalloc Bryan Tan
2017-12-08 19:02 ` [PATCH for-rc 4/6] RDMA/vmw_pvrdma: Use refcount_dec_and_test to avoid warning Bryan Tan
[not found] ` <20171208190218.GA744-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-08 23:30 ` Jason Gunthorpe
[not found] ` <20171208233049.GB23239-uk2M96/98Pc@public.gmane.org>
2017-12-11 18:33 ` Bryan Tan
[not found] ` <20171211183314.GA20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-11 20:14 ` Jason Gunthorpe
[not found] ` <20171211201421.GD27709-uk2M96/98Pc@public.gmane.org>
2017-12-11 21:59 ` Bryan Tan
[not found] ` <20171211215936.GC20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-11 22:14 ` Jason Gunthorpe
[not found] ` <20171211221425.GA7551-uk2M96/98Pc@public.gmane.org>
2017-12-12 17:13 ` Bryan Tan
[not found] ` <20171212171300.GD20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-12 18:55 ` Jason Gunthorpe
[not found] ` <20171212185530.GB16603-uk2M96/98Pc@public.gmane.org>
2017-12-13 0:08 ` Bryan Tan
[not found] ` <20171213000815.GE20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 2:20 ` Jason Gunthorpe
[not found] ` <20171213022031.GE16603-uk2M96/98Pc@public.gmane.org>
2017-12-13 9:07 ` Bryan Tan
[not found] ` <20171213090702.GF20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-13 16:12 ` Jason Gunthorpe
2017-12-08 19:02 ` [PATCH for-rc 5/6] RDMA/vmw_pvrdma: Use refcount_t instead of atomic_t Bryan Tan
2017-12-08 19:03 ` [PATCH for-rc 6/6] RDMA/vmw_pvrdma: Add UAR SRQ macros in ABI header file Bryan Tan
[not found] ` <20171208190317.GA3636-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-08 23:28 ` Jason Gunthorpe
[not found] ` <20171208232809.GA23239-uk2M96/98Pc@public.gmane.org>
2017-12-11 18:35 ` Bryan Tan
[not found] ` <20171211183554.GB20684-qXbCdz4EeRo1jLI2hToXVI42T8aCTgcwy4vvyvUx+exJXi8ZT2ovy+oDBWuYMCC/JZORHMmSJCU@public.gmane.org>
2017-12-11 20:12 ` Jason Gunthorpe
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=20171213192008.GC6074@yuvallap \
--to=yuval.shaia-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=bryantan-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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).