From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 623E021E1DACF for ; Sun, 6 Aug 2017 20:29:30 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2017 20:31:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,336,1498546800"; d="scan'208";a="116307059" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.2]) by orsmga004.jf.intel.com with ESMTP; 06 Aug 2017 20:31:45 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Mon, 7 Aug 2017 11:31:40 +0800 Message-Id: <20170807033142.177248-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [PATCH 0/2] Notify NVME HW when system reset happens X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 03:29:30 -0000 Per NVM Express Spec, software should notify NVME HW when shutdown occurs. The host should set the Shutdown Notification (CC.SHN) field to 01b to indicate a normal shutdown operation. The controller indicates when shutdown processing is completed by updating the Shutdown Status (CSTS.SHST) field to 10b. Ruiyu Ni (2): MdePkg/Nvme: Add NVME shutdown notification related macros MdeModulePkg/NvmExpressDxe: Notify NVME HW when system reset happens MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c | 7 +- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.h | 23 ++- .../Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf | 3 +- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 181 ++++++++++++++++++++- MdePkg/Include/IndustryStandard/Nvme.h | 6 +- 5 files changed, 215 insertions(+), 5 deletions(-) -- 2.12.2.windows.2