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::543; helo=mail-pg1-x543.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (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 D2F8B211C5729 for ; Fri, 1 Feb 2019 05:35:29 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id n2so2968192pgm.3 for ; Fri, 01 Feb 2019 05:35:29 -0800 (PST) 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=j6QN9MMyLo6xOh1/E0dtG72hgaDTzy9k3pmqJyuZcyOdXonTQadrgO+O55J8dhgDd2 4xEM9pvH0FvpMGS9Err1t/uTvNu5NY9SRiPEHLQmAPuCd5KBK5pc/1BIsJrnuV9tpey+ tKbRauFE767paf+2gMO29MI7ePgm5/AifooV0= 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=rpFB8PwBlSDcEg3Za6loHUlgP9kxAfh/osNSJ0jxiM+3d9khYoGn0dRA01rAD2xqwX Ci8+L1uN9U4Nq2P3u08ouNz/HCUtF1mTdT7dRIpK38OhW1qObtqN2WeXa1WH5k/cpJCo BPrU/P7H+vR4pyXZxsV0OFMqydamynel0yGJdwJNTHDNIV6atOp2eSUHikKphtikk0Cu pTVujo6Gkx/G0tNB5Z1LRp5cyIsgL9SRQAvbxkf/HFcL9yU/Lbuu/eGGV8iIKq3FQspt XElszbuOnFPwooOICvRPOhHXALL7ltG5WOllClH08q8+P4n8Os95Wz7zFKAHENJJuacG Q70Q== X-Gm-Message-State: AHQUAuaqteviXl8PGjFpsjPIizWwFYxiD2060KF3r/9Ebjp7yplaLjhY D41BDQ7V9fDqI8MKi344fGlFTg== X-Google-Smtp-Source: AHgI3IatgjougxbB92m0wvYuTk6rJpcCoXWeZmT5l8PvnmdpeN2bX0MVsazSr2bP7ibg2aKv4Wfz+A== X-Received: by 2002:a63:bd1a:: with SMTP id a26mr2301740pgf.121.1549028129572; Fri, 01 Feb 2019 05:35:29 -0800 (PST) Received: from localhost.localdomain ([114.119.4.74]) by smtp.gmail.com with ESMTPSA id s21sm11134073pfk.133.2019.02.01.05.35.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Feb 2019 05:35:28 -0800 (PST) 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, xinliang.liu@linaro.org, zhangfeng56@huawei.com, Ming Huang Date: Fri, 1 Feb 2019 21:34:24 +0800 Message-Id: <20190201133436.10500-5-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190201133436.10500-1-ming.huang@linaro.org> References: <20190201133436.10500-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v1 04/16] 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: Fri, 01 Feb 2019 13:35:30 -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