From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mx.groups.io with SMTP id smtpd.web11.30.1605053889466913186 for ; Tue, 10 Nov 2020 16:18:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=qcJSGxUk; spf=pass (domain: nuviainc.com, ip: 209.85.215.195, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f195.google.com with SMTP id i7so178687pgh.6 for ; Tue, 10 Nov 2020 16:18:09 -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=m+zfGNofY4YmwSp8asKiyL2YLYJ8NNSFkWBzTk7XwBg=; b=qcJSGxUkshfm+FEqD6pr5rfXomOeZBoaGVcKfomlSE/ZYYAp/onvj15OBY/LIxsY7u pg8MGiEuteTZP/j6HpwQA8zPbtjnPwX0PsfbiKUWCKmIdIumqx2d8Q8yNQrMEWagWLVf r5EKX57B1TSGj59alGWRzrCCgzsvJKAWuaU7TwpPt3/L83CI4FT+FGPTUI/XXQY14ooB b+JGX1t38VBeDGJ1bkstuTqq9lXZrAI9lPH9SC1hpR7dzjALtV2IzKQjt0ZG4PFcpKmX rD0awVP6IbUb2iR9HRjZI2x/3puHA5J1ARX32FNn0Xo3mJRY+P8adXAhn6M2zh6mzvC3 KNsw== 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=m+zfGNofY4YmwSp8asKiyL2YLYJ8NNSFkWBzTk7XwBg=; b=QctrdYlo/VEH6e+VkNgDSvJNCz0LnJy+fBbsYMJtSdGS06vydCjbbiQRE9SdChcHXS ZvgvOWXgnpuAUjLzu3bHlscQsgkrFi+Sn5Hqfy5mjNx6yM+nUCaBtdw1oYsT576Rc9so +KaaITZ3bwEiGKc8fW6rNwf2pE1HVHnDmBNPJtOFcfAt6sECHxSDrthysK1zCxfyt2R9 oafhH3ZXcZp9wn0zbwtZvRJAbjCyKQTubmvC7HJt6w6ueoNzMg74Cnz3ASjPbxg1Pz/f VUnfKrV5DgtOaFJLrwg6xF79NSaVp9bupcgqtRiZ1c0mhqRIckXSAhBr6PlzMrssJmLp y8og== X-Gm-Message-State: AOAM532l3zHlC7efweaeOfj3+ace6bwQgWt1VK1AfAYc0bAR8+Zo0YSj It2Dku/FlNca4Wc3MYC7xl7TgzRZZeXzxRXR/EIeMsYh1WwWFVauSY7zalYTPsTk2xzeRYHn6X9 n7Onr/Xc5ftnCIt1I9ycJKVr3xQB1qO6WQCTVJunBR14IWIyuR6MxfR1x1rGammFMlKP3KoI5 X-Google-Smtp-Source: ABdhPJwHSLCPfazAvjG8+NNJIpnMzvP+BNvXNZsYBnZsYWGs83xBF3/8EE5JD1WlCYix5yzy43k92g== X-Received: by 2002:a17:90a:c7c4:: with SMTP id gf4mr869479pjb.18.1605053888335; Tue, 10 Nov 2020 16:18:08 -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 f7sm270705pfe.30.2020.11.10.16.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 16:18:07 -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 v3 0/3] ArmPkg,MdePkg: Add Universal/Smbios and Drivers/VersionInfoPeim Date: Tue, 10 Nov 2020 17:17:45 -0700 Message-Id: <20201111001748.20217-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 v2: Fixed a bug in the processor characteristics handling. Added new code to detect the cache size and architecture in a generic way. Removed various definitions from ArmLibPrivate.h that appear to be obsolete. 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 + .../VersionInfoPeim/VersionInfoPeim.inf | 46 ++ .../ProcessorSubClassDxe.inf | 55 ++ .../Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf | 89 +++ ArmPkg/Include/Chipset/AArch64.h | 4 + ArmPkg/Include/Guid/VersionInfoHobGuid.h | 29 + ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 13 + ArmPkg/Include/Library/ArmLib.h | 6 + ArmPkg/Include/Library/OemMiscLib.h | 86 +++ ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 6 + ArmPkg/Library/ArmLib/ArmLibPrivate.h | 100 ++- .../ProcessorSubClassDxe/ProcessorSubClass.h | 34 + .../Smbios/SmbiosMiscDxe/SmbiosMisc.h | 217 ++++++ MdePkg/Include/IndustryStandard/SmBios.h | 13 + .../Drivers/VersionInfoPeim/VersionInfoPeim.c | 90 +++ ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c | 15 + ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c | 17 + .../ProcessorSubClassDxe/ProcessorSubClass.c | 723 ++++++++++++++++++ .../SmbiosMiscDxe/SmbiosMiscDataTable.c | 50 ++ .../SmbiosMiscDxe/SmbiosMiscEntryPoint.c | 167 ++++ .../SmbiosMiscDxe/Type00/MiscBiosVendorData.c | 99 +++ .../Type00/MiscBiosVendorFunction.c | 232 ++++++ .../Type01/MiscSystemManufacturerData.c | 43 ++ .../Type01/MiscSystemManufacturerFunction.c | 171 +++++ .../Type02/MiscBaseBoardManufacturerData.c | 51 ++ .../MiscBaseBoardManufacturerFunction.c | 184 +++++ .../Type03/MiscChassisManufacturerData.c | 58 ++ .../Type03/MiscChassisManufacturerFunction.c | 182 +++++ .../MiscNumberOfInstallableLanguagesData.c | 39 + ...MiscNumberOfInstallableLanguagesFunction.c | 154 ++++ .../Type32/MiscBootInformationData.c | 41 + .../Type32/MiscBootInformationFunction.c | 66 ++ .../Library/ArmLib/AArch64/AArch64Support.S | 3 + .../Library/ArmLib/AArch64/ArmLibSupportV8.S | 2 +- ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.S | 4 + ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.asm | 6 +- .../ProcessorSubClassStrings.uni | 23 + .../SmbiosMiscDxe/SmbiosMiscLibString.uni | 21 + .../SmbiosMiscDxe/Type00/MiscBiosVendor.uni | 18 + .../Type01/MiscSystemManufacturer.uni | 21 + .../Type02/MiscBaseBoardManufacturer.uni | 21 + .../Type03/MiscChassisManufacturer.uni | 18 + .../MiscNumberOfInstallableLanguages.uni | 43 ++ 43 files changed, 3239 insertions(+), 37 deletions(-) create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.inf create mode 100644 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.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.h create mode 100644 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMisc.h create mode 100644 ArmPkg/Drivers/VersionInfoPeim/VersionInfoPeim.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/SmbiosMiscLibString.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