[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190725180106.GB18757@ziepe.ca>
Date: Thu, 25 Jul 2019 15:01:06 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Michal Kalderon <michal.kalderon@...vell.com>
Cc: ariel.elior@...vell.com, dledford@...hat.com, galpress@...zon.com,
linux-rdma@...r.kernel.org, davem@...emloft.net,
netdev@...r.kernel.org
Subject: Re: [PATCH v6 rdma-next 5/6] RDMA/qedr: Add doorbell overflow
recovery support
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..
Jason
Powered by blists - more mailing lists