From patchwork Mon Mar 25 15:08:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 161131 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4081896jan; Mon, 25 Mar 2019 08:08:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyztKxHdbeXKV9oq90E+LTa9Ky5acKqiK8WDRK7wbmV/ADm4JsFTmS3Mz+NnNzY3d/23JX2 X-Received: by 2002:a17:902:a9c8:: with SMTP id b8mr25837995plr.12.1553526523592; Mon, 25 Mar 2019 08:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553526523; cv=none; d=google.com; s=arc-20160816; b=gpHW9OpU3d9XbAJHZhvnwfuzwHB8IRxJ/lN+pfBYYa1ijd6Ci9CckV6LzB/UfJtV1G ZNrUUS9D2Ew+7i+avC49nWP9RLGke9D/p97IIeB+ALb1z/Wlkzix2RIDnhLsexWOpkcE kHTHKfSh/5CmsoYuDtT415XZsxW+P8x+nmvjR649+UHdm29KW3ddBP9KGx4pynX4IzsP aYt8Q4TLGCdTL+42TOtbFomnDmnzitR6zQ4ja2Yes7BAdcXw8/3GQK5j+XTnhie0aliI 5lpxMnTNChoZGezyRgxmCozQ86oRG4+9kJlE6cA5pJhqkxZu6d+ZXkXlZM5XshnWvLgr VAtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=Bx9/3ZwoSxRFnqn/c+T/dXkqnx0ZcJK7gel+eTgavCM=; b=pt5w+li/hY6ikYiNzC8xuft3xALBXV9Ryf/NpPttxJZGqLti8IDWHiSx3eKbpXzfh3 WTLqBTqD7dbY4rPvxu/JI6jjmDLBcjgB5E4hOeaKLrmlBGbHX6yPsRUvHIDU3LrKctkv b/RHI+6Ca4f5jLJ4wZtKMBDMH86EomSSEnmzF+OkwXCqNLPVwP9HYZHvECR9bPNeR8zK PemM1Bc69mDHfy16BdlG2D6UW64LKb6hC/pRHSjQB6ZHoV9DA6uCzg5SmbDsJi8bhfek fIkTn0XnpglT6LdZ3Eba0PoccdiZIiTRYyFnGtCjYRKxM41c66dXna6wJ/+yQJWXZL0x zCcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aAXZcVui; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id d125si13966318pfd.206.2019.03.25.08.08.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 08:08:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aAXZcVui; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 35374211EABB3; Mon, 25 Mar 2019 08:08:43 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::52c; helo=mail-pg1-x52c.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 128F6211E742F for ; Mon, 25 Mar 2019 08:08:42 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id r124so6737244pgr.3 for ; Mon, 25 Mar 2019 08:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2vFQhi5788uEsOlim8nWx5X3W6H4x+KhEsqrbLwC2p0=; b=aAXZcVuitqy8I/UpbgkrUhinspjXXIHKeQFg+/LXRc6F2Ru8zqckjXCZS4RvPcB1Ci E19aCXqN8OKPJ5JoIItxbfiOGRH4SGm7jwpi0TU0uCvmiFPlacjERJMNXC7h7UuUX4Ah OAFbAOAjckSaCCfOGpRGIC3x2jv+OdGJz8DRNKF9rJoq+2xwtAteR0LOUJqD1TAbvhFT XxZ4lzwi71TEB20WEukuyD8AzElhlv2cPCmpy8O+eIptj53k2iDzsxvj9tiswCgCyQiy UeK/JJ4spqRGgbJ3MZOFoAk+1iMIuGediLM2y1sywV3mZp8SdM7nfAYlCtj8nhxVeTCj pOXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2vFQhi5788uEsOlim8nWx5X3W6H4x+KhEsqrbLwC2p0=; b=T4sAuhjFX+Uju6OvN1r8gv+bB2zoWWgHsBK2iENCdPS52BywGTZdlUO996AE6Lh3bv xQAqd4C3PDuNMayoPNbeEMHjOt1T68fkeYoPXuiQgBDD68K7pJVcnS+iPRjFS6t3KbEB 9018gfsaZuIa/7bzx55zjtuweRe8ljB2jNI1QsY1Mgftbi0OHsQoqzchD7Bm7sBfqkWa HY4e/fuvTKezT+f8KWcG/NUScPCaa2AhW69hB1IsG4FgKGD7AHKdrGSWYSJzLhTHgi3+ O0KIMOuoyypkq5dCx9v07prl6cN8HnTZB1/gJRE7hT55yRJ/2YTm3Ud0FkcuNgIDIvpc vgbw== X-Gm-Message-State: APjAAAVmWlGOBSAe1kqpNevVzENseGupu1+c/LxrhdgvtaUxSPzm58D/ QkUmR560LvmFswlt2Sc2uPa2XQ== X-Received: by 2002:a62:58c7:: with SMTP id m190mr24474651pfb.4.1553526521640; Mon, 25 Mar 2019 08:08:41 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id j14sm21083283pfe.12.2019.03.25.08.08.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Mar 2019 08:08:41 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Mon, 25 Mar 2019 23:08:27 +0800 Message-Id: <20190325150829.24520-2-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190325150829.24520-1-ming.huang@linaro.org> References: <20190325150829.24520-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v4 1/3] Hisilicon/D06: Add runtime attribution to OemConfig variable 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: , Cc: huangming23@huawei.com, john.garry@huawei.com, xiaojun2@hisilicon.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" BmcWdtEnable is a field of OemConfigData structure, need have runtime service attribution if use it during exit boot service Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfigVfr.vfr | 2 +- Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfigVfr.vfr b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfigVfr.vfr index 470e9ace3dcf..08236704fbfe 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfigVfr.vfr +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfigVfr.vfr @@ -23,7 +23,7 @@ formset help = STRING_TOKEN(STR_OEM_CONFIG), classguid = gEfiIfrFrontPageGuid, // for MdeModule Bds. efivarstore OEM_CONFIG_DATA, - attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, + attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS, name = OemConfig, guid = gOemConfigGuid; diff --git a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c index 012d45bc0214..6668103af027 100644 --- a/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c +++ b/Silicon/Hisilicon/Hi1620/Hi1620OemConfigUiLib/OemConfig.c @@ -316,7 +316,7 @@ OemConfigUiLibConstructor ( Status = gRT->SetVariable ( OEM_CONFIG_NAME, &gOemConfigGuid, - EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS, + EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, sizeof (OEM_CONFIG_DATA), &Configuration );