[PATCH] nvme-pci: add NVME_QUIRK_APST_BUF_512 for Micron 2100AI/AT

Christoph Hellwig hch at lst.de
Mon Nov 30 00:53:32 PST 2026


On Fri, Nov 27, 2026 at 02:35:38PM +0100, Bean Huo wrote:
> From: Bean Huo <beanhuo at micron.com>
> 
> The APST table is 256 bytes and nvme_configure_apst() allocates exactly
> that much, so the table can be the last 256 bytes of a page.
> 
> The Micron 2100AI/AT (PCI 1344:6001) reads the data for this command
> in one 512 byte unit. When the table ends a page, the read reaches into
> the next page, and with an IOMMU enabled this can be reported as a
> fault. The command itself still completes.
> 
> Add NVME_QUIRK_APST_BUF_512 for this device. With the quirk, allocate
> and map 512 zeroed bytes. kmalloc aligns a power-of-two size to that
> size, so the buffer never crosses a page. PRPs carry no length, so the
> command is unchanged.
> 
> The table format and the APST policy do not change. While here, use
> the product name in the comment of this PCI entry.

Meh.  Why does everyone fuck up their devices so much?

I guess we have to live with this, so:

Reviewed-by: Christoph Hellwig <hch at lst.de>
> 



More information about the Linux-nvme mailing list