[bug report] nvme4: inconsistent AWUPF, controller not added (0/7).
Yi Zhang
yi.zhang at redhat.com
Thu Jul 3 10:47:50 PDT 2025
On Thu, Jul 3, 2025 at 4:04 PM Christoph Hellwig <hch at lst.de> wrote:
>
> On Wed, Jul 02, 2025 at 09:33:32AM -0700, alan.adamson at oracle.com wrote:
> > Looks like the device isn't reporting AWUPF after the format/reset.
>
> The other option would be that the format changed the value.
>
> The mess NVMe creasted with the totally un-thought out atomics is
> beyond belive :(
>
> I wonder if we should just back out the whole thing and wait for the
> working group to come up with something that can actually safely work.
>
Yeah, the format operation will change the awupf value.
Here is the reset operation pass[1] and fail[2] log
[1]
+ nvme format -l0 -f /dev/nvme3n1
Success formatting namespace:1
+ nvme id-ctrl /dev/nvme3
+ grep awupf
awupf : 7
+ grep nawupf
+ nvme id-ns /dev/nvme3n1
nawupf : 7
+ nvme format -l1 -f /dev/nvme3n1
Success formatting namespace:1
+ nvme id-ctrl /dev/nvme3
+ grep awupf
awupf : 0
+ nvme id-ns /dev/nvme3n1
+ grep nawupf
nawupf : 0
+ nvme reset /dev/nvme3
+ nvme id-ctrl /dev/nvme3
+ grep awupf
awupf : 0
[2]
+ nvme format -l0 -f /dev/nvme5n1
Success formatting namespace:1
+ nvme id-ctrl /dev/nvme5
+ grep awupf
awupf : 7
+ nvme id-ns /dev/nvme5n1
+ grep nawupf
nawupf : 7
+ nvme format -l1 -f /dev/nvme5n1
Success formatting namespace:1
+ nvme id-ctrl /dev/nvme5
+ grep awupf
awupf : 0
+ nvme id-ns /dev/nvme5n1
+ grep nawupf
nawupf : 0
+ nvme reset /dev/nvme5
Reset: Network dropped connection on reset
# dmesg | tail -5
[ 597.973393] nvme nvme5: rescanning namespaces.
[ 598.292285] nvme nvme5: rescanning namespaces.
[ 598.584937] nvme nvme5: resetting controller
[ 598.626440] nvme nvme5: inconsistent AWUPF, controller not added (0/7).
[ 598.633064] nvme nvme5: Disabling device after reset failure: -22
--
Best Regards,
Yi Zhang
More information about the Linux-nvme
mailing list