Skip to content

For upstream/tp4095#166

Merged
igaw merged 5 commits intolinux-nvme:masterfrom
sc108-lee:for-upstream/tp4095
Feb 4, 2022
Merged

For upstream/tp4095#166
igaw merged 5 commits intolinux-nvme:masterfrom
sc108-lee:for-upstream/tp4095

Conversation

@sc108-lee
Copy link
Copy Markdown
Contributor

@sc108-lee sc108-lee commented Jan 10, 2022

Added NVM Command Set id-ns
updates for TP 4095 Namespace Capability Reporting 2021.06.28 - Ratified

@igaw igaw added the enhancement New feature or request label Jan 10, 2022
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jan 14, 2022

Can you please rebase this PR? There are conflicts due to recent changes. Thanks!

@sc108-lee sc108-lee force-pushed the for-upstream/tp4095 branch from f11f666 to ec10cf7 Compare January 17, 2022 05:02
@sc108-lee
Copy link
Copy Markdown
Contributor Author

since the changes are conflict with #161
rebased on #161
PR merged into this

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jan 31, 2022

@hreinecke as this PR is changing the nvme_identify_args layout once again we should get this in soon. Any thoughts?

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 4, 2022

@sc108-lee could you rebase and update it to the current HEAD. I suppose we should get this in now.

@sc108-lee sc108-lee force-pushed the for-upstream/tp4095 branch from ec10cf7 to 1a1e2b0 Compare February 4, 2022 08:38
@sc108-lee
Copy link
Copy Markdown
Contributor Author

@igaw rebased & added one more commit that remove domid from get log (using lsi field)

CNS Specific identifier presents all names below for DWORD11 bits [15:00]
    NVM Set Identifier(NVM Set List (04h))
    Domain Identifier(Domain List (18h))
    Endurance Group Identifier(Endurance Group List (19h))

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Add uuid index argument on nvme_identify_ns_csi

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
09h - Identify Namespace data structure for the specified
      User Data Format index containing the namespace capabilities
      for the NVM Command Set.
0Ah - I/O Command Set specific Identify Namespace data structure
      for the specified User Data Format index containing
      the namespace capabilities for the I/O Command Set
      specified in the CSI field.

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
…md_id_ns

Add explaination for mssrl, mcl, src
Based on spec NVMe - TP 4095 Namespace Capability Reporting 2021.06.28 - Ratified
domid was not used in nvme_get_log as well

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
@igaw igaw force-pushed the for-upstream/tp4095 branch from 1a1e2b0 to 2803378 Compare February 4, 2022 10:38
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 4, 2022

  • Whitespace fixes
  • dropping libnvme.rst and man pages updates
  • fixed compile issues with first patch (don't drop NVME_DOMID_NONE too early)
  • fixed commit message text

@igaw igaw merged commit 80db165 into linux-nvme:master Feb 4, 2022
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 4, 2022

Hmm, I think I was too quick with the merge. The last patch looks strange:

@@ -1846,8 +1831,7 @@ static inline int nvme_get_log_media_unit_stat(int fd, __u16 domid,
                .len = sizeof(*mus),
                .nsid = NVME_NSID_NONE,
                .csi = NVME_CSI_NVM,
-               .lsi = NVME_LOG_LSI_NONE,
-               .domid = domid,
+               .lsi = domid,
                .lsp = NVME_LOG_LSP_NONE,
                .uuidx = NVME_UUID_NONE,

@sc108-lee
Copy link
Copy Markdown
Contributor Author

sc108-lee commented Feb 4, 2022

@igaw no worries, it was doing nothing for domid see blow.

__u32 cdw11 = NVME_SET(numdu, LOG_CDW11_NUMDU) |

and also it should be input inside of lsi as I mentioned in commit msg

Check the spec 2.0a Figure 198: Get Log Page – Command Dword 11

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 4, 2022

Just read up in the spec. I didn't expect that the Log Specific Identifier was overloaded. Your change looks correct.

@sc108-lee sc108-lee deleted the for-upstream/tp4095 branch September 5, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants