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:c01::244; helo=mail-pl0-x244.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x244.google.com (mail-pl0-x244.google.com [IPv6:2607:f8b0:400e:c01::244]) (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 719EE202E53E5 for ; Wed, 27 Jun 2018 00:04:53 -0700 (PDT) Received: by mail-pl0-x244.google.com with SMTP id bi1-v6so601299plb.12 for ; Wed, 27 Jun 2018 00:04:53 -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=Mlfumr3jZt2RttbjoqWZt9kscP8aJlugqY5OjZJpCL8=; b=NeZLDrfeSbi9KsaUejF7L4yU9V0r1OOCuGHcFRcwywgKZZoxnGThH62dYC8cSMTZZr /NCCfVg8k7Xy2lUYiQ2kQ5KAS5X1ZljkC2Ep3GuIR2aOZuOoZ2lTxgRofTwjsxZGHeBd ZlIeO106D/UYGaDNY+oTCY9LxEGliZ9J5hzZk= 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=Mlfumr3jZt2RttbjoqWZt9kscP8aJlugqY5OjZJpCL8=; b=cnPSpNtiFkMZjeiUWmOBxMYLYCo/E7eDgn+On3i5uFuCzSy5a4Gu8qNfSYbRu5IxWz musFIFLUeL9ive712UWne7gRnOKwb+rce6fgDKd2TdxvqYJ7/ajFgWfMNJpae7Ql0GcA RjAIr5q3k4zYjVTiKCLH2dbSguqWQcck4thfU6NeJpI0fvW3JRWOXY9j6gHuIiDc0JK3 M0/jnGrIoEe4ZLPfa20zXlUh7YlOPvUVpIdm8Uvg05vVudgE7Hp365Oz7V5PbaUBNbKn 9Nf0KI9Tr7LfAHgJQMs/LR9mcmkRJaRb5ijLc07GMgd3Sornj+F4L50KbB2tpjyWX6d7 zcMg== X-Gm-Message-State: APt69E2gICRuX6FetSYHOTDoun0ss/cdeL4WD+tVTt578JlBIA76dljC q+B0wX7y/53FWqm+Gyyc6LKkVwMbDms= X-Google-Smtp-Source: ADUXVKIVIPUSI9FMhNVeeMf7g8EIeF8sJJXRSrGEi94U9m6hqiLvp1w+dKK7yy6SZ2AsWz9PFV8JqQ== X-Received: by 2002:a17:902:5942:: with SMTP id e2-v6mr4986650plj.64.1530083093191; Wed, 27 Jun 2018 00:04:53 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id q6-v6sm4128833pgc.21.2018.06.27.00.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 00:04:52 -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, 27 Jun 2018 15:04:38 +0800 Message-Id: <20180627070443.42886-2-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180627070443.42886-1-ming.huang@linaro.org> References: <20180627070443.42886-1-ming.huang@linaro.org> Subject: [PATCH edk2-platforms v1 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, 27 Jun 2018 07:04:53 -0000 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. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- 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