From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mx.groups.io with SMTP id smtpd.web11.8797.1598340234254682435 for ; Tue, 25 Aug 2020 00:23:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=ETN/5Ftz; spf=pass (domain: linaro.org, ip: 209.85.215.193, mailfrom: tanmay.jagdale@linaro.org) Received: by mail-pg1-f193.google.com with SMTP id g1so2408960pgm.9 for ; Tue, 25 Aug 2020 00:23:54 -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=ETN/5FtzNp3iDDfOG9igex883bHs3VFIFRGLjXd2CPpqwZRXGRdDti/vs2bXGlMw+A tOlwYKgMuHMdxRmOkeduflr4UUORwrE53HFNYP+ywrdv8ztO979p8BlADJ91AR9I0ulq DYEeDEl/J0yE3AXVIV6j+EAqSZ/ASDajPkpOqYNvdHCIl24vESl3Tl8w3BA2VwDpoZQQ 9gIqCffos1YJAxc8VHV5iVpz8SlblffCon6DmnWiNNiyJiN88nZ1wDqovXtjRNAPwnrq d8iGfyMF/7DLvoNxX3EwurfEe726wXFroTxJfx8k6qhAojOzB77RzMJkFJKRNe6wLVAC xRGA== 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=GOehe4q8zEvHlpCZv3TGK2m0zwmTZjfpOBjihi/mGWItxEEuAuudlMiZD8z1qrJX4D M2hu4aOkqT4D1SB2Wk9aOPz7tsRnVGZxx450jBUNXExAeYcufG6bXe9JU5Zv0akkfY+D 5aGVzIEU/lVC8dh34OLdPQaYC5FAacArqgpP/xEy2vi+9glCYAuvSXtgh/gt1x+1eFgf iqKyJL8av17AASLhDDfRaBUvyy1rJvMyQxXmxJZPrMIDmOtW8WstOZ8zSxQtpuie9Nyv t8tW25czPCTRb79KlgGHBqZMy7UOfwVpRtZEcR8mvhsBKkmdtMtsIgtknDgaz5v8t5/B AT/w== X-Gm-Message-State: AOAM530HAawP0kWqdMJJuxi/3yp3FyTNIRyMEL4i6haAl9Fwd8kuAWKs U25gdbK6QQm6hXzUQzNdVnGI3w== X-Google-Smtp-Source: ABdhPJxS7hKqaQcYEClb3g/0+/vsx3koUpzYAkrlwDoVe+NCgLAIiLAOWLv3FXJZ/NkWxpLiixB3TQ== X-Received: by 2002:a63:31d0:: with SMTP id x199mr5426750pgx.99.1598340233851; Tue, 25 Aug 2020 00:23:53 -0700 (PDT) Return-Path: Received: from bean-canyon.localdomain ([106.51.140.68]) by smtp.googlemail.com with ESMTPSA id d5sm1722417pjw.18.2020.08.25.00.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 00:23:53 -0700 (PDT) From: "Tanmay Jagdale" To: leif@nuviainc.com, graeme@nuviainc.com, shashi.mallela@linaro.org, devel@edk2.groups.io Cc: paul.isaacs@linaro.org, tanmay@marvell.com, Tanmay Jagdale Subject: [PATCH v2 edk2-platforms 3/8] SbsaQemu: SbsaQemu.dsc: Move CoreCount and Fdtlib Date: Tue, 25 Aug 2020 12:53:17 +0530 Message-Id: <20200825072322.10848-4-tanmay.jagdale@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200825072322.10848-1-tanmay.jagdale@linaro.org> References: <20200825072322.10848-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