From patchwork Wed Feb 20 07:28:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 158777 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4602090jaa; Tue, 19 Feb 2019 23:28:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IZRzKM4gGDlJrPiOPc95F2qxjE52kE6Qvrejxo5ICM1RaF3XFlzyo6D0/+4FL/B9xl7AMfl X-Received: by 2002:a17:902:6b47:: with SMTP id g7mr2212622plt.100.1550647736333; Tue, 19 Feb 2019 23:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550647736; cv=none; d=google.com; s=arc-20160816; b=cblh8NXDhXQAY+kaBp2vy8G7HOPM0ul/gA0/l7wBc1vlI+cIYgyyI99Ho9FHmgBuyN LqG44up/PnJkpunPsWCGktlKfkRBFBCXTDcUMhnUcpzaM5RItl//6+qcvwzW6E5NdkVo Au8PWq9l6Z9TQH3NZWbtVrHJaog85Xa8LgXHZ6TkCAuleeKA+xUlw9U07r7EdqTV5IcZ TK90m8+Qr9jFJUqxc+1XeRV2BQ8aYSL2NboTdO+PM/zz8OPcRXVhPw35U4gLNLZ6vMUn yg0mVt8C7T0MdGKpXTeR16CZ6XKg5ejtdEL2G+uqfC3Hdg4F2oQXuVRjrIWPk7xq1Vh7 3kRw== 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=kXK4dq/s5CWX01sq4C5Q0jsLxWDNSgZJLcQcIZJhoFw=; b=uBdy4teJ8W0wsPCDe7jc0tW1WoeDwBsAWmgKJAKGMk6qj4KwEqRqcxSDzbFpn9blHO I6OJysTl06ee3YfKxtC0OQdylwiL3XWKt3SW9aBbg9ExyZgCteW3diI5+B2nY4PVj5Y8 ck47XgzhgGB2yEud4vuiWfOj97O/twzMzR1BS3DNZPRKz8SbqYMFJnmsJyjzNSnOeBX9 PFAsFyoWv2m17C2mdWZGv9k0z/drfTVwEjSrGkBYoLFA5lM5fqvU290o046DQ74iqqt2 hySIC0ejmctbWcau3VFr92hDA9G/r28zbLEqgCR9J11nKmUjBEA+pjhl028jIhKzbLGl KIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rCIDAOAD; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id y27si17644880pgk.490.2019.02.19.23.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 23:28:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rCIDAOAD; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 EE3C3211CACA7; Tue, 19 Feb 2019 23:28:55 -0800 (PST) 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::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 B11CE2194EB7D for ; Tue, 19 Feb 2019 23:28:54 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id i20so1058528pfo.6 for ; Tue, 19 Feb 2019 23:28:54 -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=rCIDAOADQoAuSjTmlr49oItW5OAO5oFB5vnlZ+ohzY7pVMlkHZ1lqmjwUgJmxUbtD1 B/UBX9cn0zmaHVMSZV3bPGGPoxyd5S1amFLgGJqNjRb8xjEBfEDjQ6ze5W3vmxofDB6R FhZrqjdOUGGcN0NpMfmmPOLQUxHaB1d+fnIVSil8uOGO/zbvqzoTNcTzhb4p/N8glEg7 KWbCJUUxTZ/qmI8WZ43BJs2YZOSZBusjpYZtHLrDHRx5TF9G3IpI2a9Lamv/CzHB7seW bBx58GyAou7I4W+lbOe4qeQdNSvmljU1ZrTDJKVMvqTIbIoqmJqG/rwOYYJYtsjBbCgl MzEw== 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=bhhhsRrUb2ti9Vt0oGXYpFQNEXKCCGxuKqAahiFPCG72gGATLvl4Hs99UGZrrjhS0m cVzvYcmk7rzWZrBP5Zie+WJtilFZOM4z2fVSWwrBoaN1HOn1cPkaw64w8DX51FMKVOH4 n1jDSeW32SzBfm89TU2HszwvA+mxfqWebxVcUnQP8iUx8Zx5jUBozPzDsgD7YAeELqNM ej3G+f1jBsYeAPYbUKqhJUy4lc3T16ZksARL8lIvxp0C0ZV7bQgEeyfs/HKwEUZ2eBkt pAnxK90X1kD6qwkAJoQWLiAmH4ERT2kXmlol8dHe6tdBXbUo7xnQ+NWWbdikFsLHiCTD 5TYg== X-Gm-Message-State: AHQUAuY8MG4y2wooG9R6U3HmfVnSnXtP8DE96GpguvNAHs2PgrOtLJuu MKjGz9Mn9Buwp8fX7zV5BMiqwbJIFIU= X-Received: by 2002:a62:4389:: with SMTP id l9mr34853713pfi.170.1550647734404; Tue, 19 Feb 2019 23:28:54 -0800 (PST) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id 23sm19152969pft.187.2019.02.19.23.28.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Feb 2019 23:28:53 -0800 (PST) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 20 Feb 2019 15:28:22 +0800 Message-Id: <20190220072837.35058-4-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190220072837.35058-1-ming.huang@linaro.org> References: <20190220072837.35058-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 03/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: , 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" 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(-) -- 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 );