On 26/10/2020 15:26, Leon Romanovsky wrote: > From: Jason Gunthorpe <jgg@xxxxxxxxxx> > > This fixes a subtle bug, the WQ mailbox has only 5 bits to describe the > page_offset, while mlx5_ib_get_buf_offset() is hard wired to only work > with 6 bit page_offsets. > > Thus it did not properly reject badly aligned buffers. > > YISHAI: WTF? Why does this PRM command only have 5 bits? We must force 4k > alignment for WQ umems in the userspace? You forgot to remove those :).