From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mx.groups.io with SMTP id smtpd.web11.20211.1604530270185784414 for ; Wed, 04 Nov 2020 14:51:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=XTXvkApy; spf=pass (domain: nuviainc.com, ip: 209.85.215.175, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f175.google.com with SMTP id r186so122902pgr.0 for ; Wed, 04 Nov 2020 14:51:10 -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=INECE3fN4TaPXWlGwjo40ObQTcrbGGGjuphleh0TUQA=; b=XTXvkApy+8BQQbdLJQ2jG1AwSZF+k7AOs7trVBEGToli5Ry+kB4r6Kb9nuWx4oNBPT rkEgtcJ7m0zaBUh5xYq2JOjlme9iJhLU+ST8bCUJ9c8m/qUfgh56ezdMeAeAPHJk9L8T hcmKzMBLkUi8JijjxeevZTP44bGA6w7dn9/Zgcem0u0/aj86UgULVG73yVlvghldc2uM VlWtql3Gyo66FXhyFPxLtVapof98251K0pVT3l7+3B6brJMVNbka4u3zgXvMDOP28f4h QOniKQklMCd35LrA2e9NVePa2RWMue3KRmlqbl92itPainr/wSElV+w9TZ+9vHJlJRot yrCA== 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=INECE3fN4TaPXWlGwjo40ObQTcrbGGGjuphleh0TUQA=; b=kjlVMMEwWZ1g1S5VAAShSs8b/7MUpQ84FXs0GAJ47D0iEu7oJ8Qp8/423sXSGTLMJq Sp7kyaa4/qxHYSFhk/na1yHFKsV5WQnyAlcRG8POYCXQJ6EunWxgnVFy9DVawFz5PF42 0h4rIypA6lcib9/IJcE75bv36vquC/zUxjURTt4uflvZJ4vzZQadKzL3Z4YAEYCfCd9o BXEwPLCvX+z2rR2qRy3HwvmwOd5MKL3jlvb6SyfihmAw2JAmZ+co9pWCbn+HRINUI74x F3ylbNbhE17eZcA/G4mc4r51ah/+6kGGEnIDSu+PrjddgjBNGQs2ocncDeGL9dUy9zzU skEA== X-Gm-Message-State: AOAM533yl9YXBxloqo2xt6vYyaAbGrxB9ELbuKcQOlIuf7hLDnbZk2Ev ElJxCPK6FBxubV5gKGDH8kCjDXShkOOpgI0eBk2Y0Dx4T1hmtG4nDui7XOq8OvoDvu+4lsqyVGv LlHhCs400F/I1ASirl+VwZ+EIvyifHPUG06LQkH2oZ8YmejC5GSa/HVGI1ZhK5TZsDSIqxQ== X-Google-Smtp-Source: ABdhPJwiYJW3arqVyXsNweQzDLbwEueJHmm+L+93XNdp6MEJG2iXeQpUvo/vBNPh0O6kxgS46zBEcw== X-Received: by 2002:a17:90b:715:: with SMTP id s21mr133887pjz.43.1604530269264; Wed, 04 Nov 2020 14:51:09 -0800 (PST) Return-Path: Received: from cube.nuviainc.com (muon.bluestop.org. [65.103.231.193]) by smtp.gmail.com with ESMTPSA id q6sm3180574pfu.23.2020.11.04.14.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 14:51:08 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v2 0/3] ArmPkg,MdePkg: Add Universal/Smbios and Drivers/VersionInfoPeim Date: Wed, 4 Nov 2020 15:50:52 -0700 Message-Id: <20201104225055.18220-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,713,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 v1: Added a new commit to MdePkg to add the processor status data bitfield to IndustryStandard/SmBios.h. Updated OemMiscLib.h to remove structs and enums that are duplicated from IndustryStandard/SmBios.h. Fixed a bug in calls to UnicodeStrToAsciiStrS where the wrong length was passed. Rebecca Cran (3): ArmPkg: Add ARM SMC Architecture functions to ArmStdSmc.h MdePkg: Update IndustryStandard/SmBios.h with processor status data ArmPkg: add Universal/Smbios as a generic SMBIOS library ArmPkg/ArmPkg.dec | 16 + .../Drivers/VersionInfoPeim/VersionInfoPeim.c | 90 +++ .../VersionInfoPeim/VersionInfoPeim.inf | 46 ++ ArmPkg/Include/Guid/VersionInfoHobGuid.h | 29 + ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 26 +- ArmPkg/Include/Library/OemMiscLib.h | 82 +++ ArmPkg/Library/ArmLib/ArmLibPrivate.h | 22 + .../ProcessorSubClassDxe/ProcessorSubClass.c | 684 ++++++++++++++++++ .../ProcessorSubClassDxe/ProcessorSubClass.h | 34 + .../ProcessorSubClassDxe.inf | 55 ++ .../ProcessorSubClassStrings.uni | 23 + .../Smbios/SmbiosMiscDxe/SmbiosMisc.h | 217 ++++++ .../SmbiosMiscDxe/SmbiosMiscDataTable.c | 50 ++ .../Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf | 89 +++ .../SmbiosMiscDxe/SmbiosMiscEntryPoint.c | 167 +++++ .../SmbiosMiscDxe/SmbiosMiscLibString.uni | 21 + .../SmbiosMiscDxe/Type00/MiscBiosVendor.uni | 18 + .../SmbiosMiscDxe/Type00/MiscBiosVendorData.c | 99 +++ .../Type00/MiscBiosVendorFunction.c | 232 ++++++ .../Type01/MiscSystemManufacturer.uni | 21 + .../Type01/MiscSystemManufacturerData.c | 43 ++ .../Type01/MiscSystemManufacturerFunction.c | 171 +++++ .../Type02/MiscBaseBoardManufacturer.uni | 21 + .../Type02/MiscBaseBoardManufacturerData.c | 51 ++ .../MiscBaseBoardManufacturerFunction.c | 184 +++++ .../Type03/MiscChassisManufacturer.uni | 18 + .../Type03/MiscChassisManufacturerData.c | 58 ++ .../Type03/MiscChassisManufacturerFunction.c | 182 +++++ .../MiscNumberOfInstallableLanguages.uni | 43 ++ .../MiscNumberOfInstallableLanguagesData.c | 39 + ...MiscNumberOfInstallableLanguagesFunction.c | 154 ++++ .../Type32/MiscBootInformationData.c | 41 ++ .../Type32/MiscBootInformationFunction.c | 66 ++ MdePkg/Include/IndustryStandard/SmBios.h | 13 + 34 files changed, 3092 insertions(+), 13 deletions(-) create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.c create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.inf create mode 100644 ArmPkg/Include/Guid/VersionInfoHobGuid.h create mode 100644 ArmPkg/Include/Library/OemMiscLib.h create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.h create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassStrings.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMisc.h create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscEntryPoint.c create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscLibString.uni create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendor.uni 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/MiscSystemManufacturer.uni 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/MiscBaseBoardManufacturer.uni 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/MiscChassisManufacturer.uni 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/MiscNumberOfInstallableLanguages.uni 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 -- 2.26.2