From patchwork Wed Jul 4 07:51:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 141013 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp501607ljj; Wed, 4 Jul 2018 00:51:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeDN+Ls/umW89W9zJA0qWULZEc6SOghhuxapjHlU4epgCt1pcNrpqrBxLhUtJRRT1sLN5FB X-Received: by 2002:a65:57c9:: with SMTP id q9-v6mr958509pgr.128.1530690690049; Wed, 04 Jul 2018 00:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530690690; cv=none; d=google.com; s=arc-20160816; b=H5ajYBBriBqZwDHRIw4ZUFcn8nCrsq6ZLhpFf67+b6LUuyUidY12W71edu071VPt0u X1zGWrQxLXW3viG6kEy00jRVzjnKDDJmly4YGtZV2n93if4mOYcHOudp2vRKvBsfhETV H0TMsRKmopP/xaye/q87t05tv88RRnQEoBrAHWSmZfaymfyE4w5vKC8kJGBD5ToKl9FH 1Cb0s35fJ6Er25CyXfmn3iy/zB+BCPvk5AuC9SOjQ4WC0/2BmuZN9ndyPdar/yXaH1dg S8RLFkH+WPCPtMBSA7IbopR78+HbJ5FiQZqxOk/p81PEDpzzeT1IjA7hQaDMiJ/nR0f5 MoXg== 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:arc-authentication-results; bh=p6g97Yrb3Th97uRaMS7DyXUAyQIlQkH4aAyocpnHyF4=; b=tdNfFUfXdnbhNTGlAPqJaMmSq+vdrsobTcSKOROaf/F9RNLfaSPMoFiJrsSVXdNKyE eR3uHes2cMEP8RIYDh2ShASiKtGySJojlWFVZE0W5EQklR8K4h4KGET/S9iFLCP9iF/I cM9KvY/VUifF+yEfe58Ed8/zYrqcei04VYl0W+SeQCzWOoNUvTfKZO92Fx7H15WrCvA0 YjxrDfiI9lciPYwTGIoU1lNOxvRiDfQY+rlaLy+j2VSWqK4HsUygwZ7MAv4zQev8OVKA 3AL0dxv86KYj/2YGGWohPsoX/IAxd3nQYQsb4AL7wZe8Yffg9P8x8RsxXW+6H6FTyd4s eEEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hZB1uZWY; 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 13-v6si3056835ple.274.2018.07.04.00.51.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 00:51:30 -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=hZB1uZWY; 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 AA0D6210C125E; Wed, 4 Jul 2018 00:51:29 -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:400e:c00::242; helo=mail-pf0-x242.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (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 20D8A210C0F74 for ; Wed, 4 Jul 2018 00:51:29 -0700 (PDT) Received: by mail-pf0-x242.google.com with SMTP id v9-v6so2269985pff.9 for ; Wed, 04 Jul 2018 00:51:29 -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=2GIue/aybt5tZzjD+BhxHrMBA1bf79ztpczv1tK7EQA=; b=hZB1uZWY2RxkUlvkXmkFz/wuD77L/jx2Tzsw1wKnwn76suQGu7SYfrsJxurs4K1AVg 6fPf61V8CHYfxGhPe7/aKzQSvEeSdYJsm5NDlw77rpcHHh/zG9ncn6AIgqp3SdoRPqQ5 gWG3CzItt41MUmvN1emJgBYKdsALhmRPmmKUI= 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=2GIue/aybt5tZzjD+BhxHrMBA1bf79ztpczv1tK7EQA=; b=SZvQGnoWMBsKal3h7RdVYnWUbbMsDWF+ROyaLgAX/OforeEU3Rp9LZQSAGbDBIKo4Q wNUrKC6+dGMYufP8x8d07MUi3HkYKnHIZ34Ts4QQPhtC7fg2rmrDasfJ3sL0E7TEKDxE 1FuA6tGqBQqD7u/g5Iwpwh30ukn0qfU/n/iiZSci/0YHt/melBEhzrJhJRSSJEo34UyW g2gfjGwb3tIx0Sio83t0NfFisRkCI2h2LwoOUwd8UHPeCIEkwefwsR9ys+H21f9Ay44H s6ivGBturrSIEYa+P4T7CUzxgZyRMa/XC5hmDMyoNx4UMQsBUWxp7xWG8vZv9MTanmaK 2FbQ== X-Gm-Message-State: APt69E1rKhFAgpbKt7PiAefzmwOv2SPoHfTIYMOYIIO0znYegMKWuq8g 1uVM6zf9LbrKXX62m0s5nMCG1g== X-Received: by 2002:a65:4b0f:: with SMTP id r15-v6mr928232pgq.103.1530690688881; Wed, 04 Jul 2018 00:51:28 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id d9-v6sm4803219pge.68.2018.07.04.00.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jul 2018 00:51:28 -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, 4 Jul 2018 15:51:12 +0800 Message-Id: <20180704075117.7427-2-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180704075117.7427-1-ming.huang@linaro.org> References: <20180704075117.7427-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 1/6] Hisilicon/D0x: Fix invoke SetMemorySpaceAttributes error bug X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 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, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, guoheyi@huawei.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The edk2 commit bacfd6e let CpuDxe running latter. CpuDxe is needed by gDS->SetMemorySpaceAttributes, and gDS->SetMemorySpaceAttributes is invoked by some drivers. This issue can solve by adding Depex on gEfiCpuArchProtocolGuid to RealTimeClockLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- Platform/Hisilicon/D03/D03.fdf | 4 ++++ Platform/Hisilicon/D03/Library/DS3231RealTimeClockLib/DS3231RealTimeClockLib.inf | 2 ++ 2 files changed, 6 insertions(+) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D03/D03.fdf b/Platform/Hisilicon/D03/D03.fdf index 1383aa1091..73e2b7e958 100644 --- a/Platform/Hisilicon/D03/D03.fdf +++ b/Platform/Hisilicon/D03/D03.fdf @@ -146,6 +146,10 @@ READ_STATUS = TRUE READ_LOCK_CAP = TRUE READ_LOCK_STATUS = TRUE + APRIORI DXE { + INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf + } + INF MdeModulePkg/Core/Dxe/DxeMain.inf INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf diff --git a/Platform/Hisilicon/D03/Library/DS3231RealTimeClockLib/DS3231RealTimeClockLib.inf b/Platform/Hisilicon/D03/Library/DS3231RealTimeClockLib/DS3231RealTimeClockLib.inf index 319c35c724..ae7116dc31 100644 --- a/Platform/Hisilicon/D03/Library/DS3231RealTimeClockLib/DS3231RealTimeClockLib.inf +++ b/Platform/Hisilicon/D03/Library/DS3231RealTimeClockLib/DS3231RealTimeClockLib.inf @@ -46,3 +46,5 @@ [Pcd] +[Depex] + gEfiCpuArchProtocolGuid