From patchwork Fri Feb 1 13:34:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 157213 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp437261jaa; Fri, 1 Feb 2019 05:35:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5bPjGOWDZo0Bv2+YjTLBqtuBQwiQjkc6lj54uiASzh2ljSIeyvAYFLnQ5bLRn8H2ITabFS X-Received: by 2002:a17:902:8306:: with SMTP id bd6mr39835235plb.217.1549028131789; Fri, 01 Feb 2019 05:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549028131; cv=none; d=google.com; s=arc-20160816; b=xY4Kel9wL6HtTlD8kyWmxjTcRz+5ZxGUuAOF/ozO1MP/602Njkl90fD/3IZHEC2M1x YiSXH4erafTvqR1hdVc88aPULvBy7gEHMt5r21oBxirylCAaGE8eAqtYBNFSfh5CI0pK da9HhqIPOm7ngSZbexw9E2Njfq7oo2+BlT5ESg0N4xAQ4HKk9RLSL1TbHdnluMGm6DMf 4FbSL/2IfJhG1VGr6LJDM5j/v1vzyvW0A/Ry+c1ibHjBQB4nRK5rMocIGbWCKv4t0mq0 iUwOAGHwDca2FCBZ0DZna6btyom9kpwRB157JBmjKqpCc/eMhf2SR31bBYbcMtJ6w+ps eJLw== 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=dryXfyBOjkLruqacXuGQlKPYyWSCsCZYQurkm+0W1OGsMsQxwvDT/+w9VYa248slAS ym74oRUeV1jbFQ32xo7rNv+nNTpXTZ7qUmFePr6RkT/0Gntg5cKFXEPsdXvAXV+ieB16 G5Z73Hkqszi65kaGk4N/+V/82x8F16KCWhJViRf/wZ/ljP2JtxNAkNJE8UXSYcE/MpKl hZBSoIlfbZosfMO3LbLVaIj+D9MfGqa0C9E22xQ1+Xs8TdKPFFcscvvn9CrO4ZWBN1HV Mi0NiM1Bb6PC5mQRZJ9oLCgXuiXcqpsHX0AP2DFEozg6Zx2ZPmTVo7BXW0+QlnCT+3Ck SJqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=j6QN9MMy; 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 a193si1661358pfa.214.2019.02.01.05.35.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 05:35:31 -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=j6QN9MMy; 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 575AF211C6077; Fri, 1 Feb 2019 05:35:31 -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::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-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 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: [edk2] [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: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.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 );