All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Kalderon <mkalderon@marvell.com>
To: Gal Pressman <galpress@amazon.com>
Cc: "jgg@ziepe.ca" <jgg@ziepe.ca>,
	"dledford@redhat.com" <dledford@redhat.com>,
	Ariel Elior <aelior@marvell.com>,
	"bmt@zurich.ibm.com" <bmt@zurich.ibm.com>,
	"sleybo@amazon.com" <sleybo@amazon.com>,
	"leon@kernel.org" <leon@kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: RE: [PATCH v7 rdma-next 0/7] RDMA/qedr: Use the doorbell overflow recovery mechanism for RDMA
Date: Wed, 21 Aug 2019 10:32:25 +0000	[thread overview]
Message-ID: <MN2PR18MB318297E219BB657ED716C3A3A1AA0@MN2PR18MB3182.namprd18.prod.outlook.com> (raw)
In-Reply-To: <cee52133-ae69-3709-6f3c-187382af054f@amazon.com>

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Thanks Gal, 

I think I found the problem for the issue below, attached a patch that should be applied on top of the series. 
Please let me know if this fixed the issues you are seeing. 
In qedr we work with only single pages, and this issue will only occur with multiple pages. 

Thanks,
Michal

> -----Original Message-----
> From: Gal Pressman <galpress@amazon.com>
> Sent: Wednesday, August 21, 2019 1:15 PM
> To: Michal Kalderon <mkalderon@marvell.com>
> Cc: jgg@ziepe.ca; dledford@redhat.com; Ariel Elior <aelior@marvell.com>;
> bmt@zurich.ibm.com; sleybo@amazon.com; leon@kernel.org; linux-
> rdma@vger.kernel.org
> Subject: Re: [PATCH v7 rdma-next 0/7] RDMA/qedr: Use the doorbell
> overflow recovery mechanism for RDMA
> 
> On 21/08/2019 11:03, Michal Kalderon wrote:
> > Hi Gal,
> >
> > Thanks for the quick testing and feedback!
> >
> > Can you share some more information on the scenario you're running ?
> 
> It happens on most of our automated tests.
> I reproduce it manually by running ib_send_{bw,lat} over SRD.
> 
> > Does this happen each time or intermittently ?
> 
> Happens on most of the runs.
> 
> > Can you send me your .config ?
> 
> Attached.
> 
> > are you running agains rdma-next tree ?
> 
> Yes, commit 77905379e9b2 ("RDMA/hns: Remove unuseful member") with
> this series applied on top.
> 
> > Can  you reproduce with enabling ib_core module dynamic debug on ?
> 
> Attached a log of ib_send_bw running with ib_core and ib_uverbs dynamic
> debug enabled.
> 
> Let me know if there's anything else I can do.

[-- Attachment #2: 0001-Fix-bad-page-state-output-when-run-with-efa-driver.patch --]
[-- Type: application/octet-stream, Size: 940 bytes --]

From 3a05938eab4cccecce58a38618e9623c4251a1bd Mon Sep 17 00:00:00 2001
From: Michal Kalderon <michal.kalderon@marvell.com>
Date: Wed, 21 Aug 2019 13:26:43 +0300
Subject: [PATCH] Fix bad page state output when run with efa driver

---
 drivers/infiniband/core/ib_core_uverbs.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/ib_core_uverbs.c b/drivers/infiniband/core/ib_core_uverbs.c
index cce20172cd71..30b36b7c330c 100644
--- a/drivers/infiniband/core/ib_core_uverbs.c
+++ b/drivers/infiniband/core/ib_core_uverbs.c
@@ -222,9 +222,10 @@ void rdma_user_mmap_entry_free(struct kref *kref)
 			  entry->obj, rdma_user_mmap_get_key(entry),
 			  entry->address, entry->length, npages);
 
-		if (ucontext->device->ops.mmap_free)
-			ucontext->device->ops.mmap_free(entry);
 	}
+	if (ucontext->device->ops.mmap_free)
+		ucontext->device->ops.mmap_free(entry);
+
 	kfree(entry);
 }
 
-- 
2.14.5


  reply	other threads:[~2019-08-21 10:32 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20 12:18 [PATCH v7 rdma-next 0/7] RDMA/qedr: Use the doorbell overflow recovery mechanism for RDMA Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 1/7] RDMA/core: Move core content from ib_uverbs to ib_core Michal Kalderon
2019-08-20 12:58   ` Jason Gunthorpe
2019-08-20 21:30     ` Michal Kalderon
2019-08-21 16:30       ` Michal Kalderon
2019-08-20 14:08   ` Gal Pressman
2019-08-20 21:32     ` Michal Kalderon
2019-08-21  6:06       ` Gal Pressman
2019-08-21  7:56         ` Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 2/7] RDMA/core: Create mmap database and cookie helper functions Michal Kalderon
2019-08-20 13:21   ` Jason Gunthorpe
2019-08-20 21:23     ` [EXT] " Michal Kalderon
2019-08-21 16:47       ` Michal Kalderon
2019-08-21 16:51         ` Jason Gunthorpe
2019-08-21 17:14           ` Michal Kalderon
2019-08-21 17:37             ` Jason Gunthorpe
2019-08-26 11:53               ` Michal Kalderon
2019-08-26 12:01                 ` Gal Pressman
2019-08-22  8:35   ` Gal Pressman
2019-08-25  8:36     ` Michal Kalderon
2019-08-25 10:39       ` Gal Pressman
2019-08-26  8:41         ` Michal Kalderon
2019-08-26 15:30       ` Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 3/7] RDMA/efa: Use the common mmap_xa helpers Michal Kalderon
2019-08-22 13:18   ` Gal Pressman
2019-08-25  8:41     ` Michal Kalderon
2019-08-25 10:45       ` Gal Pressman
2019-08-26  8:42         ` Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 4/7] RDMA/siw: " Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 5/7] RDMA/qedr: Use the common mmap API Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 6/7] RDMA/qedr: Add doorbell overflow recovery support Michal Kalderon
2019-08-20 12:18 ` [PATCH v7 rdma-next 7/7] RDMA/qedr: Add iWARP doorbell " Michal Kalderon
2019-08-20 18:31 ` [PATCH v7 rdma-next 0/7] RDMA/qedr: Use the doorbell overflow recovery mechanism for RDMA Gal Pressman
2019-08-21  8:03   ` Michal Kalderon
2019-08-21 10:15     ` Gal Pressman
2019-08-21 10:32       ` Michal Kalderon [this message]
2019-08-21 10:41         ` Gal Pressman
2019-08-21 12:25           ` Gal Pressman
2019-08-21 16:23             ` Gal Pressman
2019-08-21 16:27               ` Michal Kalderon

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=MN2PR18MB318297E219BB657ED716C3A3A1AA0@MN2PR18MB3182.namprd18.prod.outlook.com \
    --to=mkalderon@marvell.com \
    --cc=aelior@marvell.com \
    --cc=bmt@zurich.ibm.com \
    --cc=dledford@redhat.com \
    --cc=galpress@amazon.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sleybo@amazon.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.