ACK: [PATCH 4/4] dmicheck: update memory type and add nvdimm fields for Type 17
ivanhu
ivan.hu at canonical.com
Tue Jul 3 09:28:06 UTC 2018
On 06/30/2018 08:55 AM, Alex Hung wrote:
> Nvdimm is added in SMBIOS 3.2
>
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
> src/dmi/dmicheck/dmicheck.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
> index b508799..a911b43 100644
> --- a/src/dmi/dmicheck/dmicheck.c
> +++ b/src/dmi/dmicheck/dmicheck.c
> @@ -1514,7 +1514,7 @@ static void dmicheck_entry(fwts_framework *fw,
> dmi_min_max_uint8_check(fw, table, addr, "Form Factor", hdr, 0xe, 0x1, 0xf);
> dmi_str_check(fw, table, addr, "Locator", hdr, 0x10);
> dmi_str_check(fw, table, addr, "Bank Locator", hdr, 0x11);
> - dmi_min_max_uint8_check(fw, table, addr, "Memory Type", hdr, 0x12, 0x1, 0x1e);
> + dmi_min_max_uint8_check(fw, table, addr, "Memory Type", hdr, 0x12, 0x1, 0x1f);
> if (hdr->length < 0x1b)
> break;
> dmi_str_check(fw, table, addr, "Manufacturer", hdr, 0x17);
> @@ -1525,6 +1525,11 @@ static void dmicheck_entry(fwts_framework *fw,
> break;
> dmi_reserved_bits_check(fw, table, addr, "Attributes", hdr, sizeof(uint8_t), 0x1b, 4, 7);
> dmi_reserved_bits_check(fw, table, addr, "Extended Size", hdr, sizeof(uint32_t), 0x1c, 31, 31);
> + if (hdr->length < 0x28)
> + break;
> + dmi_min_max_uint8_check(fw, table, addr, "Memory Technology", hdr, 0x28, 0x1, 0x7);
> + dmi_reserved_bits_check(fw, table, addr, "Memory Operating Mode Cap", hdr, sizeof(uint16_t), 0x29, 6, 15);
> +
> break;
>
> case 18: /* 7.19 */
Acked-by: Ivan Hu <ivan.hu at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180703/16a2cae9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180703/16a2cae9/attachment.sig>
More information about the fwts-devel
mailing list