Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Bean Huo <beanhuo@iokpp.de>
Cc: Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
	linux-nvme@lists.infradead.org, Bean Huo <beanhuo@micron.com>,
	Gaurav Sinha <gsinha@micron.com>
Subject: Re: [PATCH] nvme-pci: add NVME_QUIRK_APST_BUF_512 for Micron 2100AI/AT
Date: Mon, 30 Nov 2026 09:53:32 +0100	[thread overview]
Message-ID: <20261130085332.GA11589@lst.de> (raw)
In-Reply-To: <20261127133538.3032289-1-beanhuo@iokpp.de>

On Fri, Nov 27, 2026 at 02:35:38PM +0100, Bean Huo wrote:
> From: Bean Huo <beanhuo@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@lst.de>
> 


      reply	other threads:[~2026-11-30  8:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 13:35 [PATCH] nvme-pci: add NVME_QUIRK_APST_BUF_512 for Micron 2100AI/AT Bean Huo
2026-11-30  8:53 ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130085332.GA11589@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=beanhuo@iokpp.de \
    --cc=beanhuo@micron.com \
    --cc=gsinha@micron.com \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox