From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=michael.d.kinney@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 E3A1920965DE2 for ; Thu, 24 May 2018 23:23:12 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 23:23:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,439,1520924400"; d="scan'208";a="231696086" Received: from mjain-mobl.amr.corp.intel.com (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.252.141.109]) by fmsmga006.fm.intel.com with ESMTP; 24 May 2018 23:23:12 -0700 From: Michael D Kinney To: edk2-devel@lists.01.org Cc: Sean Brogan , Star Zeng , Eric Dong , Jiewen Yao , David Wei , Mang Guo , Kelly Steele Date: Thu, 24 May 2018 23:23:04 -0700 Message-Id: <20180525062308.5436-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.14.2.windows.3 Subject: [Patch v3 0/4] Add DisplayUpdateProgressLib to platforms X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2018 06:23:13 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=801 Based on content from: https://github.com/Microsoft/MS_UEFI/blob/share/MsCapsuleSupport/MsCapsuleUpdatePkg/Include/Library/DisplayUpdateProgressLib.h https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg/Library/DisplayUpdateProgressGraphicsLib https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg/Library/DisplayUpdateProgressTextLib Updates for V3 ============== * Add Version field to EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL * Break up patch series into 4 smaller patch series to handle dependencies between the edk2 repository and the edk2-platforms repository. + Patch series for edk2 repo that adds DisplayUpdateProgressLib class and instances. Defines the EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL. Adds PerformFlashWriteWithProgress() API to the PlatformFlashAccessLib. + Patch series for platforms in edk2-platforms that use capsules to add the DisplayUpdateProgressLib mapping to the DSC files and add the PerformFlashWriteWithProgress() API implementation to the PlatformFlashAccessLib implementations. + Patch series for platforms in edk2 that use capsules to add the DisplayUpdateProgressLib mapping to the DSC files and add the PerformFlashWriteWithProgress() API implementation to the PlatformFlashAccessLib implementations. + Patch for edk2 that adds the use of the DisplayUpateProgressLib and the PerformFlashWriteWithProgress() API . Updates for V2 ============== * Change DisplayUpdateProgressGraphicsLib to DisplayUpdateProgressLibGraphics * Change DisplayUpdateProgressTextLib to DisplayUpdateProgressLibText * Clarify that color in Firmware Management Progress Protocol is the foreground color * Add missing parameters to PerformFlashWriteWithProgress() function header. * Update PerformFlashWriteWithProgress() function header describing the use of the start and end percentage values. * Update QuarkPlatformPkg PerformFlashWriteWithProgress() to call Progress() for the end precentage. * Update Vlv2Tbl2DevicePkg PerformFlashWriteWithProgress() to call Progress() for the end precentage. Add DisplayUpdateProgressLib class along implementations for both graphical (Graphics Output Protocol based) and text (Simple Text Output Protocol based) consoles. Also add the EDK II Firmware Management Progress Protocol that is an optional protocol that provides the progress bar color and a watchdog timeout value thaty can be used when a firmware image is updated in a firmware device. * Add progress support to DxeCapsuleLibFmp * Add progress support to SystemFirmwareUpdateDxe * Add progress support to PlatformFlashAccessLib class and instances. * Reduce Print() calls during a firmware update. Cc: Sean Brogan Cc: Star Zeng Cc: Eric Dong Cc: Jiewen Yao Cc: David Wei Cc: Mang Guo Cc: Kelly Steele Signed-off-by: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Kinney, Michael D (1): QuarkPlatformPkg: Add DisplayUpdateProgressLib mapping Michael D Kinney (3): Vlv2Tbl2DevicePkg: Add DisplayUpdateProgressLib mapping Vlv2TbltDevicePkg/PlatformFlashAccessLib: Add progress API QuarkPlatformPkg/PlatformFlashAccessLib: Add progress API .../PlatformFlashAccessLibDxe.c | 78 ++++++++++++++-- QuarkPlatformPkg/Quark.dsc | 1 + .../PlatformFlashAccessLib.c | 102 +++++++++++++++------ .../PlatformFlashAccessLib.inf | 3 +- Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc | 1 + Vlv2TbltDevicePkg/PlatformPkgIA32.dsc | 1 + Vlv2TbltDevicePkg/PlatformPkgX64.dsc | 1 + 7 files changed, 151 insertions(+), 36 deletions(-) -- 2.14.2.windows.3