From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AAOMgpcKB7uMR+JDFNyevBRZOs+cp7xSV5R8Ppd0wVF3cFoiV19IrailgvgOPH0pLjfvebcDbS5k7g== 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 Cc: ard.biesheuvel@linaro.org, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, Ming Huang , Heyi Guo 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: [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: , X-List-Received-Date: Wed, 04 Jul 2018 07:51:29 -0000 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(+) 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 -- 2.17.0