nvme: add error log page slot definition
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 12 Dec 2018 23:11:38 +0000 (15:11 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:59:01 +0000 (09:59 +0100)
This patch adds the NVMe error slot definition from the spec.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/nvme.h

index b94fe8fadc4f5409dda26692c1ad3b1c1185c51e..bbcc83886899ceb8e3dd0a0c63ede06a9a81c29c 100644 (file)
@@ -1168,6 +1168,20 @@ struct nvme_command {
        };
 };
 
+struct nvme_error_slot {
+       __le64          error_count;
+       __le16          sqid;
+       __le16          cmdid;
+       __le16          status_field;
+       __le16          param_error_location;
+       __le64          lba;
+       __le32          nsid;
+       __u8            vs;
+       __u8            resv[3];
+       __le64          cs;
+       __u8            resv2[24];
+};
+
 static inline bool nvme_is_write(struct nvme_command *cmd)
 {
        /*