From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: APXvYqx6Hhql+KB9sdWQUb8hD4JyBuvfPY7WeYCpN4y2gR9bqshipoMiFoRpRDj8vvg6f4xPjEHGvg== 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 Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, zhangfeng56@huawei.com, xiaojun2@hisilicon.com, Ming Huang 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: [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: , X-List-Received-Date: Mon, 25 Mar 2019 15:08:42 -0000 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(-) 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 ); -- 2.9.5