From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mx.groups.io with SMTP id smtpd.web08.304.1604347293316651726 for ; Mon, 02 Nov 2020 12:01:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=cTY/mXKA; spf=pass (domain: nuviainc.com, ip: 209.85.210.195, mailfrom: rebecca@nuviainc.com) Received: by mail-pf1-f195.google.com with SMTP id c20so12080625pfr.8 for ; Mon, 02 Nov 2020 12:01:33 -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=Y9ql/31auPjZVicjfzslw7juIXbGyw169vT2oaH7aH0=; b=cTY/mXKA52jIjhMQYmmOOZVWUQCQA5RSzxyF9BwEHk8ey7cweTBnWEZKM97zYxfsoh VQonexMzv8at5nCj7CJ4iAI/Tc3wjIJfQ+QAc6aSAXgqCsdpRiL+uzxrZjF5nyE9Ja1B d0l0Mch5q1Emf99x3NrbLgk1zsvBNqiQTg1dQal0A/btXAa6P7GWqE5/7YpkTT5j0VS9 UFtZ6VT0HdARiTZNpWsqVg4krwB3yByshwIDO02APFpbOfXjGMLC1PSqENhLQU/IMGqw W5LyXcma208Wm/wrKrmjLAKv6NXCouRqFkvB9bmGkdIX22DQMEYOA8FVOCMYqklyF92u Vemg== 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=Y9ql/31auPjZVicjfzslw7juIXbGyw169vT2oaH7aH0=; b=jXQC8CVbvH+lTbSIQyGq3SeoejxpJlNxdJ5bW0bEM0csJn8pN1nu8N6TlVYUTyue7/ eriXrG5B1hGDulxKdmKgq9o12LBmtqOZ3VGdLXqn5z1lHI6k4vauI78qULh7uZouHqMH +ksTP2Wpl668ly3L7Q6JpHZLjbAkuAzCNcPQbtDk2qtmQQdNEo9e2CrNx7WtwfJmgH95 O7ni34Kgp5gMcyxBKVdfWdnxO6x2kw6iP406BXsMpo2z2t0VpcQUehQNisQGFO5wLW4K 3/6Ib6c3HqPXKzfh4yoFhMiDi3PgziESyKKK/+gN9fEqzvDpjhXrP5cDHyIx8Nvr1HZX sMJw== X-Gm-Message-State: AOAM530/gdrw3k2CVXo+HwCObryf+JyKJB5vxkbm9ZuEBCPqqznoQupg 1hkixmjz8X8dB65Jbt4LiHH9g92/wwsb2NNCbWbe0cGvtlg5g0VSyn7F13KwZpkGcHzpEYOKYRf 1eCwqDXKEn+rKEd295wdfYkIv5QWPTw/AdxhjrKnT492enWIf8CBIPvH0ghhbo2HXY7lv0Q== X-Google-Smtp-Source: ABdhPJxQ/ZZqPe/E6dOsnDRGKZyABzSZqCWIicHCrhn4YYeU0CTbcp4oFP9FYLrMKXf48DM+FpqFcg== X-Received: by 2002:a63:d40f:: with SMTP id a15mr14236473pgh.143.1604347292344; Mon, 02 Nov 2020 12:01:32 -0800 (PST) Return-Path: Received: from cube.nuviainc.com (muon.bluestop.org. [65.103.231.193]) by smtp.gmail.com with ESMTPSA id 6sm5093160pfb.22.2020.11.02.12.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 12:01:31 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel Subject: [PATCH 0/2] ArmPkg: Add Universal/Smbios and Drivers/VersionInfoPeim Date: Mon, 2 Nov 2020 13:01:13 -0700 Message-Id: <20201102200115.29003-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. Rebecca Cran (2): ArmPkg: Add ARM SMC Architecture calls to ArmStdSmc.h 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 | 140 ++++ ArmPkg/Library/ArmLib/ArmLibPrivate.h | 22 + .../ProcessorSubClassDxe/ProcessorSubClass.c | 685 ++++++++++++++++++ .../ProcessorSubClassDxe/ProcessorSubClass.h | 40 + .../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 ++ 33 files changed, 3144 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