From nobody Sat May 18 13:16:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109483+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109483+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1696929760; cv=none; d=zohomail.com; s=zohoarc; b=eHichBVUSYITjjMr6QmMeZNdF4krQNeh/Ru8ow+CPCDt+zoEt+4G0nDHbwj71Q4GtTjjb/25QyxsTEYGoMx/jQLatk0AEaUDmsXxk6HLWPCnC4rEApw6R1lM8l4u2Nm1FfjQn6sIYr908PCRwTs3wYjbYkv/Snc3qqs3G5nDGDM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696929760; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=RA/pPAaXi6WOZ8IKvqCqMGeyac/Tly6nK43RRAcsoeQ=; b=BYbUCO4QeeFbe4hhkpd2kWNyqj71AoNiT2yBHmRR93LDoWOMEaQtpF/uJgBB1j03JQ/FpImBpkO53sNHUxvVKzRDZ1TCU5GE9dTtHOwdSby/JYY+dLqO7hz4O2pvjQFa8SCt0cQF2yQQ0szSsQGRKP+KXSUXSS/p28AbMAF831A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109483+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1696929760673383.21143894991746; Tue, 10 Oct 2023 02:22:40 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=uLX1DEMKMx9vrV1Etp0QgmpY67Kodo611VjrQPUXR8M=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696929760; v=1; b=Dhb9Ow4XsrycgP9LEuINaB2FVp6jkcf3QctO3V6Q4FF9mcCh6qi8fCCVCVYbsJ7Eeq9UEpzE cyPHGuisckpdFB7XVcYMEbXAci7drBlFiODRUteNY+8iRqpcm76Ic7dQnsRJhgcBZXE9I+W5pBh OagjZ1lhBVjTG+ZF5Oqf4sVE= X-Received: by 127.0.0.2 with SMTP id 9JsCYY1788612xvhYsC4qlHD; Tue, 10 Oct 2023 02:22:40 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.86805.1696929759839912533 for ; Tue, 10 Oct 2023 02:22:39 -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 6E9FCC15; Tue, 10 Oct 2023 02:23:19 -0700 (PDT) X-Received: from usa.arm.com (a076506.arm.com [10.162.16.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7E8633F762; Tue, 10 Oct 2023 02:22:37 -0700 (PDT) From: "Pranav Madhu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [edk2-platforms][PATCH v1 1/2] Platform/Sgi: Define RD-V2 platform id values Date: Tue, 10 Oct 2023 14:52:24 +0530 Message-Id: <20231010092225.896440-2-pranav.madhu@arm.com> In-Reply-To: <20231010092225.896440-1-pranav.madhu@arm.com> References: <20231010092225.896440-1-pranav.madhu@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 Reply-To: devel@edk2.groups.io,pranav.madhu@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: oqlAiymBELPaHlRDBh6Dz7Tax1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1696929762954100007 Content-Type: text/plain; charset="utf-8" Add the RD-V2 platform identification values including the part number and configuration number. This information will be used in populating the SMBIOS tables. Signed-off-by: Pranav Madhu --- Platform/ARM/SgiPkg/Include/SgiPlatform.h | 5 +++++ Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Platform/ARM/SgiPkg/Include/SgiPlatform.h b/Platform/ARM/SgiPk= g/Include/SgiPlatform.h index e83853664c4c..ea197b9f50bc 100644 --- a/Platform/ARM/SgiPkg/Include/SgiPlatform.h +++ b/Platform/ARM/SgiPkg/Include/SgiPlatform.h @@ -47,6 +47,10 @@ #define RD_N2_PART_NUM 0x7B7 #define RD_N2_CONF_ID 0x1 =20 +// RD-V2 Platform Identification values +#define RD_V2_PART_NUM 0x7F2 +#define RD_V2_CONF_ID 0x1 + #define SGI_CONFIG_MASK 0x0F #define SGI_CONFIG_SHIFT 0x1C #define SGI_PART_NUM_MASK 0xFFF @@ -85,6 +89,7 @@ typedef enum { RdN2, RdN2Cfg1, RdN2Cfg2, + RdV2, } ARM_RD_PRODUCT_ID; =20 // Arm ProductId look-up table diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c b/Platfo= rm/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c index fa006320025b..0562f40d4604 100644 --- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c +++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.c @@ -79,6 +79,12 @@ STATIC CONST SGI_PRODUCT_ID_LOOKUP SgiProductIdLookup[] = =3D { RD_N2_CONF_ID, 1 }, + { + RdV2, + RD_V2_PART_NUM, + RD_V2_CONF_ID, + 0 + }, }; =20 EFI_BOOT_MODE --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109483): https://edk2.groups.io/g/devel/message/109483 Mute This Topic: https://groups.io/mt/101871395/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Sat May 18 13:16:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109484+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109484+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1696929766; cv=none; d=zohomail.com; s=zohoarc; b=QiLV3wbE2/iJP2aiLQI0/CDwMlOsiVtVUoNFGSJkdGJ7HFC1T5EHoYSO5H6FRaMcJDUVBN4PBLemchr+HWH48D5051jzWYW6tGYpWQPFxEm96ScVHM3Ow/aAjvTrUhEI5xmDNll82vbMS4X8pgsL3LtxwAAq09hh++eY19Vm3gI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696929766; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=uVIvbi22a/A+Bj1qgsszTPrgzEOI1mwQ0O0qOtJzafQ=; b=fQTMogYx7/j+azrMESrmnL7gqFKY21qRqEYTjZDtCYOtolymVboUZhb72LkebXt26bqMOqbTjHaOlYZHjMKNuMrj6U8qPStfPpC7z0hwrX0lYSANyISqYK4+u7xAJrU2zU8kcTd2zzGTMH/AVVCVKm0BnxEvhJn42Wcdcc2h3Fs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109484+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 169692976685027.353937593306; Tue, 10 Oct 2023 02:22:46 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=o+6LHaKlyeigoWzH3LtPjmX7+dnTYVkmAGysh8I21zU=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696929766; v=1; b=TBALBDw2Hw9YGSwe6nY4KZG8rzPrzjXnzj1BdSmCfm5bwtuCbac4i46Ko2oIg763iCMpiK7M WRUXIrZ+7AsPVSeS0tpZZU8pnTS+s/rSxmxjJncTUM3ggFUX+VG39zYlnn5NCjK4cguSUF3dFDq EncWWG0AdbGZg8PdLAHo4Pyo= X-Received: by 127.0.0.2 with SMTP id GvxXYY1788612xKZKEvp6vXu; Tue, 10 Oct 2023 02:22:46 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.86807.1696929765785214970 for ; Tue, 10 Oct 2023 02:22:45 -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 285901FB; Tue, 10 Oct 2023 02:23:26 -0700 (PDT) X-Received: from usa.arm.com (a076506.arm.com [10.162.16.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 368393F762; Tue, 10 Oct 2023 02:22:38 -0700 (PDT) From: "Pranav Madhu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [edk2-platforms][PATCH v1 2/2] Platform/Sgi: Extend SMBIOS support for RD-V2 platform Date: Tue, 10 Oct 2023 14:52:25 +0530 Message-Id: <20231010092225.896440-3-pranav.madhu@arm.com> In-Reply-To: <20231010092225.896440-1-pranav.madhu@arm.com> References: <20231010092225.896440-1-pranav.madhu@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 Reply-To: devel@edk2.groups.io,pranav.madhu@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: I6ThMRJbUeXXEcizxGKJjhQ3x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1696929769272100003 Content-Type: text/plain; charset="utf-8" The Neoverse RD-V2 FVP platform includes 16 CPUs and each CPU has 64KB of L1 instruction/data cache, 2MB of L2 cache and 32MB of system level cache. Extend the SMBIOS support for RD-V2 platform with this configuration. Signed-off-by: Pranav Madhu --- Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type1SystemInformation.c = | 5 ++++- Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type4ProcessorInformation.c = | 7 +++++-- Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type7CacheInformation.c = | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type1SystemInfor= mation.c b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type1SystemInforma= tion.c index b7e2238fb39c..fe3c88672d7e 100644 --- a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type1SystemInformation.c +++ b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type1SystemInformation.c @@ -33,7 +33,8 @@ "RdV1Mc\0" \ "RdN2\0" \ "RdN2Cfg1\0" \ - "RdN2Cfg2\0" + "RdN2Cfg2\0" \ + "RdV2\0" =20 typedef enum { ManufacturerName =3D 1, @@ -71,6 +72,8 @@ STATIC GUID mSmbiosUid[] =3D { {0xa4941d3d, 0xfac3, 0x4ace, {0x9a, 0x7e, 0xce, 0x26, 0x76, 0x64, 0x5e, = 0xda}}, /* Rd-N2-Cfg2 */ {0xd2946d07, 0x8057, 0x4c26, {0xbf, 0x53, 0x78, 0xa6, 0x5b, 0xe1, 0xc1, = 0x60}}, + /* Rd-V2 */ + {0x3b1180a3, 0x0744, 0x4194, {0xae, 0x2e, 0xed, 0xa5, 0xbc, 0x2e, 0x43, = 0x45}}, }; =20 /* System information */ diff --git a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type4ProcessorIn= formation.c b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type4ProcessorI= nformation.c index b59172cf1cb9..0f403e41a3c7 100644 --- a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type4ProcessorInformati= on.c +++ b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type4ProcessorInformati= on.c @@ -27,7 +27,7 @@ #define SOCKET_TYPE_BASE 3 #define SOCKET_TYPE_NUM 1 #define PROCESSOR_VERSION_BASE (SOCKET_TYPE_BASE + SOCKET_TYPE_NUM) -#define PROCESSOR_VERSION_NUM 10 +#define PROCESSOR_VERSION_NUM 11 #define SERIAL_NUMBER_BASE (PROCESSOR_VERSION_BASE + PROCESSOR_VERSIO= N_NUM) #define TYPE4_STRINGS \ "0x000\0" /* Part Number */ \ @@ -43,6 +43,7 @@ "Neoverse-N2\0" \ "Neoverse-N2\0" \ "Neoverse-N2\0" \ + "Neoverse-V2\0" \ "000-0\0" /* Serial number */ \ "783-3\0" \ "786-1\0" \ @@ -52,7 +53,8 @@ "78A-2\0" \ "7B7-1\0" \ "7B6-1\0" \ - "7B7-1\0" + "7B7-1\0" \ + "7F2-1\0" =20 typedef enum { PartNumber =3D 1, @@ -178,6 +180,7 @@ InstallType4ProcessorInformation ( break; case RdN2: case RdN2Cfg1: + case RdV2: mArmRdSmbiosType4.Base.CoreCount =3D CoreCount; mArmRdSmbiosType4.Base.EnabledCoreCount =3D CoreCount; mArmRdSmbiosType4.Base.ThreadCount =3D CoreCount; diff --git a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type7CacheInform= ation.c b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type7CacheInformati= on.c index b71ce721e2e8..d65ae9520679 100644 --- a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type7CacheInformation.c +++ b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type7CacheInformation.c @@ -334,6 +334,24 @@ InstallType7CacheInformation ( mArmRdSmbiosType7[4].Base.InstalledSize2 =3D 8192; // 8MB SLC mArmRdSmbiosType7[4].Base.Associativity =3D CacheAssociativity16Way; break; + case RdV2: + /* L1 instruction cache */ + mArmRdSmbiosType7[0].Base.MaximumCacheSize2 =3D 64; // 64KB + mArmRdSmbiosType7[0].Base.InstalledSize2 =3D 64; // 64KB + mArmRdSmbiosType7[0].Base.Associativity =3D CacheAssociativity4Way; + /* L1 data cache */ + mArmRdSmbiosType7[1].Base.MaximumCacheSize2 =3D 64; // 64KB + mArmRdSmbiosType7[1].Base.InstalledSize2 =3D 64; // 64KB + mArmRdSmbiosType7[1].Base.Associativity =3D CacheAssociativity4Way; + /* L2 cache */ + mArmRdSmbiosType7[2].Base.MaximumCacheSize2 =3D 2048; // 2MB + mArmRdSmbiosType7[2].Base.InstalledSize2 =3D 2048; // 2MB + mArmRdSmbiosType7[2].Base.Associativity =3D CacheAssociativity8Way; + /* System level cache */ + mArmRdSmbiosType7[4].Base.MaximumCacheSize2 =3D 32768; // 32MB SLC + mArmRdSmbiosType7[4].Base.InstalledSize2 =3D 32768; // 32MB SLC + mArmRdSmbiosType7[4].Base.Associativity =3D CacheAssociativity16Way; + break; } =20 /* Install valid cache information tables */ --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109484): https://edk2.groups.io/g/devel/message/109484 Mute This Topic: https://groups.io/mt/101871396/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-