From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mx.groups.io with SMTP id smtpd.web12.71.1609801119080495371 for ; Mon, 04 Jan 2021 14:58:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=KNTzdgx2; spf=pass (domain: nuviainc.com, ip: 209.85.215.176, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f176.google.com with SMTP id n25so20055589pgb.0 for ; Mon, 04 Jan 2021 14:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dn/k6mE3w8jLWBywMoxB3knbb+kROJpM9MOLRYzDov0=; b=KNTzdgx2+c298827YlJij4fEAz/R1GxBZfW1Ts227rilvuKRglWANkTWEb7KmA+QOH zc+fR4atGH+XIyYZKBeafG8sH8ZRnV/oyk78G3uyM7/4rl6YAIljcbjvxacJIPwz616N k0sFZNUgnD+GYvfcWE2XN5cDCxd7o12yx9gmUL7vg+IriYBdgUi2ByBcMM6vYQtOfpU6 UyXVH8RRwNGWJecoefUwzmQGPri6DARWNJ28LuUdtv+60u8Ky7/ucynmKzBuyIjSj886 rodZOh4YXCGMMUEpow/87EdKCHC4a6fQjMVXwyyqb6yRuilvMi/NQbsGMihecU02xf/o MjoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dn/k6mE3w8jLWBywMoxB3knbb+kROJpM9MOLRYzDov0=; b=ebvpL5F2zhrde9VFN2G1bhoT7OUmW3k10Wjt6VraquOhSGzTT+Ld5bw0/CwmTnNURt Rmx5+VqanC/h9FX22eHSWdYUBYaGfmtgP2iaEeghW9dAeo+gE6PVovlclHj+ngJ2Axx1 E7L+2/vnUBWnA+ODcF1dJ5Qry3Oplt7rfuTd5jmdcPr8E28FC8bAmUwBCtnhOUZjH/zU uNHzWheV7ZSNpHqPoARMMgTutt3gRN4awnl3ZwTIM1US3tjcfJEPbVPaUNViNWE2TTn1 PNixU+SCpoU2HEihtA5Zhg/bDsG/BVNKsE21timujX+uytwCeg23SyeB48XKTkk0taYQ jUyA== X-Gm-Message-State: AOAM530/cr+KznwPLDnOOiKbFiXnU80bWc1lhzT/vbiFCbiBe/XDL2sq HysfMdUSWmqWMBwoKVMfpqvSmiINf2vIFqtwU3lkkNCXozVWu/lXVlFY1Pn+BwqzWd39zNi+Mst hOKa1OczoDpqwzzBUnCMpYH+Och31EoZwSRJ40CUStp5xfRBwREQCsQ2SegnD1XVc2U6592JZ X-Google-Smtp-Source: ABdhPJy5bqdfMyrgZfMkFDYsqtJB7aDr2QEqej3445y9ujTT4Z9m46MNcxx+coMpF7rclFg4xcNT6Q== X-Received: by 2002:a63:e24f:: with SMTP id y15mr71998459pgj.366.1609801118178; Mon, 04 Jan 2021 14:58:38 -0800 (PST) Return-Path: Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id x143sm64185289pgx.66.2021.01.04.14.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:37 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , "nd @ arm . com . Sami Mujawar" , Liming Gao , Michael D Kinney , Zhiguang Liu Subject: [PATCH v5 00/23] ArmPkg,MdePkg: Add Universal/Smbios, and related changes Date: Mon, 4 Jan 2021 15:58:07 -0700 Message-Id: <20210104225830.12606-1-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Much of the data for the SMBIOS tables is generic, and need not be duplicated for each platform. This patch series introduces ArmPkg/Universal/Smbios, which is largely copied from edk2-platforms/Silicon/HiSilicon/Drivers/Smbios and generates SMBIOS tables 0,1,2,3,4,7,13,32 and uses a combination of PCDs and calls into a new OemMiscLib to get information which varies between platforms. I plan to submit a patch against SbsaQemu to update it to use this new functionality. Changes from v4 to v5: - Incorporated changes based on v4 feedback. - Fixed several issues reported by the Ecc tool. - Fixed AARCH32 cache size code when CCIDX is supported. - Added OemMiscLibNull. - Added Universal/Smbios modules to ArmPkg.dsc. I know I've probably split this up into too many patches, but I realized it was easier to do this and subsequently squash them than the other way around. Personal build PR: https://github.com/tianocore/edk2/pull/1286 Rebecca Cran (23): ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h MdePkg: Update IndustryStandard/SmBios.h with processor status data ArmPkg: Add register encoding definition for MMFR2 ArmPkg: Add helper to read the Memory Model Features Register 2 ArmPkg: Add helper function to read the Memory Model Feature Register 4 ArmPkg: Fix the return type of the ReadCCSIDR function ArmPkg: Update ArmLibPrivate.h with cache register definitions ArmPkg: Add definition of the maximum cache level in ARMv8-A ArmPkg: Add helper to read CCIDX status ArmPkg: Add helper to read the CCSIDR2 register ArmPkg: Add Universal/Smbios/ProcessorSubClassDxe ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type00 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type01 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type02 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type03 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type13 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe/Type32 ArmPkg: Add Universal/Smbios/SmbiosMiscDxe ArmPkg: Add Library/OemMiscLib.h ArmPkg: Add Universal/Smbios/OemMiscLibNull ArmPkg: Add OemMiscLibNull instance to ArmPkg.dsc ArmPkg: Add SMBIOS PCDs to ArmPkg.dec ArmPkg: Add Universal/Smbios drivers to ArmPkg.dsc ArmPkg/ArmPkg.dec | 14 + ArmPkg/ArmPkg.dsc | 5 + ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLibNull.inf | 31 + ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf | 57 ++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf | 86 ++ ArmPkg/Include/Chipset/AArch64.h | 4 + ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 16 + ArmPkg/Include/Library/ArmLib.h | 15 + ArmPkg/Include/Library/OemMiscLib.h | 159 ++++ ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 11 + ArmPkg/Library/ArmLib/Arm/ArmV7Lib.h | 8 +- ArmPkg/Library/ArmLib/ArmLibPrivate.h | 117 ++- ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMisc.h | 136 +++ MdePkg/Include/IndustryStandard/SmBios.h | 13 + ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c | 17 + ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c | 17 + ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c | 140 ++++ ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c | 863 ++++++++++++++++++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c | 61 ++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c | 184 +++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorData.c | 92 +++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c | 281 +++++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerData.c | 35 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c | 178 ++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerData.c | 45 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c | 207 +++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerData.c | 51 ++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c | 208 +++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesData.c | 32 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesFunction.c | 156 ++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationData.c | 34 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c | 66 ++ ArmPkg/Library/ArmLib/AArch64/AArch64Support.S | 3 + ArmPkg/Library/ArmLib/AArch64/ArmLibSupportV8.S | 2 +- ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.S | 16 +- ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.asm | 16 +- ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassStrings.uni | 23 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscLibStrings.uni | 21 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendor.uni | 17 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturer.uni | 20 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturer.uni | 20 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturer.uni | 17 + ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguages.uni | 42 + 43 files changed, 3530 insertions(+), 6 deletions(-) create mode 100644 ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLibNull.inf create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf create mode 100644 ArmPkg/Include/Library/OemMiscLib.h create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMisc.h create mode 100644 ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguagesFunction.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationData.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassStrings.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscLibStrings.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendor.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturer.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturer.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturer.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type13/MiscNumberOfInstallableLanguages.uni -- 2.26.2