From nobody Tue Apr 30 22:12:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53691+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53691+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 15807838572986.49236429247253; Mon, 3 Feb 2020 18:37:37 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id fcvWYY1788612xcrZ5AkUyI6; Mon, 03 Feb 2020 18:37:36 -0800 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.978.1580783855835359223 for ; Mon, 03 Feb 2020 18:37:36 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Feb 2020 18:37:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,398,1574150400"; d="scan'208";a="429650142" X-Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga005.fm.intel.com with ESMTP; 03 Feb 2020 18:37:33 -0800 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: Hao A Wu , Liming Gao Subject: [edk2-devel] [Patch] MdeModulePkg/Capsule: Remove RT restriction in UpdateCapsule service. Date: Tue, 4 Feb 2020 10:37:28 +0800 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,siyuan.fu@intel.com X-Gm-Message-State: 462dXhmXmhJjPvOpn1sq6VzVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1580783856; bh=NjQxa0Mmy9XaCelCPVfinJ18bxLi4y4XUvUjourMemc=; h=Cc:Date:From:Reply-To:Subject:To; b=mTO5u51WmqZCHnKjwr/SY6LWHocadYF+02O1bYyzxXNODcTr9jkS+JYOKex5DiUw61n eb6YWy5jQ2Bb0eeilR4MYU3U7BffJk0ZnVcp8eupckjrHafBUeaS6T1ahvxZkQ9Qcz8ZN Rt9w2BXbRHnIY+xQ3TTnvGcWXrVOPd59cYQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Current UpdateCapsule service will reject all non-reset capsule images and return EFI_OUT_OF_RESOURCE if the system is at runtime. This will block a platform CapsuleLib from implementing ProcessCapsuleImage() with runtime capsule processing capability. This patch removes this restriction. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2501 Cc: Hao A Wu Cc: Liming Gao Signed-off-by: Siyuan Fu --- MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c b/Md= eModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c index 77b8f00062..99a52f053d 100644 --- a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c +++ b/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c @@ -4,7 +4,7 @@ It installs the Capsule Architectural Protocol defined in PI1.0a to sign= ify the capsule runtime services are ready. =20 -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -138,11 +138,7 @@ UpdateCapsule ( // Platform specific update for the non-reset capsule image. // if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) =3D=3D= 0) { - if (EfiAtRuntime ()) { - Status =3D EFI_OUT_OF_RESOURCES; - } else { - Status =3D ProcessCapsuleImage(CapsuleHeader); - } + Status =3D ProcessCapsuleImage(CapsuleHeader); if (EFI_ERROR(Status)) { return Status; } --=20 2.19.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#53691): https://edk2.groups.io/g/devel/message/53691 Mute This Topic: https://groups.io/mt/70964254/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-