From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6C063AC0F79 for ; Tue, 25 Jul 2023 10:29:06 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KS3kKWACRqkcrUeJ8tBHZYkngvk8qVG5KtH4RO59RN0=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:X-CheckRecipientChecked:X-CR-MTA-CID:X-CR-MTA-TID:X-Received:X-Received:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:X-Received:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:X-EOPAttributedMessage:X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id:x-checkrecipientrouted:NoDisclaimer:X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam-Untrusted:X-Microsoft-Antispam-Message-Info-Original:X-Forefront-Antispam-Report-Untrusted:X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MS-Exchange-Transport-CrossTenantHeadersStripped:X-MS-PublicTrafficType:X-MS-Office365-Filtering-Correlation-Id-Prvs:X-Microsoft-Antispam-Message-Info:X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime:X-MS-Exchange -CrossTenant-Network-Message-Id:X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-FromEntityHeader:X-MS-Exchange-Transport-CrossTenantHeadersStamped:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Type; s=20140610; t=1690280945; v=1; b=t6dgX/oV+GgYENTkN+hHgoi9yWPYpa14ReGQyHyN+gLE5fjwUX9gx0+4Rm/8+6KTmI6nLGuZ pX3P0Ug1VavDid7K49dTR+HysmmnTg1VegrB1OKm5/WCEZ5klRBk9tV/XUb31WjWz5N8ONoQIY2 AO7d2jzo67y7febS71+tsXcs= X-Received: by 127.0.0.2 with SMTP id Ed68YY7687511xQA3pio7PlP; Tue, 25 Jul 2023 03:29:05 -0700 X-Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.43]) by mx.groups.io with SMTP id smtpd.web11.17206.1690280944335617397 for ; Tue, 25 Jul 2023 03:29:04 -0700 X-Received: from AS9PR06CA0555.eurprd06.prod.outlook.com (2603:10a6:20b:485::18) by AS8PR08MB8565.eurprd08.prod.outlook.com (2603:10a6:20b:568::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Tue, 25 Jul 2023 10:28:55 +0000 X-Received: from AM7EUR03FT056.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:485:cafe::83) by AS9PR06CA0555.outlook.office365.com (2603:10a6:20b:485::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.28 via Frontend Transport; Tue, 25 Jul 2023 10:28:55 +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 (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 AM7EUR03FT056.mail.protection.outlook.com (100.127.140.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.25 via Frontend Transport; Tue, 25 Jul 2023 10:28:55 +0000 X-Received: ("Tessian outbound f5de790fcf89:v145"); Tue, 25 Jul 2023 10:28:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9a60ce5ade20802c X-CR-MTA-TID: 64aa7808 X-Received: from 2579faf9af18.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9E3EBBC9-7F78-400F-B91E-0AC98EB3FA9B.1; Tue, 25 Jul 2023 10:28:43 +0000 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 2579faf9af18.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jul 2023 10:28:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AtpnqStdMQoMcGEgoduJPCW8Tr40Ui0BqU5rKb9krcPMgwxB6UILmdIQZDekf//O3SVyYWTD1GhOCC94yTk9/LqHgDvgNx/MOVIpCnNn0mf2rU8BpoTirzqoQtrKiti5mxOi1FqfvPP1F9Om2tukK0gydc491Cg87tsYZpNyTlPh2jjspOglG5/mvwlwc7cCRqe7D3ln1Qf8I4mtEzETpsGU1aV/FG0SvJBV1MIoPOvvhg0HCNBHx9jZLw+9vA9mnabgbOUqjt6LoPb0o1GeHhIlPIR0UGUJjClBeg+ZHYB9EpewgiEFXJsX9hFHaPibuJbuaV7jLTeBkGGumiTKFw== 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=WJ0PVePKaWo1FKrmqQF/baY9n0z6KimszY2NdeYBic8=; b=RQGWrkR2vvgXld6G41tB0Kcq6C3w3/vQUBEHO+2UJ6M1fhGnVEHmABvZ0pDyS6f010yObPjj22z2Ri56LEqehoQES9EB3OeuNdl9Odn6zJPkMgIumSe5UkA6B7k4xO7KL4dCDmdxqMWn/tHlmX7DEe2YP9sN7MH9Z2kikytZEFit8CBV8WMwEqnPsCVOLKwijJE8Cd8d3ZgSEQUDRiMnRqlz1NYUC0b28FRrO+6UFAMWuxK4NvJWfoJz2cgHThX1j5YD0gKq7/VSgaIogRvsxOhZn/YOiWQw7o2NVnKanyNDicKx1PLacEOr+nNRe+jtSG1RakalIIWX9jTLMiyVVQ== 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 DU2PR04CA0284.eurprd04.prod.outlook.com (2603:10a6:10:28c::19) by AM7PR08MB5416.eurprd08.prod.outlook.com (2603:10a6:20b:10e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 10:28:40 +0000 X-Received: from DBAEUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28c:cafe::9a) by DU2PR04CA0284.outlook.office365.com (2603:10a6:10:28c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33 via Frontend Transport; Tue, 25 Jul 2023 10:28:40 +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 DBAEUR03FT060.mail.protection.outlook.com (100.127.142.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6631.25 via Frontend Transport; Tue, 25 Jul 2023 10:28:40 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 10:28:04 +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; Tue, 25 Jul 2023 10:28:04 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , Subject: [edk2-devel] [PATCH v1 11/11] DynamicTablesPkg: Fix referencing of CPC token Date: Tue, 25 Jul 2023 11:27:58 +0100 Message-ID: <20230725102758.28132-12-sami.mujawar@arm.com> In-Reply-To: <20230725102758.28132-1-sami.mujawar@arm.com> References: <20230725102758.28132-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT060:EE_|AM7PR08MB5416:EE_|AM7EUR03FT056:EE_|AS8PR08MB8565:EE_ X-MS-Office365-Filtering-Correlation-Id: f12c32ca-3003-49b1-018c-08db8cf9f2d2 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: kC2Mldgqti3nAvvjGQ/Nd2kTjk/Elm3CC3IHrwtVsYxDBc3ZRetP3z0aH7pkxbYWvlzvptYPOZYEdi3SkvDUIA8RyvcQSsHR7R5stlsi7RyzPftUBjP91rXL0rOzMjpvKUiFsVrMwJBiabwemHMFvnlzxxC4zFIt5RkKo9Cu8hIeZDtm/51hyWwXalxJLArVF1oohXModjvszCHti5ta4TuqBwgPvW41u2P9BmQv3Glv+QAwmaQ/4/lZFoydNnfYAJE72qJLZm59/fCaeUHcBwC0H16htAAuipO3+Wn9FlQtL0JWox7fNplagkRm2wiE4/9onP2xLsbRBTbKS6VBg84yWPScyjAjakHSWXM9qpJcSfiyGF5MHCNkACgGz7ds99hqxKOzufqYUa1K6aDbxlQaj6LguvcpuPZFhC0oDOHtNHzh2weDkCroejPrh2E+d15f9T4ViOT6yGlkTf5ENMEjwDZ32gF2qSCCR5n12oJO42PtteNALfbFe88jBPsF4kt5AeHeFWARz4PqzhTFXB1wflRX67EpH2AR+TZIlFn6OFVyYn361H5JjsZTgPC3U/hGoIi6vrusenTnVTXTJTSX8n8BE0j0QVVZT3Tk33L9Tyw9ehEOlB+dP/mdyjvC70cEbwSF+JaeYky3PhAnDJx6Ogdgi0qCyFP5d8+/6IhIIdUbIn7OcuyLoed0pkiqqoKIgE/p+UE7f4cu5DoEkNMO1f+5CPhT5JLopeK1WMEZjEJGHOttjbXIyzhdE40I 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:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(82310400008)(451199021)(36840700001)(46966006)(54906003)(70206006)(70586007)(426003)(2616005)(47076005)(36756003)(83380400001)(36860700001)(40480700001)(86362001)(82740400003)(81166007)(356005)(478600001)(336012)(1076003)(6666004)(26005)(186003)(7696005)(41300700001)(5660300002)(316002)(2906002)(4326008)(6916009)(8676002)(8936002)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5416 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8a156d1e-6aaf-40bc-7fc9-08db8cf9ea2d X-Microsoft-Antispam-Message-Info: jieUpNsQ6la/vug/2aeTubuVMACHTxvFtxz/2I7xc+qIAwEmwq/PF/YsRjNXL91yOnZ11hl9LwhKecatm5/kip4DcrCokHQvVbQ4pu51hq5MOeiD5aEQfKXUumxzHTZ/1qfs+BCDrdL2V4JFcWbZGpwbZPxNTHQ3HuwiMpHj1uwnc1UG6iDgBb4so3679A00juRjIjwu77Oc8K5grIXIY3LWcHK+NdAk1WM7ULnoDU/FDw8Msvi7gE39MgSnlpmYZ2fiGpIT0009grfEy7bPKxLX7A1MV9n5xYtXsjoBpiz1KGJ+IzdF4srvvNJegRDHvJ2tefF764CGjBmW/upA6C+eH8wWkMo1XxyAwhz2ar9sx+rQT0u1+0p58QOZ33axqj3IhbyT3KYdxXECPLOViJIB8tn4fm139hvozCtUZ32DNikmNXXoF57fkl4hneROGo4gpkF4jB1Ol+mTKbTxcBQBzeXrDNvwvxISpomQmW/N+5CnBGHa7csQaLqpTWp/1bdDBI3/jjye0BQu197M/xP7pASMlTXBXxmmYeoHAq2EqWHIKHaOkcs2hP0YLxyCSC6CFWQ/3826UG6j3966Cyw/j/TKL1MRUVqTei8yXuB5viH9qLIwwfMHfTQyGJVFot5RlrbHON+Ug0b5w7KbH28LU5uFpylZC9cV4R/MGhvO87egO5176epf8LK3aQ/Xd56Te3qbGunaFapBlShq06+Kta0hy64jBVdolIZXIsJMEeeECw8YcW7c90zEpMrG X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 10:28:55.1183 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f12c32ca-3003-49b1-018c-08db8cf9f2d2 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: AM7EUR03FT056.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8565 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: EAfKM0tmWPGDyCDj4W4Ptnhix7686176AA= Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="t6dgX/oV"; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 --- DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c index 6fbba12a010bf987797f0901a032735e8e0be598..8228c7845ac0c26ca0f319fd86abf89bb3bfaf50 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyGenerator.c @@ -1298,7 +1298,7 @@ CreateTopologyFromGicC ( // If a CPC info is associated with the // GicCinfo, create an _CPC method returning them. - if (GicCInfo->CpcToken != CM_NULL_TOKEN) { + if (GicCInfo[Index].CpcToken != CM_NULL_TOKEN) { Status = CreateAmlCpcNode (Generator, CfgMgrProtocol, &GicCInfo[Index], CpuNode); if (EFI_ERROR (Status)) { ASSERT_EFI_ERROR (Status); -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107238): https://edk2.groups.io/g/devel/message/107238 Mute This Topic: https://groups.io/mt/100347389/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-