On Tue, Mar 12, 2019 at 04:06:00PM +0000, Michal Kalderon wrote: > > > + return PTR_ERR(q->db_rec_umem); > > > + } > > > + > > > + q->db_rec_virt = sg_virt(q->db_rec_umem->sg_head.sgl); > > Can't just call sg_virt.. You need to use kmap/etc in this situation > But the memory was allocated in libqedr using mmap. Doesn't matter Jason