From patchwork Wed Mar 20 08:08:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 160637 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp518664jad; Wed, 20 Mar 2019 01:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPGzxP2pms0kjpkYd4bOvzUuJRFXhlQOscBpuMaVU3Bj3gTRGB/yCZmGMHsBOPmxMEdiw6 X-Received: by 2002:a17:902:f095:: with SMTP id go21mr29344553plb.199.1553069350963; Wed, 20 Mar 2019 01:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553069350; cv=none; d=google.com; s=arc-20160816; b=G0vTaC1gRQI0ZzEsl20kQ8F42jzC5icDXzLjz0aLUMM/wlG8QKzqpj6Jwl2SZ6O2qz Un6+Pr8WFGgL7U2QTGPBXy9dll+YOLFkZ1WqFLFNJFW+9l5vCzfffShdt1h2D28D2U89 3cIWaDi/LhnAacYSg1YX9CYUDVr3kGtmuODVxq1kIPgi4FPJjly4kcK32kMbcgGTc6dl btToeOF5ZDRVrTn5/QhhqIj2VSWd2OSsv1sNx++pm70txIu70jzUTKfmdVFCZb7l+W5f lmQAlnWr6aV0gGkBaz07M5y2YErT5ItgeqSt7ucuttdwi81OCnrDDlIvL6hhaLK+2MLX DMvg== 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=nqdT44VKaJXSatjeZXfQNewg1EL2IzCnTKsgaPoH5a2JhWqMvvZXCZ1QG7ctQkls2e h9R0oKp9CBiKbPi8nQL+sUJtNad0xtex+gdnl+s8hVD96KL/lX2BaogbFMcxt+e71tnj HyFsXEcdMR53QNnFHl3ogpsagVttOmH0iIrkCz4kAClAI4DKzsvFY2HL+FF9Qi+c6LN1 8bSGwOP1Fa3xbZmBLnmRZDnaSNWHu+PO+HMuFLjmOGZVb2DEHIz3l2y15jyxbE2eyejP miiwSubITHmDRIyXMqbhXsogQ89LSIf8nIAYFyqXVQFSSQzmxANFHoElnG0rYHXDidV4 9/4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=j5NYbA5l; 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 36si1119138pgx.547.2019.03.20.01.09.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 01:09:10 -0700 (PDT) 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=j5NYbA5l; 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 8FE36211E011E; Wed, 20 Mar 2019 01:09:10 -0700 (PDT) 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 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-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 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: [edk2] [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: , 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 Reviewed-by: Leif Lindholm 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 );