edk2/MdeModulePkg
Shabab Alam 3971a4dba9 MdeModulePkg/NvmExpressDxe: Clear NSID to 0 for sanitize command
A purge erase operation on NVMe devices using the MediaSanitize
(MediaPurge) protocol fails with Status Code 02h (Invalid Field
in Command).

According to NVMe specification revision 1.4c, the Sanitize
command (OpCode 84h) does not use the NSID field (Section 5,
Figure 142). For commands that do not use NSID, the field must
be cleared to 0 as defined in Section 4.2, Figure 106.

Clear NSID to 0 before issuing the Sanitize command to ensure
spec compliance and prevent command failure.

Signed-off-by: Shabab Alam <shabalam@qti.qualcomm.com>
2026-04-15 02:50:05 +00:00
..
Application MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Bus MdeModulePkg/NvmExpressDxe: Clear NSID to 0 for sanitize command 2026-04-15 02:50:05 +00:00
Core MdeModulePkg/Core: Validate DXE event signature before usage 2026-03-23 18:43:11 +00:00
Include MdeModulePkg: IpmiCommandLib: Add IPMI mailbox declarations 2026-03-13 15:02:28 +00:00
Library MdeModulePkg: : revert EndofDxeEvent TPLs to TPL_NOTIFY for FPDT 2026-03-19 03:39:15 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg: Added several mock libraries for google test 2026-04-02 03:27:19 +00:00
Universal MdeModulePkg: VariableSmmRuntimeDxe: Fix MM communicate v3 buffer sizing 2026-03-25 17:47:59 +00:00
MdeModulePkg.ci.yaml MdeModulePkg: Add duplicate exception for gUiAppFileGuid 2025-03-06 14:18:10 +01:00
MdeModulePkg.dec MdeModulePkg/PciBusDxe: Add optional CRS retry for enumeration 2026-03-17 02:03:32 +00:00
MdeModulePkg.dsc MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
MdeModulePkg.uni MdeModulePkg: Add platform limit for size in Resizable BAR 2026-02-25 03:40:14 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00