From nobody Fri Oct 11 18:36:51 2024 Delivered-To: importer@patchew.org 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+108589+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 16946094010861017.6598730951671; Wed, 13 Sep 2023 05:50:01 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=I3PtZASai8QUQ3lyI/ZEdVG7yQrTdG13Wxg2cU2iIcI=; c=relaxed/simple; d=groups.io; h=Received-SPF:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:NoDisclaimer:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1694609400; v=1; b=MBNnwmO2vg6Wubq85DpcbUFrjE7ZcGn4ML05d38wsyUHCP7AwUNz/ZVM9b/Q7Su/xa1ZFCRn 3Zg7nRcJ9W2tMmEBjsS/TH8xRftqJSPDyj0KKyaD6zG3XsnTNqKAFqUJoTrCZMNkQ6N0Mik9NdS c4BsbXRPxdOJvoK7P30vDSEE= X-Received: by 127.0.0.2 with SMTP id 2lDrYY1788612xMWa5tBDgO3; Wed, 13 Sep 2023 05:50:00 -0700 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com [40.107.7.51]) by mx.groups.io with SMTP id smtpd.web11.10983.1694609399782544145 for ; Wed, 13 Sep 2023 05:50:00 -0700 X-Received: from DB7PR03CA0101.eurprd03.prod.outlook.com (2603:10a6:10:72::42) by AM7PR08MB5334.eurprd08.prod.outlook.com (2603:10a6:20b:10b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.37; Wed, 13 Sep 2023 12:49:56 +0000 X-Received: from DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:72:cafe::5d) by DB7PR03CA0101.outlook.office365.com (2603:10a6:10:72::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:49:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; 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+108589+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT023.mail.protection.outlook.com (100.127.142.253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:49:56 +0000 X-Received: ("Tessian outbound b5a0f4347031:v175"); Wed, 13 Sep 2023 12:49:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 8b7f2b28500e319e X-CR-MTA-TID: 64aa7808 X-Received: from 31cfa66cc1a2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A79935F3-7D4F-4C53-89E7-F803987FA530.1; Wed, 13 Sep 2023 12:49:49 +0000 X-Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 31cfa66cc1a2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Sep 2023 12:49:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TJ+SpjnMtVKjQ91LN1O0owIjEZpdkNyLq1kDZ/q3V1qFnnDxakpE/LcHeOH9R3zNVAe4LA6NBi/wcz7y3/H8DOAhujDGqu+sjQ6lY7YlclN4K9vLLbGKzgdtpLC94VGrwVxPnNlYzKAZqRhc+XNJxpfTWdvSPwJCM4XeWSIQOJZSbiioLjZJfQQsQ/liP3LZ+QuyHF9dBQehNULxrNetg2FiCCnn0fIU93ww/LWc+cxRT94a6JMFLGQs0uElPXVaLmCNBjKOEkVaOjHNEtRxqAHBEPO45EMsqruolSx18EhFSZe6nwSgXN55Sab3MoUOUqBEykXQ+ngJEYWbmpZBVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/BfGA1x1RO5VrcYCwWa5uD0uIW/x80P8zOas5nTqoGA=; b=aldYl0oH1fzboM+OvBxy3+Ap2gZ0W5FNfKfvIt1Irm0IcesF+D9QZ7ucaiG5DSzWVdaXpqpM01vSI9P+RAY16CttbGiAI3uSUIUSnUJYGPVm/WFRzeD5DA92bLj3jNB/Qzo7U7pdQstbnDNxRYyrPvpIEf1RRpIRYzR8DXhSHobJ5VRPgAWjo9ckBWPUojEXkvVt0qqRRJhAO5cHJ5bTXb0astnUr6GfgaiKSJDIBamuEBX5OVIdREsh9OgKx+qvbHRwhlaBqVte3cGaqygDe30Xpi7Ou4B4S8qNU7EzJlqesl9jiritMQJ6qLbjZYWOp247hX1wA52D64OlWxJRew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DUZPR01CA0257.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b5::29) by PR3PR08MB5770.eurprd08.prod.outlook.com (2603:10a6:102:87::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Wed, 13 Sep 2023 12:49:46 +0000 X-Received: from DBAEUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b5:cafe::de) by DUZPR01CA0257.outlook.office365.com (2603:10a6:10:4b5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:49:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C X-Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT057.mail.protection.outlook.com (100.127.142.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:49:46 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 13 Sep 2023 12:49:41 +0000 X-Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Wed, 13 Sep 2023 12:49:41 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [PATCH v2 11/11] DynamicTablesPkg: Fix referencing of CPC token Date: Wed, 13 Sep 2023 13:49:35 +0100 Message-ID: <20230913124935.38768-12-sami.mujawar@arm.com> In-Reply-To: <20230913124935.38768-1-sami.mujawar@arm.com> References: <20230913124935.38768-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT057:EE_|PR3PR08MB5770:EE_|DBAEUR03FT023:EE_|AM7PR08MB5334:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b1b92cb-cb76-444e-e0a2-08dbb457eeb9 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: s9HLju5nUeQ+LSRKZEBBnNTku0aPtaaO5wuU2vCjFPs+h0sPLZFHaTc+K0VvAvg1wkbrBs/uyp2G8S9iVB8wiGacUSM12p59CFkHJywxrStoYUUFTMDt48PinfA/z4YvJL6+40ALVWWQzqopEHvrUaXFRIX/zFk5tmAt1/JcIO/FPapZp9OwqtGt2w7eOmQIQFyIkQI4hGmGohmSVQs4oMyHXVmvrahT0VKCUDkgyT/ZH6+xjd53zv62u0wGq3JjYYP6jLLGjH6mirfX8LAIJpbzuOHLV5R6RwmuBW0JmAqae14QM/vdA/aJPFcgJcoQzpsmR34DyDSryaiYhtkf83XTkdTIOjWtIAN7a1g1SJNE+ZlxROFp/UE8LGnjOaQBu5yQdH+VzNt5tAsnkB+ZSzbnN8cu3dfNx7Tz4+XrtOGi7RmsNTZ23Xi2KUbzOIGhbmpscS44AKWMXxxUKt8NIUCL04kwgAyFKh0XZC1rsANXtQ4+Id8tXFRrtIOPpcuIcO2QMkDIHNw94WnuF3TAI9O038r4hb73QfHJVdYv+Ae0FQS5HCPMLjUmM8bCVe5rFFz3UPz81lCHnoDP2r0+FIvLYN62BMCtAtmVuDN/eG6PeS833txYatSxg/Ot4gkM/gPMF0woj2nxftIQf+VygigIS9SUOypH0oAofYkLu01ts0VaQRPww1I/HSiSXskOqiqaIbB/JQV+iT40LzqvOadVJYeNhl6XoCDTFcC2lyTQ9B9VSXSo3lDpN0XkNKeBBkNuo3IPEls2MHj8GGh8mQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(136003)(346002)(376002)(39860400002)(186009)(1800799009)(451199024)(82310400011)(36840700001)(40470700004)(46966006)(6666004)(7696005)(40460700003)(36756003)(86362001)(82740400003)(81166007)(356005)(40480700001)(36860700001)(26005)(2616005)(1076003)(83380400001)(2906002)(426003)(336012)(478600001)(316002)(4326008)(6916009)(5660300002)(47076005)(8676002)(41300700001)(8936002)(44832011)(70206006)(70586007)(54906003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5770 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 41c1cadf-c6f7-452e-4874-08dbb457e8a6 X-Microsoft-Antispam-Message-Info: 0CapizpaitvOahpjAMHv94dAh3oxGxS7GG61xva1MXa1Tjh2z3XDmymc4exfSwANpZ6gkChOFO+em5C+1ogVhS05UtZ+eSEdNjGrVkAzNAmybRdN2FtxaY9aamVroUQzX30/tOX7yrXEhfJRbNBxMEZdpabAVXOwWjofGI39uWSHkdtNfCTaXgNCOTvcqOqLLwtjWPpcouhHbdjLNtmnmJH6+/kqHaow3d2Az2rrs6Mmm9neIlROob4OPQzkvS5leVpbmhjIg4GuI53y7Klz8EAM1DtSC8dMKmDR7f+XvHRFnc9daI4nESqjUT5npXrUz0gW9PCdDbqTXIWelEuCjXdtEB7R57yB7/hG9+cYEUN1r+WiNfRxA/tf1StSD09K+tbaQ8AHOW+rF4oDHgAeZ25BFZ88OZlZBN12j2DFOOtQtNkMJu4Z3tPFLYTRC0yOMD0Zc4DZfpaHb2dIyXBQnK9MsgqpBfNNpA3tTNI7vnevRE1mprc10oCgYjB9s/7dnLYHRDS0VH3x0YEzQolVNs2gaKd/mkL40uqCefldmxSA2+/R+/eFHJ/RPc9jLGtpwASSqRGRfF3RjQYT9/jMafVLhX03hPNi0qWZa7OzKW/KrseQmXtgAgSuS8AF33DBiNyGe4l6tSDTaQR0F0QTvBvg8Kg1BQUNS6oHWYB7bAoHVWWs7dI5n2zMgsDW/8MeNyKHv6kguhKZzs/5hs7y8H9dPJswbGmiNSXjmTI7nLdlO6yeoNDvWkhHqcHooPI9 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 12:49:56.3370 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b1b92cb-cb76-444e-e0a2-08dbb457eeb9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5334 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,sami.mujawar@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zmBbTq3cqzC9P85WMuijD1v1x1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1694609403208100025 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The CpcToken has been incorrectly referenced in the CreateTopologyFromGicC() and always points to the CPC token in the first GICC Info object. Therefore, fix this by correctly indexing into the GicCInfo object array. Signed-off-by: Sami Mujawar --- Notes: v2: - No code change from v1 patch series. [SAMI] DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopolog= yGenerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/Ss= dtCpuTopologyGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTop= ologyLibArm/SsdtCpuTopologyGenerator.c index 6fbba12a010bf987797f0901a032735e8e0be598..8228c7845ac0c26ca0f319fd86a= bf89bb3bfaf50 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTo= pologyGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTo= pologyGenerator.c @@ -1298,7 +1298,7 @@ CreateTopologyFromGicC ( =20 // If a CPC info is associated with the // GicCinfo, create an _CPC method returning them. - if (GicCInfo->CpcToken !=3D CM_NULL_TOKEN) { + if (GicCInfo[Index].CpcToken !=3D CM_NULL_TOKEN) { Status =3D CreateAmlCpcNode (Generator, CfgMgrProtocol, &GicCInfo[In= dex], CpuNode); if (EFI_ERROR (Status)) { ASSERT_EFI_ERROR (Status); --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=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 (#108589): https://edk2.groups.io/g/devel/message/108589 Mute This Topic: https://groups.io/mt/101335841/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-