]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: handle the persistent internal error AER
authorMichael Kelley <mikelley@microsoft.com>
Wed, 8 Jun 2022 18:52:21 +0000 (11:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:47 +0000 (17:14 -0600)
commit3dea6effa72bd2c4e83294fb07d51943638efde2
tree15ecd40af4fb6d14c2e71be97471f20ea3d319f0
parent56559e75e906c1e861c9516cbd4b9166c88e70e6
nvme: handle the persistent internal error AER

In the NVM Express Revision 1.4 spec, Figure 145 describes possible
values for an AER with event type "Error" (value 000b). For a
Persistent Internal Error (value 03h), the host should perform a
controller reset.

Add support for this error using code that already exists for
doing a controller reset. As part of this support, introduce
two utility functions for parsing the AER type and subtype.

This new support was tested in a lab environment where we can
generate the persistent internal error on demand, and observe
both the Linux side and NVMe controller side to see that the
controller reset has been done.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
include/linux/nvme.h