[PATCH] nvme: set dma alignment to 3

Keith Busch kbusch at kernel.org
Thu May 5 09:31:09 PDT 2022


On Thu, May 05, 2022 at 03:45:34PM +0200, Christoph Hellwig wrote:
> On Wed, May 04, 2022 at 11:43:25AM -0700, Keith Busch wrote:
> > From: Keith Busch <kbusch at kernel.org>
> > 
> > The nvme specification only requires qword alignment for segment
> > descriptors, and the driver already guarantees that. The spec has always
> > allowed user data to be dword aligned, which is what the queue's
> > attribute is for, so relax the alignment requirement to that value.
> > 
> > While we could allow byte alignment for some controllers when using
> > SGLs, we still need to support PRP, and that only allows dword.
> 
> Can't we just turn it go up to eleven? ;-)

Excellent idea! Best I can do is a binary 11 :p



More information about the Linux-nvme mailing list