[PATCH] NVMe: avoid kmalloc/kfree for smaller IO

Keith Busch keith.busch at intel.com
Thu Jan 22 10:47:11 PST 2015


On Thu, 22 Jan 2015, Andrey Kuzmin wrote:
> On Jan 22, 2015 9:33 PM, "Keith Busch" <keith.busch at intel.com> wrote:
> > On Thu, 22 Jan 2015, Andrey Kuzmin wrote:
> >> AFAIR, per spec NVMe device operates in system page size terms.
> >
> > That's the ideal situation, but the device and system don't always have
> > the same capabilities. Pretty much every nvme controller supports 4k,
> > and for many, that's all they understand. Some archs use 8k pages, so
> 
> Doesn't this get negotiated at PCIe level?

It's initialized through NVMe controller registers during initialization
based on its reported capabilities and the system page size. This is
just informing the controller of the DMA alignment to use for its PRP
scatter-gather mechanism.



More information about the Linux-nvme mailing list