From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by mx.groups.io with SMTP id smtpd.web10.13839.1598362844525671270 for ; Tue, 25 Aug 2020 06:40:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=uX57y+9j; spf=pass (domain: linaro.org, ip: 209.85.216.66, mailfrom: tanmay.jagdale@linaro.org) Received: by mail-pj1-f66.google.com with SMTP id j13so1252117pjd.4 for ; Tue, 25 Aug 2020 06:40:44 -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 :mime-version:content-transfer-encoding; bh=4m2Qf/CI6oH8/LfChxjfKNJm/qMuaq9kdOyNP8n0pdY=; b=uX57y+9j6TlGAAnsZNXU5Dfh70f7jTq9RCagfJ4fk1BYBBl0NIDprtJ1+RF0jHPkVL tJNBSt+PWIiS3EDmu5wvkuK/gdzYp1D1HQwb749t4l4vu5W12Fvjn52QAlPBBBNaGT2A MyDjmT4R4eQ7wbQAUJL5k9IHvFjtYJr3xXL8cLKfUz+upYC4koc6+TIe9epCtC1jLTLD inKxgEHswoL5KvORESroLMUBxtjZGgJSPKMY0nbUuFTYPntvlxbC6Lt93cyVP0KnJCE6 iGy4Vmv8Xdr5hxg6GKojrhsP7S+qb0ZFounSRMt83o6q19wQNWZoPt99If4CKcTQtNbO hVUA== 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:mime-version:content-transfer-encoding; bh=4m2Qf/CI6oH8/LfChxjfKNJm/qMuaq9kdOyNP8n0pdY=; b=bmw13LGBNzCLBTGY+anHixunakvqnBsRzhdMUR6h0d5Royo05jiND4NbKv/LNnL+vg ENorl2cmlsL2oAXFl/f58P2lpk15pql/i9Pimbhll34kAdTeDEPm3zkqBFbXpQmB2WH7 Up15qijJtHypV+uSh+W1wb4EBFQxUywZHZMEeOxCYocom7XmUG4rp26Je+91chDtxHjH LHCuZhPfKDa8T1TG7yhCZOMg0C0gk1rrRlZkWXU24Ln/km4xajRFNVi8za8uQP0Au+lF Zdc3EDNUEVP8nJTMhrViRiZAsisejQMGYme4em1cbXENEd+dqDuDFUNEIoeDUHx84Rk5 tS7A== X-Gm-Message-State: AOAM531deSEV5iA99aAEcI6jwffrioeFUYP1nUSYpm/wMHSI4m8vi66/ UMV+PqA2lqi9Q+zoj1lzxZrKtQ== X-Google-Smtp-Source: ABdhPJzo0I8GJGnqwRmIw05RspYi05aoJ1AMMU7fT93oBW6YBaNYfWH3+7Vp5Qz8qSAUh3GLOoR0UQ== X-Received: by 2002:a17:90a:f48e:: with SMTP id bx14mr1200524pjb.233.1598362844091; Tue, 25 Aug 2020 06:40:44 -0700 (PDT) Return-Path: Received: from bean-canyon.localdomain ([106.51.140.68]) by smtp.googlemail.com with ESMTPSA id z186sm3913768pfb.199.2020.08.25.06.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 06:40:43 -0700 (PDT) From: "Tanmay Jagdale" To: leif@nuviainc.com, graeme@nuviainc.com, devel@edk2.groups.io Cc: shashi.mallela@linaro.org, Tanmay Jagdale Subject: [PATCH v3 edk2-platforms 3/8] SbsaQemu: SbsaQemu.dsc: Move CoreCount and Fdtlib Date: Tue, 25 Aug 2020 19:09:53 +0530 Message-Id: <20200825133958.17372-4-tanmay.jagdale@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200825133958.17372-1-tanmay.jagdale@linaro.org> References: <20200825133958.17372-1-tanmay.jagdale@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - Since the core count is dynamic and controlled by Qemu, move the PcdCoreCount from [PcdsFixedAtBuild] to [PcdsDynamic] section. - Move FdtLib from [LibraryClasses.common.PEIM] to [LibraryClasses.common] section so that driver DXEs can use the device tree APIs. Signed-off-by: Tanmay Jagdale --- Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 4 ++++ Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Silicon/Qemu/SbsaQemu/SbsaQemu.dec b/Silicon/Qemu/SbsaQemu/SbsaQemu.dec index 71ba55a082e2..ed87d15de003 100644 --- a/Silicon/Qemu/SbsaQemu/SbsaQemu.dec +++ b/Silicon/Qemu/SbsaQemu/SbsaQemu.dec @@ -35,3 +35,7 @@ [PcdsFixedAtBuild.common] gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciBase|0|UINT64|0x00000003 gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciSize|0x10000|UINT32|0x00000004 gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x10000000000|UINT64|0x00000005 + +[PcdsDynamic.common] + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdCoreCount|0x1|UINT32|0x00000006 + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdClusterCount|0x1|UINT32|0x00000007 diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc index 4739443cae93..d42b9cd4de49 100644 --- a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc +++ b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc @@ -75,6 +75,7 @@ [LibraryClasses.common] ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf + FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf @@ -217,7 +218,6 @@ [LibraryClasses.common.PEIM] PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf - FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf ArmPlatformLib|Silicon/Qemu/SbsaQemu/Library/SbsaQemuLib/SbsaQemuLib.inf [LibraryClasses.common.DXE_CORE] @@ -376,7 +376,6 @@ [PcdsFixedAtBuild.common] # gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE - gArmPlatformTokenSpaceGuid.PcdCoreCount|1 gArmTokenSpaceGuid.PcdVFPEnabled|1 # System Memory Base -- fixed @@ -477,6 +476,9 @@ [PcdsFixedAtBuild.common] [PcdsDynamicDefault.common] gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3 + # Core and Cluster Count + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdCoreCount|1 + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdClusterCount|1 # System Memory Size -- 128 MB initially, actual size will be fetched from DT # TODO as no DT will be used we should pass this by some other method -- 2.28.0