From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org 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 96202211799F0 for ; Tue, 23 Oct 2018 18:19:57 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 18:19:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,418,1534834800"; d="scan'208";a="268249856" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.9]) by orsmga005.jf.intel.com with ESMTP; 23 Oct 2018 18:19:55 -0700 From: Hao Wu To: edk2-devel@lists.01.org Cc: Hao Wu , Liangcheng Tang , Jiewen Yao , Ruiyu Ni , Star Zeng Date: Wed, 24 Oct 2018 09:19:49 +0800 Message-Id: <20181024011952.20404-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 Subject: [PATCH v2 0/3] NvmExpressDxe: Bug fixes within NvmExpressPassThru() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2018 01:19:57 -0000 V2 changes: A. For patch 3/3, introduces a BOOLEAN flag in the controller private data structure. The flag will indicate internal IO queues creation and it will simplifies the check logic in the NvmExpressPassThru() function. V1 history: The series will address a couple of bugs within the NvmExpressPassThru() function. Please refer to the log messages of each commit for more details. Cc: Liangcheng Tang Cc: Jiewen Yao Cc: Ruiyu Ni Cc: Star Zeng Hao Wu (3): MdeModulePkg/NvmExpressDxe: Refine data buffer & len check in PassThru MdeModulePkg/NvmExpressDxe: Always copy CQ entry to PassThru packet MdeModulePkg/NvmExpressDxe: Refine PassThru IO queue creation behavior MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.h | 7 +- MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressHci.c | 6 ++ MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c | 67 ++++++++++++-------- 3 files changed, 51 insertions(+), 29 deletions(-) -- 2.12.0.windows.1