From nobody Wed Jan 15 08:33:23 2025 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+104980+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+104980+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1684332854305922.5485590549616; Wed, 17 May 2023 07:14:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id RkQuYY1788612xlDGg5WbMX1; Wed, 17 May 2023 07:14:13 -0700 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.125]) by mx.groups.io with SMTP id smtpd.web11.15349.1684220916372194507 for ; Tue, 16 May 2023 00:08:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ArqwEYkgaRUafC65a5HbYOBktDaQgJGkj2e8BEc+52FrHvABjitOQj/rFEFoFoTe5s+Z59s3XNBIyEBrtXRvbTaT3uXH8loTSBebUFrOLqmZPrb+6Cb0R/YZI31C9/x6QnRc5FdRMkewOKckCwnNnc+kCKVZP9NtmZAFjgNT/wrgOw0tzzP/lzbYidXQZJFdt5XALDR44wd122CjEsRx6W6ThMr6heLwq9HuNQzLEYH/MsFeqhCdUWRhIr+f8ru2wxwRg38OjhoA7FGOA2z9uVsKSKOIG6RV3AdTy/cv/G3ehA09LmtYLXXC8QVcl6Fl9DlXAtCOs0PmQhmx+HJciA== 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=NwVDjNKTqgJsBxMSasy5zxXpN8b3ZIUPlwRa3elNa88=; b=G2+fnw1GNk2py9Z77Ewc1HOySJ9L2MWs+In7MT0dXW73XlgAPKvz5mZvg6Ix3h6itkWxucso+lwB6NONppivK8rSLy0xizxaFbUQXiA08UdTyRDe+AX2bfi7v5C+HXAANq7gOy3lfWyEwvKur3edb9VtJNckWYrdUKayNSiDKk3nDDeunsR3uWXEWXptMMehKSWn4YRLD8OVKp+z3pujuocy9feLSEXSXN0XfdvQUyYv8QMC1RazFTGCTTternIhk8upnH3cKgaIbNQg09eV6qLFe7HdBMR+T3oRap+I2bwutzT8fPFStMsn7+QKAnsT4QwvJWgR3cnjtX0f3qqKAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none X-Received: from PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) by MWHPR01MB2381.prod.exchangelabs.com (2603:10b6:300:46::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Tue, 16 May 2023 07:08:34 +0000 X-Received: from PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1]) by PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1%6]) with mapi id 15.20.6387.030; Tue, 16 May 2023 07:08:34 +0000 From: "Minh Nguyen via groups.io" To: devel@edk2.groups.io CC: quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, sami.mujawar@arm.com, khanh.pham@os.amperecomputing.com, nhi@os.amperecomputing.com, tinhnguyen@os.amperecomputing.com, Minh Nguyen Subject: [edk2-devel] [PATCH 1/2] ArmPkg/SmbiosMiscDxe: Fix procedure to get handle of SMBIOS records Date: Tue, 16 May 2023 14:08:11 +0700 Message-ID: <20230516070812.3606476-2-minhnguyen1@os.amperecomputing.com> In-Reply-To: <20230516070812.3606476-1-minhnguyen1@os.amperecomputing.com> References: <20230516070812.3606476-1-minhnguyen1@os.amperecomputing.com> X-ClientProxiedBy: SGBP274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::15) To PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB8048:EE_|MWHPR01MB2381:EE_ X-MS-Office365-Filtering-Correlation-Id: 542cf069-06fb-4142-f0af-08db55dc5cc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: iQVqhtqe+E4zkEbuZksTeqVmG9VtxLDE+OnclFzMUQtXceAj2W7vEW/C2SyXdYo46ONSEa7yEcZaW0V979wMFntC5dYejvsslxccvtbrE11YgCTRaO6MUuIvnYrt0i8sJbuiz5k6LY+5R5ROd1/LHzD2gD5H0X2YwIxqqtTW9AfJ1Z/95IbKSDHuMrK3cdhslr3lU2/4axldDdqyjsySxPaaQj2VH73PNK1LoI/e0F6TEfTPp/XYz1RRI1yioe944cX3NSShvnOs4CTi/atTDM6YfWpk261j7e9kc+eMdGKgT3JVozLfQnyeMhg/h0+VN/ien9XGS5xprg8vkd8MDRU2kw709ava4d+R4jLrC2ALzTlG7TI74Y04xg62m6eMvMH/mjYGqz9igSySoFfEbqXZQ8vhi1NtlxcUVRytF3xhaHXMsL6u/foQVRFiBh91XrU11Nzi9S7SwbZetZhqtUhKpZ1q8h35/70cqgyGbZR9bQ6tAjQHujpc1R0oXOC5ZwPtfPmaaB5GzCvtKUDNq+UaEtQ0zKBI0tnPYxlvgCqZOuOBPnr4SuW1iGivJBiFogZfqRYjX4zUhdTsy2K8/32J5tpUUN7W+jwxrXTFifo7F4gVHruv0CtJMbDudG8+ X-MS-Exchange-AntiSpam-M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zck?= =?us-ascii?Q?ijYv9hDeWJRcvE2CSTc4wB+ktPHnOEhYLpXXKO+nJKrjijFsf1cCVrq4lpiv?= =?us-ascii?Q?vQghO8Avl/7uA+ckt6F4ltHBxdJPTXgY9+qkuu5GoHchh7+ctHJ7L7I8r6Yg?= =?us-ascii?Q?qhx2Sx6V7P9AY09r0w55YOlKyKZO9EMxjAiMv+iASQSSlCGWfffIHAPX1R4h?= =?us-ascii?Q?AMYkVRdHUWCrfAK2IPvIK8ojp3fh3Bi+uXyhnOIdmIJ7LKoY1YmkrXzGA1/h?= =?us-ascii?Q?vAdGAKhdVzZhGXI+gIR8RHfzbremq1VfU9RrHb4X3T8Dr64T4GaANhonW0H4?= =?us-ascii?Q?n7xxMUThS3uPSHzHdqqEx2lUF25FnAsEN4OcElRGAvpgUFzkifSHf4n25iJY?= =?us-ascii?Q?vh6hxMM7jafCWj+Hcj5Mpl2PTEgtR0SlO6DHnSF5nxnVFn6MyN7tKE9qvAqN?= =?us-ascii?Q?bgw24kmoDOaqa9vE98ed86TYTKYUN5bIRHgxQ6E8lY0vGuPt/gM1KrpubSAX?= =?us-ascii?Q?riQOadBuJoDEEEQDn4y1qX87UZskkgqdlblZ8Xyx7PHLuJS0hFOXA0/kwwYw?= =?us-ascii?Q?WoHOzhBsy5oe1DOS+pkbE972xqevFSBWad0E86PepVoO9Jfq30xvnRrmy66u?= =?us-ascii?Q?lVbgyJ8q86GUtMNJulM0pmhyxHUbSfXwFieDHWoAoPPGwA4jMKuAZMQQ0Q8q?= =?us-ascii?Q?mEmVKeQhac2eCji8QVMFeSe7lArxrR4J3YnRvv4CBkO11XKAJLpBwrMpNBrN?= =?us-ascii?Q?Ka0IpLfsL1hDURlftDrcp6ZMqGamI6pnOOIGAtXcbdE3kt1ZFdgVXC2/RdZg?= =?us-ascii?Q?lmCIypOEHJlKH5TbpCGuVEdH5TJ0DwBSxhrWE8qW/M/G?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 542cf069-06fb-4142-f0af-08db55dc5cc4 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8048.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 07:08:34.4154 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ur5L6tH3biwbCqwQ0/yqXLslT4MAYJ+VOzIFxhWkTWrXyhxSUD4uLyX4KzuBV+GFwyUcAyaHXK2iFS0i7T6LABdwSpDRlJAOPivnwncOPOmEHx1mjxxtKrLLfg8zfMJ6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR01MB2381 Precedence: Bulk List-Unsubscribe: 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,minhnguyen1@os.amperecomputing.com X-Gm-Message-State: XC6hn4DeVFXh8FTp6YqVNOjbx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684332853; bh=NG0tB66GRUiZJ/85OgdzVxGETW4GYe1G/Vv+eZ9jqAM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=XtyRBqaGE0x+5BS7qRXHoDA2Qu7xSju6bAMGA8p1/j5JWoz3+P15Sy85DVk5tZr6E7f fA5T6f7/SJ302i+QO43nwkc3EeDI6zccJ3jk+ocsXcRiQX5H7tPnwsz1oIlH+r7YwJccC 7AcHEt5AibwqEwXpi/PBxnp7ahGKIxZ2XMM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684332855255100005 Content-Type: text/plain; charset="utf-8" To iterate entire SMBIOS table records for searching specific records, "SmbiosHandle" input need to be as "SMBIOS_HANDLE_PI_RESERVED". This patch helps to fix that. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Minh Nguyen Reviewed-by: Sami Mujawar --- ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c b= /ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c index 3a5626b50c0d..7250da02b3ac 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c @@ -8,6 +8,7 @@ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
Copyright (c) 2015, Hisilicon Limited. All rights reserved.
Copyright (c) 2015, Linaro Limited. All rights reserved.
+ Copyright (c) 2023, Ampere Computing LLC. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -159,6 +160,7 @@ GetHandleCount ( EFI_SMBIOS_TABLE_HEADER *Record; =20 HandleCount =3D 0; + SmbiosHandle =3D SMBIOS_HANDLE_PI_RESERVED; =20 // Iterate through entries to get the number do { --=20 2.39.0 -=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 (#104980): https://edk2.groups.io/g/devel/message/104980 Mute This Topic: https://groups.io/mt/98948707/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-