From nobody Tue Feb 10 00:22:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58615+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58615+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588683822; cv=none; d=zohomail.com; s=zohoarc; b=XVItQ5tKgsBzKQMBw40q8BpjN9E0/S8a6B1jExl++Xru170o/gs57MvrVp83sXa0Hi1iZgIqfEvB8MeYof9+IKBkEXTLEOrX6LrQTB3/sOnF2Z5tNJo7Jh7NH9wIPE1sX6syY9o7D7TnVlVrubBDFqQgxR6K//eDIt63m0LReUk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588683822; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=HobYPI4UG+85CB1VDnbpyRvCqGhD9QwcoGIAW8i/pL0=; b=GRUF2iihFKbde+cZZhU8f4EItn2jCEt2/cjjBEX6jAMYasUU9abN+1+TFNXuyjAJYiIHqNPCXmuKB0k7LYUyeYWbyfKP807t7irTjn8vcs9l7Bk0q/cqzvHkHsEl1JKyv5pnJ17pUr+oxqxcQ3FLdlHPqvcx7dPPCN5Tg75mCHI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58615+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588683822793874.9709684168848; Tue, 5 May 2020 06:03:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id MD9DYY1788612xo62t365cM1; Tue, 05 May 2020 06:03:42 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.7218.1588683820917845062 for ; Tue, 05 May 2020 06:03:41 -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 947B630E; Tue, 5 May 2020 06:03:40 -0700 (PDT) X-Received: from usa.arm.com (a073440-lin.blr.arm.com [10.162.16.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A65493F68F; Tue, 5 May 2020 06:03:38 -0700 (PDT) From: "Aditya Angadi" To: devel@edk2.groups.io Cc: thomas.abraham@arm.com, ard.biesheuvel@arm.com, vijayenthiran.subramaniam@arm.com, leif@nuviainc.com, Aditya Angadi Subject: [edk2-devel] [PATCH v5][edk2-platforms 06/17] Platform/ARM/SgiPkg: Obtain rd-e1-edge platform core count from PCD Date: Tue, 5 May 2020 18:32:03 +0530 Message-Id: <20200505130214.25592-7-aditya.angadi@arm.com> In-Reply-To: <20200505130214.25592-1-aditya.angadi@arm.com> References: <20200505130214.25592-1-aditya.angadi@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,aditya.angadi@arm.com X-Gm-Message-State: UHheSYdwG8mqHmQQEsIj3G8rx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588683822; bh=9NHGh2pkkADR6F3HQI0TKEDmMtqEzYrRkVnBhT6tLBM=; h=Cc:Date:From:Reply-To:Subject:To; b=l7fk9eTHndH0I3AU0L4g1y9ewSYuzGdcQYZeDTQG8/VHg5dhGIJapwYjWUFDm0zmsjx 16r16QLxu5zOUiFYJyNPMBhoiKbZ0uZ4Dx13kEYVcnHZzHoVuxMD+fGvtDn8C73jMs8UR muiWD62svs3QPqFXmsP+1aOl0RQlfYmgyTE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The number of processing elements is hardcoded in the MADT ACPI table of the RD-E1-Edge platform. Remove the hardcoded value and obtain the core count on platform from PCDs instead. Signed-off-by: Aditya Angadi --- Platform/ARM/SgiPkg/AcpiTables/RdE1Edge/Madt.aslc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdE1Edge/Madt.aslc b/Platform/A= RM/SgiPkg/AcpiTables/RdE1Edge/Madt.aslc index 48e7a61478e8..58378b570b12 100644 --- a/Platform/ARM/SgiPkg/AcpiTables/RdE1Edge/Madt.aslc +++ b/Platform/ARM/SgiPkg/AcpiTables/RdE1Edge/Madt.aslc @@ -14,6 +14,9 @@ #include #include =20 +#define CORE_CNT (FixedPcdGet32 (PcdClusterCount) * \ + FixedPcdGet32 (PcdCoreCount)) + // EFI_ACPI_6_2_GIC_STRUCTURE #define EFI_ACPI_6_2_GICC_STRUCTURE_INIT(GicId, AcpiCpuUid, Mpidr, Flags, = \ PmuIrq, GicBase, GicVBase, GicHBase, GsivId, GicRBase, Efficiency) = \ @@ -85,7 +88,7 @@ =20 typedef struct { EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER Header; - EFI_ACPI_6_2_GIC_STRUCTURE GicInterfaces[32]; + EFI_ACPI_6_2_GIC_STRUCTURE GicInterfaces[CORE= _CNT]; EFI_ACPI_6_2_GIC_DISTRIBUTOR_STRUCTURE GicDistributor; EFI_ACPI_6_2_GICR_STRUCTURE GicRedistributor; EFI_ACPI_6_2_GIC_ITS_STRUCTURE GicIts; --=20 2.17.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 (#58615): https://edk2.groups.io/g/devel/message/58615 Mute This Topic: https://groups.io/mt/73997066/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-