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::443; helo=mail-pf1-x443.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (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 EE961211E0105 for ; Wed, 20 Mar 2019 01:09:09 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d25so1338678pfn.8 for ; Wed, 20 Mar 2019 01:09:09 -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=gBXux4YRyeug1FQsy49UL8fkYFxf65Ylb9nEP5bVTtg=; b=j5NYbA5lMW5cYyT3LQp8vx25zUqSW5dTDxhxMUJ0KcGvwQ+6lPUnBzhkpQMOOhJt/q WqWxznEsqojqkK+Nqg4lmOJl9y7F42Jao7tg2+EYjL2+E4UhCJjlIpYleQtYlcVyS1+j LUgyBpLQKbg1fSApZHOBshM8b3P9Mm3xhG0/7LJ58gRiKw7NFqM6ZP4kaH+urLtI0UUV ns102b7g1nf9Q6MJMvAHBc73CmPH6ohlmwYTOXiWghm6ISQTb9Fw7W1xKW+QlMcfRz71 mFLwOZqNQ7/0UDceLrYZ2MXlSmFOq6Ax0J9rzfqkuw82P94hleoxLacCrH1x/Gjhchah rP4w== 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=gBXux4YRyeug1FQsy49UL8fkYFxf65Ylb9nEP5bVTtg=; b=pMHgyaLcDGBNr7KLtkYQlUv4LmNEkwcrq6zWImbEjYSjmHGw9ZzvEab25w2LCA3K10 Jgot0CEH8syWUgfJAPNh2LKcs+WktpIz9OgMfBWOLPZGjC6t0FcN0fx4ohPJGNiP5jVm hQnAMbhXA775+1XEw4UxbsJm/oknt3py3mCDiNbm/0GdPt4q+mgTrcdj9h2XVY4W9ct0 ZfMxR7NCFzlYVbtxOIf27UMnaN8sBxlVz3J0STCZo46rrP7mIlVK1PSKTbO5pjXrRg8v V1AziQ0nohjc9NTKVNFQzOctRwEbFpksfdSHevRXqTfTD8Pn2sqWjg77P+ceF6MalXyn CDRQ== X-Gm-Message-State: APjAAAXbXQqxNkNwOjljYp57FpIh2WSvDh+cNO3fJ6ikHZOpVQNd7IYI UFb94m0Vi5EoQpOiDwDy2K31SQ== X-Google-Smtp-Source: APXvYqwvml/9XwjvPqB6kVShl47LkOY4ykdovq94/+I5v+fyMHBcxzzmT5Y0VkmzQp7wcY7ffTYB+Q== X-Received: by 2002:a62:a50c:: with SMTP id v12mr6959736pfm.206.1553069349654; Wed, 20 Mar 2019 01:09:09 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id f9sm1602796pfd.10.2019.03.20.01.09.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 01:09:08 -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: Wed, 20 Mar 2019 16:08:16 +0800 Message-Id: <20190320080829.52003-6-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190320080829.52003-1-ming.huang@linaro.org> References: <20190320080829.52003-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v3 05/18] Hisilicon/D06: Fix access variable fail issue 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: Wed, 20 Mar 2019 08:09:10 -0000 From: Jason Zhang 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