NACK: [PATCH] dmi: dmicheck: update type 4, 9 and 17 according to spec 3.4
Alex Hung
alex.hung at canonical.com
Tue Dec 1 04:44:24 UTC 2020
On 2020-11-30 1:42 a.m., Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
> src/dmi/dmicheck/dmicheck.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
> index 259279fb..617bb52b 100644
> --- a/src/dmi/dmicheck/dmicheck.c
> +++ b/src/dmi/dmicheck/dmicheck.c
> @@ -35,7 +35,7 @@
> #include <limits.h>
> #include <fcntl.h>
>
> -#define DMI_VERSION (0x0330)
> +#define DMI_VERSION (0x0340)
> #define VERSION_MAJOR(v) ((v) >> 8)
> #define VERSION_MINOR(v) ((v) & 0xff)
>
> @@ -1357,7 +1357,7 @@ static void dmicheck_entry(fwts_framework *fw,
> dmi_min_max_uint8_check(fw, table, addr, "Processor Type", hdr, 0x5, 0x1, 0x6);
> dmi_str_check(fw, table, addr, "Processor Manufacturer", hdr, 0x7);
> dmi_str_check(fw, table, addr, "Processor Version", hdr, 0x10);
> - dmi_min_max_uint8_check(fw, table, addr, "Upgrade", hdr, 0x19, 0x1, 0x3c);
> + dmi_min_max_uint8_check(fw, table, addr, "Upgrade", hdr, 0x19, 0x1, 0x3e);
> if (hdr->length < 0x23)
> break;
> dmi_str_check(fw, table, addr, "Serial Number", hdr, 0x20);
> @@ -1431,7 +1431,7 @@ static void dmicheck_entry(fwts_framework *fw,
> if (hdr->length < 0x0c)
> break;
> dmi_str_check(fw, table, addr, "Slot Designation", hdr, 0x4);
> - fwts_dmi_value_range t9_ranges[] = {{1, 0x23}, {0x30, 0x30}, {0xa0, 0xbd}};
> + fwts_dmi_value_range t9_ranges[] = {{1, 0x28}, {0x30, 0x30}, {0xa0, 0xc6}};
> dmi_ranges_uint8_check(fw, table, addr, "Slot Type", hdr, 0x5, t9_ranges, sizeof(t9_ranges));
> dmi_min_max_uint8_check(fw, table, addr, "Slot Data Bus Width", hdr, 0x6, 0x1, 0xe);
> dmi_min_max_uint8_check(fw, table, addr, "Current Usage", hdr, 0x7, 0x1, 0x5);
> @@ -1439,7 +1439,7 @@ static void dmicheck_entry(fwts_framework *fw,
> if (hdr->length < 0x0d)
> break;
>
> - dmi_reserved_bits_check(fw, table, addr, "Slot Characteristics 2", hdr, sizeof(uint8_t), 0x0c, 4, 7);
> + dmi_reserved_bits_check(fw, table, addr, "Slot Characteristics 2", hdr, sizeof(uint8_t), 0x0c, 7, 7);
>
> if (hdr->length < 0x11)
> break;
> @@ -1594,7 +1594,7 @@ static void dmicheck_entry(fwts_framework *fw,
> dmi_min_max_uint8_check(fw, table, addr, "Form Factor", hdr, 0xe, 0x1, 0x10);
> 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, 0x21);
> + dmi_min_max_uint8_check(fw, table, addr, "Memory Type", hdr, 0x12, 0x1, 0x23);
> if (hdr->length < 0x1b)
> break;
> dmi_str_check(fw, table, addr, "Manufacturer", hdr, 0x17);
>
NACK. Some additions are needed for SMBIOS 3.4 updates, and V2 will be sent.
More information about the fwts-devel
mailing list