From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (NAM02-SN1-obe.outbound.protection.outlook.com [40.107.96.106]) by mx.groups.io with SMTP id smtpd.web12.15623.1663554145772416107 for ; Sun, 18 Sep 2022 19:22:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=EhwfCUMA; spf=pass (domain: os.amperecomputing.com, ip: 40.107.96.106, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hp/G0N5f1eLdBc61ITkmyrVfRrI+HgiUoJwXfJjxzctFAESOktNKfBjoUT7crVx+G7q6DKnj9EZqmlFXJm/b6BSJCIjXQjNBv2Rz1PbPaXBwTgiwh+Q9bEZ3XrH97VOczaa3SbGDB0RFwkTN/Tbb1CSPRsFDLa3du0VhcBbFSAtPsF1UrMAuQlHWIw8fymZh+XqJTAuaUSSQ8lkADe1JO5TZHtik/5mczqsg8tBYVH3XnM2rGps66iQ5vcM0JnHiADiafp5ugCJbPuIW5+zRelB2xz6tz3xP5RClhieTXwey93dRFhS36Ot6r+8+uW8UcckVfa9dmX9/B18WrPELVQ== 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=yTC3rean+q3TcATb7LhRF0j98b0J8FoWUlut0N5HV6M=; b=DtsiIPDz6YqtX7qc1swECwLLUOK06DHYAHAc672QXNNobDnVcOnds4xkzSw7lClNzxCrVdGtp2jPuK2gTn4bnQF9IyYhr5ArccZjHD7j6H9WBwCEfN6d49rENCE0aK5KJpm9Bbls6PfZ4I+FtbmkbhVfW0LNEiygyqrSMwFst7Z3A0l3H+XvpDh0a/ZSwrdkMCZQHwQm6agk7Y92lv9YACnzJNYK31tE/ul85+z0Wzix5cYf7RVm9DZPBHiU5rwhGp9T9WEi+XSvbKOCJ/ipCaI+f3W6XFAxy3sH73A6GUffQUDCnwgexzhdeCp32YyI0ONFjq6DO1IFz99F8HIytw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yTC3rean+q3TcATb7LhRF0j98b0J8FoWUlut0N5HV6M=; b=EhwfCUMAkRAnIBiV5309434IkCs6Qw0gEPEtEkaRQ0rvB2CQTLIF4hJiep6iITHYkDEUC0gE3qupEL6PDZqPF7H1qkoCdqFd5egdN5P7zbC6HDT6kZH33CEfCHk0BPO/N4DM157OuDINVr0DY9bGe1IEjTwBK3NTDN73taBuBu0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by CO1PR01MB6791.prod.exchangelabs.com (2603:10b6:303:f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.16; Mon, 19 Sep 2022 02:22:24 +0000 Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::441a:930:ac15:1ce9]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::441a:930:ac15:1ce9%4]) with mapi id 15.20.5632.019; Mon, 19 Sep 2022 02:22:24 +0000 From: "Nhi Pham" To: devel@edk2.groups.io, quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, sami.mujawar@arm.com, quic_rcran@quicinc.com Cc: patches@amperecomputing.com, Minh Nguyen , Nhi Pham , Rebecca Cran , Ard Biesheuvel Subject: [PATCH v4 5/6] ArmPkg/SmbiosMiscDxe: Remove redundant updates in SMBIOS Type 2 Date: Mon, 19 Sep 2022 09:19:49 +0700 Message-Id: <20220919021950.2110333-6-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220919021950.2110333-1-nhi@os.amperecomputing.com> References: <20220919021950.2110333-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: SG2PR02CA0071.apcprd02.prod.outlook.com (2603:1096:4:54::35) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|CO1PR01MB6791:EE_ X-MS-Office365-Filtering-Correlation-Id: 7fa1c80d-592e-4069-8fce-08da99e5c9af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iVqedU34K0+bJsd6DTZaGad8RECCuUnBdSyJulGmGs2Ohlf4sTHcj8C9g4uYdFujL8oPZPGgs7IB694+dV91mYkd/OqCucUxTw+MCvfypXQJtc7cLwwcLP8rONAaD7Xasoxi+IzbHSJFpn4XpPzFFCTNVNtoZHUF4GMGhYFIKrhN63PD5+gGmZ/n2lqyGwDh2t/zDAQuQD4vhfRamAWPeq7fHBSiOid87JxHua/smmB9nzO4PtFp1DK6dfzVI4W2Fl49/36UYoMpXSjI1qFJfve5fTsXdoHimL23l8dHixrRu5L9O209MDl+kvoKexlMS5lnc7gfcV3vpLmOc1aDBanO/zab0P/og6hTPBVqK5N5pIHwjvH7bAMc0/1ekaxw3tBsRH1TRIG6UShwOZJPy9qWWoqxDnUHTs8ebRqaJ4N+JbIepV6qazmDw1nLVpfaNrJxjD0q74teNSF08uT4iZ8ydkv0I/69s/jbxlsy9Kf2BB5Z8dxZHDjqSFTyugFM3WZ01ORTVp5KYV6VvvZMNfj/LdFrd+J8nnehAS6U0P87G93dfKVrCYUDpKfe3F4wiUnVAJhBzGpRBnsLj20tZQIVREmXNLsYJZXsMHBTsc21knKEDHwS8nyl1YMWbmQbZJ6l36+P4yjPapeUjRRmkcrFzsq3WPjmMQVA/ALctCDpAf+CDIh8/zvDd7e0GaUO/FEhGuc+yh6WqltBY6YosWUzDp1vka1rs+vdd/AWQ5j5W6HpGcfig26/YnNpFGnLYWb33MTdK6aKmYKzYlaeyw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB7287.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(136003)(346002)(39840400004)(376002)(396003)(451199015)(66946007)(5660300002)(8676002)(4326008)(66556008)(66476007)(8936002)(54906003)(86362001)(316002)(19627235002)(38100700002)(38350700002)(83380400001)(6666004)(41300700001)(52116002)(6486002)(6506007)(478600001)(2616005)(186003)(1076003)(45954011)(6512007)(26005)(15650500001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?bA6DCV8S1o7UUW0BjxknVRwE0cLC2euYd8fjtBvEbBOSjVvJBxEwlAG6HY2k?= =?us-ascii?Q?VDt3+9t2hPhxkQttz6Z4gek3LlChKVIb9qvEqIAByXV0PIkFxxX1QnZRA9lg?= =?us-ascii?Q?NpJbiz1iHG4w3zz8afP8aDMQ5Gusx7Fy82Uuv1akIwnuiLZTNVcbumzrbZ1a?= =?us-ascii?Q?RMs7KJmPMjwH5hyqtY0aHU7xbBEZzopvwU1xsVJQfBckf0iJZzG7iO6RG2Z3?= =?us-ascii?Q?l+fKkHZGFpJP7ZzPCqQ7CoNkJqVc4OWR36W5lVxmCiSFvEjdnPlDC5EKLRPD?= =?us-ascii?Q?XyI2x38d69BXkotARLLqGY8mxCx7gfRfzoIkolg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2bWuDmfmqNqJ1vB84bIh+IBksUd0qG5oEcg/Z2eKi0GHccWZilp1hO4QV?= =?us-ascii?Q?VBFIPmOCv5wb8A3XuRQZfvwqkL2nCHuopMd543XMN1/+yJprDWggxH4zaw1f?= =?us-ascii?Q?XZfMv7poYxm1ioqZRBaURfvQYb7s+bvK974rHB5Enr189mIigISYSP4SvFHJ?= =?us-ascii?Q?+nbw7xFrpwmIHyTzKih6ybfG4+5fBIaZDEeJBhtrylGZleHh/ZWQqThsygEQ?= =?us-ascii?Q?RfM2Kksi2yXBL23J7jfClBHuzeTCMQwM8gtm+RlCdyGbz5GgsM6Ux6OO27NE?= =?us-ascii?Q?GzO+k/1Koz966xpZuyI0lkZ8BZOu89Dyiz94s5Y2GfnQA2XG+2Vulz1swcUx?= =?us-ascii?Q?NmYjTxdYXDKdZ4S14VzWua8rpZzYxL1BnIXkr5OO+/dWC7AEbnC5KCwPmap4?= =?us-ascii?Q?Na0ccDpZ2mqYue5lSnW3EGA=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fa1c80d-592e-4069-8fce-08da99e5c9af X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2022 02:22:23.9301 (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: 6e6r5FWfbcEw10GYly5f75OD53MnzWKgBBqt8fIQ/2AW8nl8IoHWb8KNyYnluzeOiTxvQgqWCMHIsjo5LOay6NYtvqmI4LJg19Zazyd4TBI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR01MB6791 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Minh Nguyen This patch removes redundant updates of "BoardManufacturerType02" and "SerialNumberType02". Signed-off-by: Nhi Pham Reviewed-by: Rebecca Cran Reviewed-by: Sami Mujawar Acked-by: Ard Biesheuvel Acked-by: Leif Lindholm --- ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunc= tion.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManu= facturerFunction.c b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseB= oardManufacturerFunction.c index f61546955f12..3441e7798860 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacture= rFunction.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacture= rFunction.c @@ -120,16 +120,6 @@ SMBIOS_MISC_TABLE_FUNCTION (MiscBaseBoardManufacturer)= { STRING_TOKEN (STR_MISC_BASE_BOARD_SERIAL_NUMBER),=0D SerialNumberType02=0D );=0D - OemUpdateSmbiosInfo (=0D - mSmbiosMiscHiiHandle,=0D - STRING_TOKEN (STR_MISC_BASE_BOARD_MANUFACTURER),=0D - BoardManufacturerType02=0D - );=0D - OemUpdateSmbiosInfo (=0D - mSmbiosMiscHiiHandle,=0D - STRING_TOKEN (STR_MISC_BASE_BOARD_SERIAL_NUMBER),=0D - SerialNumberType02=0D - );=0D OemUpdateSmbiosInfo (=0D mSmbiosMiscHiiHandle,=0D STRING_TOKEN (STR_MISC_BASE_BOARD_SKU_NUMBER),=0D --=20 2.25.1