From 27525dd16f080e3a970ac084a0388ebd15f3cacd Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 9 Apr 2025 08:52:53 +0200 Subject: [PATCH 1/2] build: bump libnvme wrap Fetch LM_SEQIND changes. Signed-off-by: Daniel Wagner --- subprojects/libnvme.wrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/libnvme.wrap b/subprojects/libnvme.wrap index d2b4bcc9a8..7f767b58ac 100644 --- a/subprojects/libnvme.wrap +++ b/subprojects/libnvme.wrap @@ -1,6 +1,6 @@ [wrap-git] url = https://github.com/linux-nvme/libnvme.git -revision = 89ac31f536baf15c1834f877b4c1fb9aca1cf94f +revision = 56ca8b4d3180c89f80ee5c0380046f124f39ece4 [provide] libnvme = libnvme_dep From fbbdb297fffe8137e8d762482e04815cdb11991f Mon Sep 17 00:00:00 2001 From: Dmitry Sherstoboev Date: Wed, 9 Apr 2025 07:53:17 +0800 Subject: [PATCH 2/2] plugins/lm: Refine Sequence Indicator description and macro usage Changed the command dword reference in the sequence indicator (seqind) help text from CDW11 to CDW10. This aligns with the spec. Also changed the macro used for setting the sequence indicator bits in the `mos` field from LM_MIGRATION_SEND_MOS to LM_SEQIND. Signed-off-by: Dmitry Sherstoboev --- plugins/lm/lm-nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/lm/lm-nvme.c b/plugins/lm/lm-nvme.c index b596c77323..4f4159fbe9 100644 --- a/plugins/lm/lm-nvme.c +++ b/plugins/lm/lm-nvme.c @@ -280,7 +280,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str " 1h = Suspend"; const char *dudmq = "Delete user data migration queue (DUDMQ) as part of suspend operation " "(CDW11[31])"; - const char *seqind = "Sequence Indicator (CDW11[17:16])\n" + const char *seqind = "Sequence Indicator (CDW10[17:16])\n" " 0h = Not first not last\n" " 1h = First in two or more\n" " 2h = Last in two or more\n" @@ -394,7 +394,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str .args_size = sizeof(args), .fd = dev_fd(dev), .sel = cfg.sel, - .mos = NVME_SET(cfg.seqind, LM_MIGRATION_SEND_MOS), + .mos = NVME_SET(cfg.seqind, LM_SEQIND), .cntlid = cfg.cntlid, .csuuidi = cfg.csuuidi, .uidx = cfg.uidx,