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 06A51D801DB for ; Fri, 12 Jul 2024 09:24:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hPHzG7rzkjCfVYXIzKdPQ/SxnQ9Zx1Ed1nCr9JVkGgQ=; 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=1720776261; v=1; b=FTEcqRhw7G52yO02IQu3eFXtK097M8r2M2DCo8q91rAV2TntxXQcJYgaIMM3YRwV+CGqF/gT lUjjEKY+yv3H7YtEcna8ku63k0FkBiB0oDWRd5rwunATqDxOWbTJAopTFCDdXVthKyjNMh2xAQ8 jNMjhJ65QiFFfnZhNCmj4byUGSVRPfNKwU38CHJ6L0p+7hLQFKNgumnQ0iS8OWRwstxcRCB+DB1 gBejoM7PZXcbl3Y0fFqGe1z+PSWw7cBcI754ExtsZKK1zkgrT+bfDrZbcSwBFMZeATaTnE0kYOV P2ZcyoPwiTmPBrDdphbBjczaeOd1h8fNAuHFPX0rtWscg== X-Received: by 127.0.0.2 with SMTP id wnXIYY7687511xJrHHFN8ICH; Fri, 12 Jul 2024 02:24:20 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.3888.1720776259811293005 for ; Fri, 12 Jul 2024 02:24:20 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 5ECA12619A1; Fri, 12 Jul 2024 11:24:17 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id 725KZBlpwr2j; Fri, 12 Jul 2024 11:24:15 +0200 (CEST) X-Received: from applejack.lan (83.8.74.165.ipv4.supernova.orange.pl [83.8.74.165]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 3ECD526005A; Fri, 12 Jul 2024 11:24:15 +0200 (CEST) From: "Marcin Juszkiewicz" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sami Mujawar , Marcin Juszkiewicz Subject: [edk2-devel] [PATCH 1/2] ArmPkg: make PcdProcessorVersion dynamic Date: Fri, 12 Jul 2024 11:23:55 +0200 Message-ID: <20240712092356.517074-2-marcin.juszkiewicz@linaro.org> In-Reply-To: <20240712092356.517074-1-marcin.juszkiewicz@linaro.org> References: <20240712092356.517074-1-marcin.juszkiewicz@linaro.org> 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, 12 Jul 2024 02:24:20 -0700 Resent-From: marcin.juszkiewicz@linaro.org Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: IhTGbNb5r2CuMCrVIFGawnxHx7686176AA= 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=FTEcqRhw; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none) On SbsaQemu platform we would like to be able to set this variable during bootup as cpu model can be different on each system run. Signed-off-by: Marcin Juszkiewicz --- ArmPkg/ArmPkg.dec | 2 +- .../Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec index c0861140e858..cd922a04ddfa 100644 --- a/ArmPkg/ArmPkg.dec +++ b/ArmPkg/ArmPkg.dec @@ -198,7 +198,6 @@ [PcdsFixedAtBuild.common] gArmTokenSpaceGuid.PcdBaseBoardProductName|L""|VOID*|0x30000056 gArmTokenSpaceGuid.PcdBaseBoardVersion|L""|VOID*|0x30000057 gArmTokenSpaceGuid.PcdProcessorManufacturer|L""|VOID*|0x30000071 - gArmTokenSpaceGuid.PcdProcessorVersion|L""|VOID*|0x30000072 gArmTokenSpaceGuid.PcdProcessorSerialNumber|L""|VOID*|0x30000073 gArmTokenSpaceGuid.PcdProcessorAssetTag|L""|VOID*|0x30000074 gArmTokenSpaceGuid.PcdProcessorPartNumber|L""|VOID*|0x30000075 @@ -301,6 +300,7 @@ [PcdsFixedAtBuild.AARCH64] # [PcdsFixedAtBuild.common, PcdsDynamic.common, PcdsPatchableInModule.comm= on] =20 + gArmTokenSpaceGuid.PcdProcessorVersion|L""|VOID*|0x30000072 # System Memory (DRAM): These PCDs define the region of in-built syste= m memory # Some platforms can get DRAM extensions, these additional regions may= be # declared to UEFI using separate resource descriptor HOBs diff --git a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubCla= ss.c b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c index 4f2d42133756..4a787b603698 100644 --- a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c +++ b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c @@ -527,8 +527,8 @@ AllocateType4AndSetProcessorInformationStrings ( OemUpdateSmbiosInfo (mHiiHandle, PartNumber, ProcessorPartNumType04)= ; } =20 - if (StrLen ((CHAR16 *)FixedPcdGetPtr (PcdProcessorVersion)) > 0) { - HiiSetString (mHiiHandle, ProcessorVersion, (CHAR16 *)FixedPcdGetPtr= (PcdProcessorVersion), NULL); + if (StrLen ((CHAR16 *)PcdGetPtr (PcdProcessorVersion)) > 0) { + HiiSetString (mHiiHandle, ProcessorVersion, (CHAR16 *)PcdGetPtr (Pcd= ProcessorVersion), NULL); } else { OemUpdateSmbiosInfo (mHiiHandle, ProcessorVersion, ProcessorVersionT= ype04); } -- 2.45.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119907): https://edk2.groups.io/g/devel/message/119907 Mute This Topic: https://groups.io/mt/107179082/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-