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 C52DE740046 for ; Fri, 22 Sep 2023 14:35:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=k4eYo9aDcnXoTbdXd68fIrUxLH9CrCFF5lDlZaiuPxc=; 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=1695393346; v=1; b=C4PjUsXEC9TsTXAQQxzW1hyecWFhH/7bZysR00MfUPbdmW5hDiiRpjnK2Y+7iR08Kih6EtOJ w+Gw4L/WrG3zZCOAND01I/Mfn3fLkuQHW9x5nAqZ7hhRcBcr2KOfnmmFOXPDZBTySVHNmvYwKfA j4jTomBWxQNN8s9bz2QtiLKs= X-Received: by 127.0.0.2 with SMTP id pxRBYY7687511xvKbaG5YcN4; Fri, 22 Sep 2023 07:35:46 -0700 X-Received: from EUR02-DB5-obe.outbound.protection.outlook.com (EUR02-DB5-obe.outbound.protection.outlook.com [40.107.249.45]) by mx.groups.io with SMTP id smtpd.web11.23369.1695393341536309299 for ; Fri, 22 Sep 2023 07:35:41 -0700 X-Received: from AM6P192CA0037.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::14) by DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Fri, 22 Sep 2023 14:35:38 +0000 X-Received: from AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:82:cafe::2e) by AM6P192CA0037.outlook.office365.com (2603:10a6:209:82::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:35:38 +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 AM7EUR03FT015.mail.protection.outlook.com (100.127.140.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20 via Frontend Transport; Fri, 22 Sep 2023 14:35:38 +0000 X-Received: ("Tessian outbound 1eb4e931b055:v175"); Fri, 22 Sep 2023 14:35:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5ec66f417b108b62 X-CR-MTA-TID: 64aa7808 X-Received: from 07c6fc8f0eda.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 51357E46-E24F-4A49-AA78-80D2AB5D053F.1; Fri, 22 Sep 2023 14:35:31 +0000 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 07c6fc8f0eda.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Sep 2023 14:35:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=biasv/DhMRVCirgGHbYhuqpLZi97GNxxFst1+p8xabyyaTqKvxf0MpuSKL8YWyToxDIJ7ig36AniEF7ox/Q6vlvnvJUbGmIjtKjghA7fVStu+njPApTbDyyJeZKWt/TDp9DlzoBjoapPAE39UmUkerJhRvaNjEc4tXGIbaRWVUe7Bg5M4+NBHbx5EgVkbJvDXY1BsdTufRQ7KjVbRz1R4UZMJjsJPwgv1Dgo5rX+5jCNdJ3y3/HiNkmqc0YdcRtAGAlOLZd5FEPaAZbSarm+iE7FDasrdosu6Zgy0NkCS40bJOMPu6fX+xOWc7LHEY5BMx4sVOqrvYI+RZybZbgANA== 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=v5xckZOhsA7capk3UBcRp9DnPELzATchM7FuXkkdCsQ=; b=TlCPua8jcTUS9DJCc2Quwws8bEY1uwj/pJXCRERkZp0TXSiZWH+DDixO1PKYjKflZ5lLhjKzll0JbEglQ8GtUfFJzNmckGCR45WSl8S743w6Z+/mojSeDS4Epqf07Tz2xtP5BycAoTknrfd3YEpMMDmgiIeT+ZzJfXyPhM2f2zLIBIzZ2UhTvZYS9B9xUSQB21Vda8c1fsQ+duOAKQ7tNhNUpTuJN2aUkN9BeiVosxC6SULB7rzopuYvgLUKh2gi/Xl6kby8UMGlxV+IO2pr0v7Nu6Zf01EwzHsVmD1WEI8EEgGNk2P9kDY5TAKn/D8z2KAIOi8DTDTi42rBy2gdAQ== 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 DB8PR06CA0059.eurprd06.prod.outlook.com (2603:10a6:10:120::33) by DB9PR08MB9756.eurprd08.prod.outlook.com (2603:10a6:10:45f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Fri, 22 Sep 2023 14:35:25 +0000 X-Received: from DBAEUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:120:cafe::76) by DB8PR06CA0059.outlook.office365.com (2603:10a6:10:120::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.30 via Frontend Transport; Fri, 22 Sep 2023 14:35:25 +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 DBAEUR03FT063.mail.protection.outlook.com (100.127.142.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.12 via Frontend Transport; Fri, 22 Sep 2023 14:35:25 +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; Fri, 22 Sep 2023 14:35:23 +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; Fri, 22 Sep 2023 14:35:23 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [edk2-devel] [PATCH v3 11/13] DynamicTablesPkg: Fix referencing of CPC token Date: Fri, 22 Sep 2023 15:35:14 +0100 Message-ID: <20230922143516.4764-12-sami.mujawar@arm.com> In-Reply-To: <20230922143516.4764-1-sami.mujawar@arm.com> References: <20230922143516.4764-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT063:EE_|DB9PR08MB9756:EE_|AM7EUR03FT015:EE_|DU0PR08MB9155:EE_ X-MS-Office365-Filtering-Correlation-Id: 731bf59b-52a3-4549-72c6-08dbbb793090 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: jA+iCCCbpPuANuHUQyo3TJH5Hf42W67GLhb4zUj87fQMKs6Ck+xspFMM0552ZbsrWUObcmmrKFB/5PZ6L1RT35U4m1Nv2RxMTjBikkEp7B2m60jQglar+E4l8K5bXGZSi2CRIExm2iI/8OiDJfi+2/88Gz0G3XTNzfEe7e/RxB8gIlE8Cn8CJH6SwJ4LdPR9mBZWw16rurekMTRGhYZLIPtVWiQIFQqsRRiDxSJpnLB1IBhAvBpq/I7YEn6otuLYTTAsYAKwaJd5Jtc60bRFips8I+UmJdb52pA5LAWgVlLFeYq7Ob8BdCSSp6Cp1DmOcRiHyAQVOxXVsJmn3BbnLM1cZUg1zCwiP8mfx38XeBNCgnOtAcKsjQFs6/RCL7T+qZrH2e/KOmDN1rdEo4gj64VZz3Y/xgKxMkujd5LEganM94wYSTpzVMOZBntwtySKXB0+3VdusRvsKxNoeBsHSpfRyB+7xJs75WYBxX2UwDfgk1oBI6LQ96vNortTii6AqjVYJAe2X61cxzy8NqNjfwR4ZdHng32Xy7IECc52/fQ3eyNzhVYA8q44SxuZUHDBRv9fqxF/gI0ktNa6bMMlVv8gLXy+elkAvvKjAdy8iRbsKuWYDwtrhgORXWjptsj+PS36MHElJMZN+vWE01sXUVcvDJtdlzGiozlUErkaG8G+OA8aHcNZuSsbJO63WooBkqzkvAs6OINGPOipUQo2N2StGHcJcLjgFN7DJvIeE2ewSTN8iX3GDKcsAGEQeFiOk/hi1qzfOuhlrp/91FL+4WPNrSZGuuX/6hHWB/VNt1RzSWjMDKeyGM/mSaM2ctti 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)(346002)(376002)(39860400002)(136003)(396003)(230921699003)(451199024)(1800799009)(186009)(82310400011)(36840700001)(46966006)(40470700004)(40480700001)(81166007)(40460700003)(86362001)(82740400003)(44832011)(4326008)(36756003)(8676002)(54906003)(47076005)(83380400001)(356005)(36860700001)(8936002)(6916009)(478600001)(2616005)(1076003)(426003)(6666004)(7696005)(5660300002)(316002)(70206006)(336012)(41300700001)(26005)(70586007)(2906002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9756 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9e4bcbd6-0b38-45d4-3338-08dbbb7928ce X-Microsoft-Antispam-Message-Info: sMOYPpq+TZktLfltVxyIciDfbQTPfkBzgNc7hOMd8oj1teaQsVXU+Hqfj7YgVPspU1M2+KftaG4oy+4XdTAy6lwXqTIH24PJj8w4yR4GQeiTUgIJVZBTR7lUwFUG4crShwAF5dRYeYZR1GpiOGD5Dp95/eLX5FDgO8hux91EXQi0Me2fsIx5vI1x1rpUp1MIM1pJAEA+V7wmLT0xuOo6PtL5k5CWEHXoy+L7J9to2EBSakyqd4yr01OUg5xMyMJ1jTMSS1GtGeMuQcaOG8Gmp9giyKFNjRZk6hKPnvaz2xezjJXinQwGaTlNgqrSGKB/FQ2548TAQs0jGl60Lzmd9XNeX89WL7Th56mgLBaFW4nWFSTOKZFVGgyqakea/JFi4/PnctLf0oMi5b/lnuboS3+IKjKEsc7AdyKMleSHH+HWq9zv1jLJ/gspkJ2xb1Sy7INqroOHukdvrEfBWCDCvz8xXmbX13HCpJTbFrqKK/LtmtqaNriZ3cO5O3sDww+g8UysnHKFjgzMvabx31spxUq8Daj1LUlWiSjf/6UtKTcbx0ZHEKxRHWvz4GqGH590d5+8IZCPiu/nuX0YOctd0J7Vg4+Lvi0pAtcs8HlQhAI4XB/awnB/X8ojL+v/6K4IUUxf/GF1udI/BmLsnduNY4oprpUsz5LWY3/3ujq2j7BLH8n31ycHMZLA78P3LEOA7xx+dHoZ5g3t18jEyfJ87v0GsAye8oP7JC/vrR6xXUjmgozgx8Q2K8p/8Z8wqkFZL5uwq8pS8VMyDOA6SxBp2Q== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 14:35:38.2642 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 731bf59b-52a3-4549-72c6-08dbbb793090 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: AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9155 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: jWIUAHq8wONqzc16Eeofp7iWx7686176AA= 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=C4PjUsXE; 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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") 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 Reviewed-by: Pierre Gondois --- Notes: v3: - No code change from v2 patch series. [SAMI] v2: - No code change from v1 patch series. [SAMI] 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 (#109001): https://edk2.groups.io/g/devel/message/109001 Mute This Topic: https://groups.io/mt/101522268/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-