public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "levi.yun" <yeoreum.yun@arm.com>
To: devel@edk2.groups.io
Cc: yeoreum.yun@arm.com, sami.mujawar@arm.com,
	pierre.gondois@arm.com, nd@arm.com, thomas.abraham@arm.com
Subject: [edk2-devel] [PATCH v1 edk2-platform 1/2] VExpressPkg: Add cache information related PCDs
Date: Fri,  5 Jul 2024 14:22:30 +0100	[thread overview]
Message-ID: <20240705132231.1574767-2-yeoreum.yun@arm.com> (raw)
In-Reply-To: <20240705132231.1574767-1-yeoreum.yun@arm.com>

From: "Levi Yun" <yeoreum.yun@arm.com>

Base FVP can configure cache information via model parameter.
But, there's no way to read model option dynamically in UEFI.
Add PCDs related to cache options which are correspondent to model option for
setting cache information at build time.

The default values are based on linux/arch/arm64/boot/dts/fvp_base_revc.dts

Signed-off-by: Levi Yun <yeoreum.yun@arm.com>
---
 Platform/ARM/VExpressPkg/ArmVExpressPkg.dec          | 12 ++++++++++++
 Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec b/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
index 76ba4f7f648507e05b4ec5a24cc28f60c43425a4..d4aa1a17ef2e9fcb56749e1da2086b1d9401d711 100644
--- a/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
+++ b/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec
@@ -69,3 +69,15 @@ [PcdsFixedAtBuild.common]
 
   # ISP1761 USB OTG Controller
   gArmVExpressTokenSpaceGuid.PcdIsp1761BaseAddress|0|UINT32|0x00000029
+
+  ## Cache information (see the model option).
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheSize|0x8000|UINT32|0x0000002A
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheWays|2|UINT32|0x0000002B
+  gArmVExpressTokenSpaceGuid.PcdL1DcacheLineSize|64|UINT32|0x0000002C
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheSize|0x8000|UINT32|0x0000002D
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheWays|2|UINT32|0x0000002E
+  gArmVExpressTokenSpaceGuid.PcdL1IcacheLineSize|64|UINT32|0x0000002F
+  gArmVExpressTokenSpaceGuid.PcdL2CacheSize|0x80000|UINT32|0x00000030
+  gArmVExpressTokenSpaceGuid.PcdL2CacheWays|16|UINT32|0x00000031
+  gArmVExpressTokenSpaceGuid.PcdL3CacheSize|0x00|UINT32|0x00000032
+  gArmVExpressTokenSpaceGuid.PcdL3CacheWays|16|UINT32|0x00000033
diff --git a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
index f70a4d52ba06f570e017ab5286f06d87193753e5..cffcfde3663d72ac40d73ab8a9b9f7afedf1922a 100644
--- a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
+++ b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc
@@ -193,6 +193,10 @@ [PcdsFixedAtBuild.common]
   #
   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
 
+  ## ARM Cores and Clusters
+  gArmPlatformTokenSpaceGuid.PcdCoreCount|4
+  gArmPlatformTokenSpaceGuid.PcdClusterCount|2
+
 ################################################################################
 #
 # Components Section - list of all EDK II Modules needed by this Platform
--
Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119804): https://edk2.groups.io/g/devel/message/119804
Mute This Topic: https://groups.io/mt/107053447/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-07-05 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-05 13:22 [edk2-devel] [PATCH v1 edk2-platform] Add PPTT information for Base FVP levi.yun
2024-07-05 13:22 ` levi.yun [this message]
2024-07-05 13:22   ` [edk2-devel] [PATCH v1 edk2-platform 2/2] VExpressPkg/ConfigurationManger: Add PPTT generation levi.yun

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=20240705132231.1574767-2-yeoreum.yun@arm.com \
    --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