From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 E3698818F2 for ; Tue, 27 Dec 2016 22:53:22 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 27 Dec 2016 22:53:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,421,1477983600"; d="scan'208";a="1076919610" Received: from jyao1-mobl.ccr.corp.intel.com ([10.239.193.119]) by orsmga001.jf.intel.com with ESMTP; 27 Dec 2016 22:53:21 -0800 From: Jiewen Yao To: edk2-devel@lists.01.org Cc: Jeff Fan , Star Zeng Date: Wed, 28 Dec 2016 14:53:14 +0800 Message-Id: <1482907996-12564-1-git-send-email-jiewen.yao@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 Subject: [PATCH V2 0/2] MicrocodeUpdate enhancement X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 06:53:23 -0000 This series patches enhance MicrocodeUpdateDxe driver. 1) It cleanes up the flash write logic, move the Microcode region organization to a standalone function - UpdateMicrocodeFlashRegion(). 2) It fixes a corner case that BSP/AP are using different Microcode. The original logic only tries to apply Microcode to BSP. The new logic will try to apply Microcode to all processors. Cc: Jeff Fan Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Jiewen Yao (2): UefiCpuPkg/MicrocodeUpdate: enhance flash write logic UefiCpuPkg/MicrocodeUpdate: Add MP support. UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeFmp.c | 225 +++++- UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.c | 789 ++++++++++++-------- UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.h | 153 +++- UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdateDxe.inf | 4 +- 4 files changed, 831 insertions(+), 340 deletions(-) -- 2.7.4.windows.1