From patchwork Tue Jun 21 04:21:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1645826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=gpfCaea4; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LRtdL6GHmz9sVB for ; Tue, 21 Jun 2022 14:21:58 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1o3VOk-0007lR-6b; Tue, 21 Jun 2022 04:21:54 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1o3VOj-0007lE-3U for fwts-devel@lists.ubuntu.com; Tue, 21 Jun 2022 04:21:53 +0000 Received: from canonical.com (unknown [106.104.72.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 15C214113F for ; Tue, 21 Jun 2022 04:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1655785312; bh=31fcYPnyNnbT9U6sEST5Co8kUIoaLgEbQhi2cFD71D8=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gpfCaea41FmPn9HoN8ZvO2WJjhHr1GXGbFLmLZuBg8TrlNAISAGkVIcZNcjrNF4f3 C9cvGuzRfoLVnL63smAzmylDYITlZ010V3F0lspKRTuNmfi0lCMtX8Rt/w4ILrRkIa Lhl4yMtowt5xNL3BRgnbkScLk8Ruk25XY8mETTWSYya4vOkMrCBav0/zkbSMe6Vz59 Vyk1OU0kSTuATFjIQ5xfJsdavEfjyy7cbfMS6p29NhBsLDKfHxvL5ygWQV37DkBEB6 7jMwxdgb8lK0W6bV+O3XCodsyWlFaGBDHLxJiXYKQ8pIZ3FKX+qJWTNTSI2e9VWiqU 0ykzi5mIZQVTQ== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] dmicheck: update the processor upgrade field for type 4 Date: Tue, 21 Jun 2022 12:21:47 +0800 Message-Id: <20220621042147.10825-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Signed-off-by: Ivan Hu --- src/dmi/dmicheck/dmicheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c index 041c5d4d..73d511a5 100644 --- a/src/dmi/dmicheck/dmicheck.c +++ b/src/dmi/dmicheck/dmicheck.c @@ -1393,7 +1393,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, 0x3e); + dmi_min_max_uint8_check(fw, table, addr, "Upgrade", hdr, 0x19, 0x1, 0x3f); if (hdr->length < 0x23) break; dmi_str_check(fw, table, addr, "Serial Number", hdr, 0x20);