From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.110]) by mx.groups.io with SMTP id smtpd.web11.5797.1639627046484717851 for ; Wed, 15 Dec 2021 19:57:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=mtWvL3kn; spf=pass (domain: os.amperecomputing.com, ip: 40.107.220.110, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c+FKtR5nE6wTbAR8ZBpZuFEZhXAFTkNilnZ1RKLX6d84GKkfNwpfhZOFaLXNzr5oOP0xUM+W2ZUmR9sjNPHUflQAbYUVPBbF9dW3zSL5MjU8vYvCTAyzRFyCqarMFGRyTz7e5dRNQt4glZ8k+MRYRhtJZyIy04/gaRsGKOEVFNDwxbhoChudJJxDrWxOdDFKQpWq7+Shm6bOfjoXzeHkzzBcjbFT5O4K8LpLNPCaLp5kipViqfp0oUP3oQ1DGbgGLptUhQtZ20rlNrdJeWIrV0xBRtNRFVEZCB4SwJeOZ8nCNgGQOc3ZevWnGp+EqIfr31OKVN54HvvW+j5kIwsI6w== 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=JHn8scTlhQ0B3mC/m3czTxj5nFM3aHIcqiKaKOR1bC4=; b=TIYf1mGBEs2wq7x9lSV8ZSR5c6cJNf+JXD/pmOksIBA9k3XgNz1FxJiZnAHL2piIWa7MWYMSTOZ6K9GCM7UXTU2XZqwU9BF1TZhKvZHM34bsxhbBlUdMdEvqYuyOhOc1uaaXgUA2PTslRtcKhpatvGSx3jY6iZ87QwVjxbHC0cZYhh8ySmSwEIY/3+WFmAr6Vb2h5sE1/PrgRxPWCTRxjIGlneLgrjD2sw84ekwvvHcv9XYIJeOhHKF2tmIbavDEo+A/avrfh7vKEDzlZicjxx4gcZY9ES/5h1upcGf9S+HkxsjrHs+5MshmHJY46lmS824BtXTy7/4JaX3YUB9W9g== 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=JHn8scTlhQ0B3mC/m3czTxj5nFM3aHIcqiKaKOR1bC4=; b=mtWvL3knYDSTqPZNIeLP5zPtpKvzuBWzFS9yyHi/3Jpz/zwXdnDG3I+8i0MjUWactcEIkC8c4Wtgf4/1sec4bc/cTFkXCCAXtBlHd683BZXxZU+QRp9MpmI+awkeb5bD7LtfWZRaVoGKr4IPUOb6xRntUSZCh/biUOU1iEPaWJc= 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 PH0PR01MB7381.prod.exchangelabs.com (2603:10b6:510:100::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Thu, 16 Dec 2021 03:57:25 +0000 Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::b519:e888:c4c8:b552]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::b519:e888:c4c8:b552%8]) with mapi id 15.20.4778.017; Thu, 16 Dec 2021 03:57:25 +0000 From: "Nhi Pham" To: devel@edk2.groups.io CC: patches@amperecomputing.com, Nhi Pham , Leif Lindholm , Ard Biesheuvel , Rebecca Cran , Sami Mujawar Subject: [PATCH v2 0/3] ArmPkg/SMBIOS: Update HII string settings for SMBIOS Date: Thu, 16 Dec 2021 10:54:52 +0700 Message-ID: <20211216035455.977400-1-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR01CA0012.apcprd01.prod.exchangelabs.com (2603:1096:4:191::8) 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-Office365-Filtering-Correlation-Id: 87274aa1-2056-461d-1270-08d9c0482b8a X-MS-TrafficTypeDiagnostic: PH0PR01MB7381:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xPZZoTXzfG4ruwlWNIrKs9pfqbbf5toHiJqJOhXjnIl8o0YOxXCqaOzW/SxaKCZutvoIkAUpcj7lZSFQIIs0EtWbbbTaCI0fZwWwfuth1hsfyaWFdONsG7eGWsjzQyAPKm2KSBf0/gh03YiNgr3cU0CL9DXfh5Fu7kT1W3JPU8sNOUGm6ryPDHMWGzIxDaN5Wyabj3MEJcdwBJRBxo/JC+uaBqzrt0SDXD2Bw/IZsksONlVrVWoiQyz2t+Gx5sYxf5Cc+9DBXHcovugEKyhni5/CTshHGeLuvW69e6+lt1vFSj1cZ3zWS7iYzt7ejdDWL8fTCtBDxMxVPiOLDBmFCez84QnkTWBHmABixy065SDO7W6dKFJnRn6OTQH6YKShLa6uXtDhDaWXsKPe3rMOVqSSPppCVbdO2q9bq6zb3Mm5YyCU+AXrDHchh3oQvAYfFbeayYzmYUxxjWJYFl5Tc+VEVnAqV8HpsaSqRNxyMPvkSZ0EjHZJm1osSdbi1UyLEt4C+TDuxqoEQkQLhZ8YSn+DMeRu8I9B2O9ZjuRSHAEm3qVBwv6mRornhNRDk6W3uMh0oFeRsXxjG9OjXoZfzHNZOT6IGF2z+TRdEyIlNHWQZTyxUoOBcLjE0fmR0akJiQKSyL06L615iVBMhlo9PmlPLfNAQ+90Mpwuuxb8JRUABINkl4c163q+9fPddN9MVifGPLtUCBckU72SfxLLtQ== 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:(4636009)(366004)(45954011)(6486002)(6506007)(8676002)(5660300002)(6512007)(1076003)(83380400001)(66946007)(2906002)(86362001)(2616005)(15650500001)(508600001)(8936002)(66476007)(26005)(4326008)(6666004)(6916009)(66556008)(52116002)(316002)(38100700002)(54906003)(186003)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xD3qfmYw1GehcgCdUL29UwPhNQxtwa1Se7/YKV35AVzFOQRXAedhIDWg/TdO?= =?us-ascii?Q?yl/hv6Uk5g/Tn2GIObLwjsaWI6wIlQe8A8oSAB2t4nEbLi8MU5Q1IiCoHjtH?= =?us-ascii?Q?87gC9g/DqzERCPNmsWjSGATVrJgUnM99GFieheafvPHscIrKTt+msQwf6j0n?= =?us-ascii?Q?5VPiYKwAvWCXb/aoHHnwCOwg1W4w0eHiCt3W4wccWQerI5wrnUfqpX67YyXb?= =?us-ascii?Q?O+DX2S/y17W7DZX9S/zXSlU6p+DDRUfnJSav4JD/68Lx9aukjABAEpK8lWsc?= =?us-ascii?Q?PJxr0NoklVN/9tNVuo1R68guk0kfDrg+plDWK39+EC+MkAA/Pst1g/ONW/RF?= =?us-ascii?Q?ZUs6lzIZGuneSzVVpRJvAaYKsuTx4sMQiPkO0HhXdxdHMNDxojMZAPTNPjSy?= =?us-ascii?Q?ThYROSr2yYDAk/30JOtFG7uH+o7uSvWfRKicvrjmy96ajo/hd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oOBfoKGaGkYs1E/XIPp+W9GO9cVVkc7wB?= =?us-ascii?Q?JoBFK8tEPS4deRnx3R9VADeNOFT2ZMog28yxaxgKRDKLGiqp+PMrMSzIxyyH?= =?us-ascii?Q?1FOucSga7R1Qa4CbDd5Ub201L4z80DqGV0eIqWx4Z5nawwZiGjtOWyIIiRaB?= =?us-ascii?Q?0XWKSh9/2f7gLUaKPORAylQ5IrV5yzySw5CAI6Ry+po60LkSuEJRLA2/wht0?= =?us-ascii?Q?kTiKmZo3dzDPFPfABa/5BjSe+lnipiOdc9jlat4lJEB2OafKoIdsyOupgF6K?= =?us-ascii?Q?EPEBrV+cJnX8wOrK9OL+l0gGiSNHfSGNHC1zbKKicQy29UAgvRKEJo7gZE44?= =?us-ascii?Q?IN7HkPJQZrhO4ux0j6Drm9DMvMI=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87274aa1-2056-461d-1270-08d9c0482b8a X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2021 03:57:25.3876 (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: 0zjOxy5aNIyEnB2Ak4VyKwHgMkmyAqoH3UL1NzDxb1IctVpPzLcy8rTaJnUFkFxXMoRigwfsMqi+TWOvubl/bpWnC/ZBd1BswgapCa81hRc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR01MB7381 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patchset leverages the OemUpdateSmbiosInfo API functions from OemMiscLib for updating some HII string fields in the SMBIOS Type 1/2/4 because they may be updated dynamically during UEFI booting with the data being passed from the pre-UEFI firmware. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Rebecca Cran Cc: Sami Mujawar Signed-off-by: Nhi Pham Changes from v1: * Change to use FixedPcdGetPtr() instead of PcdGetPtr(). [SAMI] * Fix coding style issue after running uncrustify. [SAMI] Nhi Pham (3): ArmPkg/SmbiosMiscDxe: Remove duplicate HII string definition ArmPkg/SmbiosMiscDxe: Get full SMBIOS strings from OemMiscLib ArmPkg/ProcessorSubClassDxe: Get serial and part number from OemMiscLib ArmPkg/Include/Library/OemMiscLib.h = | 5 +++++ ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c = | 14 ++++++++++++-- ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunctio= n.c | 12 ++++++++++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunc= tion.c | 18 ++++++++++++++++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturer.uni = | 1 - 5 files changed, 47 insertions(+), 3 deletions(-) --=20 2.25.1