> From: Jason Gunthorpe <jgg@xxxxxxxx> > 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