[edk2-devel] [edk2-platforms][PATCH 17/30] U5SeriesPkg/PeiCoreInfoHob: Remove hart count check

Abner Chang abner.chang at hpe.com
Tue Oct 19 08:09:54 UTC 2021


Remove hart count check because the bootable hart count
may be varied according to the harts declared in Device
tree and PcdBootableHartNumber PCD.

Cc: Sunil V L <sunilvl at ventanamicro.com>
Cc: Daniel Schaefer <daniel.schaefer at hpe.com>

Signed-off-by: Abner Chang <abner.chang at hpe.com>
---
 .../U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c  | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c b/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c
index bc1b252946..c147028add 100644
--- a/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c
+++ b/Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/CoreInfoHob.c
@@ -75,14 +75,7 @@ CreateU5MCCoreplexProcessorSpecificDataHob (
   }
   DEBUG ((DEBUG_INFO, "Support %d U5 application cores on U5 platform\n", HartIdNumber - (UINT32)MCSupport));
 
-  if (HartIdNumber != FixedPcdGet32 (PcdHartCount)) {
-    DEBUG ((DEBUG_ERROR, "Improper core settings...\n"));
-    DEBUG ((DEBUG_ERROR, "    PcdHartCount\n"));
-    DEBUG ((DEBUG_ERROR, "    PcdNumberofU5Cores\n"));
-    DEBUG ((DEBUG_ERROR, "    PcdE5MCSupported\n\n"));
-    ASSERT (FALSE);
-  }
-  return Status;
+  return EFI_SUCCESS;
 }
 
 /**
-- 
2.31.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#82334): https://edk2.groups.io/g/devel/message/82334
Mute This Topic: https://groups.io/mt/86435687/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list