Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 3971a4dba93f08a1e4b8d7b947343722d6b1abf1
      
https://github.com/tianocore/edk2/commit/3971a4dba93f08a1e4b8d7b947343722d6b1abf1
  Author: Shabab Alam <[email protected]>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    M MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressMediaSanitize.c

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to