From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id D14A1AC162F for ; Fri, 5 Jul 2024 13:22:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=JuVBByJz2lqCOySXeOgNO+06NgXN1d88sOh7qjkbjwI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1720185759; v=1; b=VWTO5TXJqkOcoTjBIRan0S+UNp07KIhZ73f+f4bvvYYIKSlXGduzR+A8XooXTGVivTB2FnGN 5GXnmyxNH/w1HrvkI93P+9IrfXPuIaMuwnY99dpQrM0GQS2T5e3a0pk8VmTfguHY5g4aU9pqv+a IL3LSVt7y0VxljfnxUXaC0xx81b5oKMDfFsCn0HKk5E0WfvFpuFfbzXh2F/IjajTYF3ATeRRI4f cFF66xGRDXuFNcjDwcndBsKFqIhbLSx4whKRcdN1Foo8bmavyyOtE/ORANM6g35JSOD8aTEJhG+ mhCcYdGdR2e0TRldZAd+ScjAVO6eyevvYn4jFHGfWAkVQ== X-Received: by 127.0.0.2 with SMTP id q6J8YY7687511xojeoHhxkY7; Fri, 05 Jul 2024 06:22:38 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.17056.1720185757971005233 for ; Fri, 05 Jul 2024 06:22:38 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B521D367; Fri, 5 Jul 2024 06:23:02 -0700 (PDT) X-Received: from e129823.cambridge.arm.com (e129823.arm.com [10.1.197.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A4E3F3F762; Fri, 5 Jul 2024 06:22:36 -0700 (PDT) From: "levi.yun" 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 Message-Id: <20240705132231.1574767-2-yeoreum.yun@arm.com> In-Reply-To: <20240705132231.1574767-1-yeoreum.yun@arm.com> References: <20240705132231.1574767-1-yeoreum.yun@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 05 Jul 2024 06:22:38 -0700 Resent-From: yeoreum.yun@arm.com Reply-To: devel@edk2.groups.io,yeoreum.yun@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: gBi1pgvqGboClIpNbNG2AbNNx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=VWTO5TXJ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: "Levi Yun" 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.d= ts Signed-off-by: Levi Yun --- 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/V= ExpressPkg/ArmVExpressPkg.dec index 76ba4f7f648507e05b4ec5a24cc28f60c43425a4..d4aa1a17ef2e9fcb56749e1da= 2086b1d9401d711 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec +++ b/Platform/ARM/VExpressPkg/ArmVExpressPkg.dec @@ -69,3 +69,15 @@ [PcdsFixedAtBuild.common] =20 # 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/Platf= orm/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc index f70a4d52ba06f570e017ab5286f06d87193753e5..cffcfde3663d72ac40d73ab8a= 9b9f7afedf1922a 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 =20 + ## ARM Cores and Clusters + gArmPlatformTokenSpaceGuid.PcdCoreCount|4 + gArmPlatformTokenSpaceGuid.PcdClusterCount|2 + ########################################################################= ######## # # Components Section - list of all EDK II Modules needed by this Platfor= m -- 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] -=-=-=-=-=-=-=-=-=-=-=-