From: Christoph Hellwig <hch@infradead.org>
To: alan.adamson@oracle.com
Cc: "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
Subject: Re: Issue with AWUPF when using multiple controllers in a subsystem
Date: Wed, 9 Apr 2025 02:05:16 -0700 [thread overview]
Message-ID: <Z_Y4TFTqriOTxXsO@infradead.org> (raw)
In-Reply-To: <4a2e4561-9311-40c9-aa65-87e7a2e5b041@oracle.com>
On Fri, Apr 04, 2025 at 03:42:50PM -0700, alan.adamson@oracle.com wrote:
> When dumping the awupf value with nvme-cli, the values match what was setup
> in qemu, but when each devices atomic queue limits was displayed, it didn't
> match its awupf. Currently the awupf is saved in the nvme_subsystem, but the
> awupf is specific to the controller, not the subsystem. Two controllers in a
> subsystem can have different atomic parameters.
>
> The commit 81adb8633491 ("nvme: set physical block size and optimal I/O
> size") added subsys->awupf.
>
> I think the awupf belongs in the nvme_ctrl structure.
No, that would be extremely dangerous. But as NVMe has not explicit
language to forbid different values for different controllers (even
if that is really stupid) we'll need to reject adding controllers
that have lower than the initial value to not break setups.
Sigh.. I'll also reach out to NVMe to see if we can ECN this, but
we'll still need to work around this.
Alternatively we could stop supporting AWUPF entirely and require
NAWUPF which must be the same for all attachments of the controller.
next prev parent reply other threads:[~2025-04-09 10:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 22:42 Issue with AWUPF when using multiple controllers in a subsystem alan.adamson
2025-04-08 21:08 ` Chaitanya Kulkarni
2025-04-09 9:01 ` Christoph Hellwig
2025-04-10 9:09 ` John Garry
2025-04-10 9:19 ` Christoph Hellwig
2025-04-10 10:11 ` John Garry
2025-04-08 21:08 ` Chaitanya Kulkarni
2025-04-09 9:05 ` Christoph Hellwig [this message]
2025-04-10 1:33 ` Chaitanya Kulkarni
2025-04-10 8:32 ` Christoph Hellwig
2025-04-10 9:07 ` Keith Busch
2025-04-10 9:17 ` Christoph Hellwig
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=Z_Y4TFTqriOTxXsO@infradead.org \
--to=hch@infradead.org \
--cc=alan.adamson@oracle.com \
--cc=linux-nvme@lists.infradead.org \
/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