From: Ming <ming.huang@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>,
linaro-uefi <linaro-uefi@lists.linaro.org>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
Graeme Gregory <graeme.gregory@linaro.org>,
guoheyi@huawei.com, wanghuiqiang <wanghuiqiang@huawei.com>,
huangming <huangming23@huawei.com>,
Jason Zhang <zhangjinsong2@huawei.com>,
huangdaode@hisilicon.com, John Garry <john.garry@huawei.com>,
Heyi Guo <heyi.guo@linaro.org>
Subject: Re: [PATCH edk2-platforms v1 1/6] Hisilicon/D0x: Fix invoke SetMemorySpaceAttributes error bug
Date: Tue, 3 Jul 2018 17:53:52 +0800 [thread overview]
Message-ID: <8600c362-c35f-e955-1ea5-8e145e4e96dc@linaro.org> (raw)
In-Reply-To: <CAKv+Gu-buKpJNLvU2i0QBV_i42Je=i3cxjkjqB8oEckk-AtJaw@mail.gmail.com>
在 27/06/2018 15:20, Ard Biesheuvel 写道:
> On 27 June 2018 at 09:04, Ming Huang <ming.huang@linaro.org> wrote:
>> The edk2 commit bacfd6e let CpuDxe running latter. CpuDxe should run early.
>> CpuDxe is needed by gDS->SetMemorySpaceAttributes, and
>> gDS->SetMemorySpaceAttributes is invoked by several drivers.
>>
>> Add several drives to APRIORI scope for implementing the ordering.
>>
>
> Please solve this by adding DEPEXes on gEfiCpuArchProtocolGuid to the
> drivers in question.
>
If solve this by adding depexes, there are many drivers which should add
depexes.
CpuDxe depend on ArmGicDxe
SfcDxeDriver and RealTimeClockRuntimeDxe depend on CpuDxe
VariableRuntimeDxe depend on SfcDxeDriver
and many other drivers depend on VariableRuntimeDxe
Should I add depexes to these drivers? Especially,RealTimeClockRuntimeDxe
is in edk2/EmbeddedPkg. Why does other platforms do not have this problem?
Thanks.
>> Contributed-under: TianoCore Contribution Agreement 1.1
>> Signed-off-by: Ming Huang <ming.huang@linaro.org>
>> Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
>> ---
>> Platform/Hisilicon/D03/D03.fdf | 10 +++++++++-
>> Platform/Hisilicon/D05/D05.fdf | 6 +++++-
>> 2 files changed, 14 insertions(+), 2 deletions(-)
>>
>> diff --git a/Platform/Hisilicon/D03/D03.fdf b/Platform/Hisilicon/D03/D03.fdf
>> index 1383aa1091..027b53a6cf 100644
>> --- a/Platform/Hisilicon/D03/D03.fdf
>> +++ b/Platform/Hisilicon/D03/D03.fdf
>> @@ -146,6 +146,14 @@ READ_STATUS = TRUE
>> READ_LOCK_CAP = TRUE
>> READ_LOCK_STATUS = TRUE
>>
>> + APRIORI DXE {
>> + INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
>> + INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> + INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
>> + INF Platform/Hisilicon/D05/Drivers/SFC/SfcDxeDriver.inf
>> + INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
>> + }
>> +
>> INF MdeModulePkg/Core/Dxe/DxeMain.inf
>> INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
>>
>> @@ -153,6 +161,7 @@ READ_LOCK_STATUS = TRUE
>> #
>> # PI DXE Drivers producing Architectural Protocols (EFI Services)
>> #
>> + INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
>> INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
>>
>> @@ -186,7 +195,6 @@ READ_LOCK_STATUS = TRUE
>>
>> # Simple TextIn/TextOut for UEFI Terminal
>>
>> - INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
>>
>> INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
>> diff --git a/Platform/Hisilicon/D05/D05.fdf b/Platform/Hisilicon/D05/D05.fdf
>> index 4503776d63..37d9cc0c18 100644
>> --- a/Platform/Hisilicon/D05/D05.fdf
>> +++ b/Platform/Hisilicon/D05/D05.fdf
>> @@ -148,6 +148,10 @@ READ_LOCK_STATUS = TRUE
>>
>> APRIORI DXE {
>> INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
>> + INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> + INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
>> + INF Platform/Hisilicon/D05/Drivers/SFC/SfcDxeDriver.inf
>> + INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
>> }
>>
>> INF MdeModulePkg/Core/Dxe/DxeMain.inf
>> @@ -157,6 +161,7 @@ READ_LOCK_STATUS = TRUE
>> #
>> # PI DXE Drivers producing Architectural Protocols (EFI Services)
>> #
>> + INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
>> INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
>>
>> @@ -190,7 +195,6 @@ READ_LOCK_STATUS = TRUE
>>
>> # Simple TextIn/TextOut for UEFI Terminal
>>
>> - INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
>> INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
>>
>> INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
>> --
>> 2.17.0
>>
next prev parent reply other threads:[~2018-07-03 9:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 7:04 [PATCH edk2-platforms v1 0/6] Improve D0x platforms and bug fix Ming Huang
2018-06-27 7:04 ` [PATCH edk2-platforms v1 1/6] Hisilicon/D0x: Fix invoke SetMemorySpaceAttributes error bug Ming Huang
2018-06-27 7:20 ` Ard Biesheuvel
2018-07-03 9:53 ` Ming [this message]
2018-07-04 6:46 ` Ming
2018-06-27 7:04 ` [PATCH edk2-platforms v1 2/6] Hisilicon/D03/D05: Correct ATU Cfg0/Cfg1 base address Ming Huang
2018-06-27 7:26 ` Ard Biesheuvel
2018-06-27 7:04 ` [PATCH edk2-platforms v1 3/6] Hisilicon/D0x: Fix SetAtuConfig1RW bug Ming Huang
2018-06-27 7:04 ` [PATCH edk2-platforms v1 4/6] Hisilicon/D05: Add PlatformMiscDxe driver Ming Huang
2018-06-27 7:33 ` Ard Biesheuvel
[not found] ` <d4c99a0d-c906-807d-13d2-78adbba4a042@linaro.org>
2018-06-28 10:54 ` Ard Biesheuvel
2018-06-29 7:26 ` Ming
2018-06-27 7:04 ` [PATCH edk2-platforms v1 5/6] Hisilicon/D05/Pcie: optimize two pcie ports space Ming Huang
2018-06-27 7:35 ` Ard Biesheuvel
2018-06-27 7:04 ` [PATCH edk2-platforms v1 6/6] Hisilicon/D0x: Correct smbios product name Ming Huang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8600c362-c35f-e955-1ea5-8e145e4e96dc@linaro.org \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox