[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MN2PR18MB3182B06853B828BDBA0DB178A1C10@MN2PR18MB3182.namprd18.prod.outlook.com>
Date: Thu, 25 Jul 2019 19:38:03 +0000
From: Michal Kalderon <mkalderon@...vell.com>
To: Jason Gunthorpe <jgg@...pe.ca>
CC: Ariel Elior <aelior@...vell.com>,
"dledford@...hat.com" <dledford@...hat.com>,
"galpress@...zon.com" <galpress@...zon.com>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [EXT] Re: [PATCH v6 rdma-next 5/6] RDMA/qedr: Add doorbell
overflow recovery support
> From: Jason Gunthorpe <jgg@...pe.ca>
> Sent: Thursday, July 25, 2019 9:01 PM
>
> External Email
>
> ----------------------------------------------------------------------
> On Tue, Jul 09, 2019 at 05:17:34PM +0300, Michal Kalderon wrote:
>
> > +static int qedr_init_user_db_rec(struct ib_udata *udata,
> > + struct qedr_dev *dev, struct qedr_userq *q,
> > + bool requires_db_rec)
> > +{
> > + struct qedr_ucontext *uctx =
> > + rdma_udata_to_drv_context(udata, struct qedr_ucontext,
> > + ibucontext);
> > +
> > + /* Aborting for non doorbell userqueue (SRQ) or non-supporting lib
> */
> > + if (requires_db_rec == 0 || !uctx->db_rec)
> > + return 0;
> > +
> > + /* Allocate a page for doorbell recovery, add to mmap ) */
> > + q->db_rec_data = (void *)get_zeroed_page(GFP_KERNEL);
>
> I now think this needs to be GFP_USER and our other drivers have a bug here
> as well..
Ok, will fix this.
>
> Jason
Powered by blists - more mailing lists