From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mx.groups.io with SMTP id smtpd.web08.4114.1613707070952924957 for ; Thu, 18 Feb 2021 19:57:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=ZbzNxvrc; spf=pass (domain: nuviainc.com, ip: 209.85.222.174, mailfrom: rebecca@nuviainc.com) Received: by mail-qk1-f174.google.com with SMTP id x14so4476825qkm.2 for ; Thu, 18 Feb 2021 19:57:50 -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=/9jub1/FZQx+hRqoLlnzqyeMeo5aQeu56C2Rkj7OniY=; b=ZbzNxvrcC9tFHKWlWrkoiuLZI/jtjbD1CVLvKIzrl4I//Re13J1uKVFBOMsXbHjHvh BSdRWHetVS/5UagvGykPd5GVTjjxwFNRjIDTTbgnRfF19cEvgm5gZ7Y6p0kHm4u2ivqT 8WFs6E05jVrd2GblpRKYBU4ThXQmx/NMEabflaP+cFo5KtIjY7UJ2KulZk7sUSOwtp9i 7/+pV4JmWzr8JUD9WWzMK6Ib2oGUqUkeCVvKCXUFGLHZHCWcj7I+GHqlecc8PFxGZg34 kT2nIkPF/BuVmzkHUhbj+Ojl9vQUyq3eOZdfV+M4/B4eCclyugZ8qpwhhASFKrIA22uM F9tQ== 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=/9jub1/FZQx+hRqoLlnzqyeMeo5aQeu56C2Rkj7OniY=; b=jjLRsAgmhkAuVhUHDOPB71E4zsjWM8NtRr0yPioH+EMiO/Bl6cPk7AgtDyYqMwZjwA ezbLZGPjD/AxHK1IA+u0ERkOki5AAwiI+GJ5Wx7bsPeXzzkszn8XFpPm8BfBBkQjkib2 MYpLoZQPRCd3G4TqAzPmlQHXgDVKeyH/pVYRFbIP55AtzqJYK9FhqQYyGvvYE5f4XBJd KE5qQtNGampqstjc74hslFtU/psDPxIIyTfaXNJUryhMzzRZMzjtEe0RQg1pjGso26Q0 BUvI8hW60wpHBHN7zePH2BBQsMKjCfbpZbhUlKN2IAYC+Dmnou5eOFmzfhQRwt7MLgJJ 54OQ== X-Gm-Message-State: AOAM532Dv9QjoMMrjPEKQquU5w6ZhJHOIDakd1SKdzEq8jzuBRsm/oyo CIAk4ALJGpoDFLN9gaTZ6cxjyTbE2Cn6Kl1BlRq/Q1xcC8t1GcGuPG3+JKDqfFAceZJ0VS+NeNl 0kyHO1/ZLe8+gqlZZJu14bgLGJTx41DwBuVNsjxbD5BZccTMDcn0cvccTMfzS0Za2/kZmSA== X-Google-Smtp-Source: ABdhPJzzhW0kv55ckf9OAT2nXMaSxbQW64q1pPI/TfyToR2jWNN1+6QvLp8gimNBchKIlcTgY12tOg== X-Received: by 2002:a05:620a:215a:: with SMTP id m26mr7753861qkm.336.1613707069785; Thu, 18 Feb 2021 19:57:49 -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 z28sm5633919qkj.72.2021.02.18.19.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 19:57:49 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Ard Biesheuvel , Leif Lindholm , Graeme Gregory , Radoslaw Biernacki Subject: [edk2-platforms PATCH v3 0/3] Platform/Qemu/SbsaQemu: Add SMBIOS tables Date: Thu, 18 Feb 2021 20:57:38 -0700 Message-Id: <20210219035741.1467-1-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit o Add SMBIOS 3.4.0 tables using ArmPkg/Universal/Smbios. o Bump the PcdSmbiosVersion PCD from 0x300 to 0x304 to indicate support for SMBIOS 3.4.0, as is required by SBBR. o Add an implementation of OemMiscLib that provides the system information. The serial numbers, asset tags etc. are currently all fixed strings, to allow fwts to pass without errors. o Add SMBIOS PCDs to identify the platform. The processor serial number, asset tag and part number are populated because otherwise fwts reports errors. Changes between v1 and v2: o Renamed OemMiscLib 'socket' functions to 'processor'. o Added PCDs for the various strings (SN, SKU etc.). o Added FdtHelperLib. o Updated SBSA ACPI Dxe to use FdtHelperLib. o Changed SBSA SMBIOS Processor information to create multiple CPUs, instead of a single multi-core CPU. o Updated cache level to be 1-based. o Fixed/moved/added EFIAPI specifiers. Changes between v2 and v3: o Fixed ordering of FdtHelperLib and FdtLib in Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf o Fixed the subject line of the series to include the word "PATCH" (i.e. [edk2-platforms PATCH v3 0/3]). This series requires associated changes to the edk2 repo, so will need some coordination to reduce the amount of time the build is broken. Rebecca Cran (3): SbsaQemu: Add FdtHelperLib SbsaQemu: Update SbsaQemuAcpiDxe to use FdtHelperLib Platform/Qemu/SbsaQemu: Add SMBIOS tables Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 242 ++++++++++++++++++++ Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf | 53 +++++ Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 50 +++- Platform/Qemu/SbsaQemu/SbsaQemu.fdf | 7 + Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 50 +--- Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 1 + Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h | 24 ++ Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c | 69 ++++++ Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf | 28 +++ Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 18 ++ 10 files changed, 492 insertions(+), 50 deletions(-) create mode 100644 Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c create mode 100644 Platform/Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf create mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h create mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c create mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf -- 2.26.2