From patchwork Tue Sep 12 03:18:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1832616 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=rFSq2CMS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rl81L6BrRz1yhZ for ; Tue, 12 Sep 2023 13:18:30 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qftuv-0007M7-Cq; Tue, 12 Sep 2023 03:18:21 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qftur-0007KA-JJ for fwts-devel@lists.ubuntu.com; Tue, 12 Sep 2023 03:18:18 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 591603F6C1 for ; Tue, 12 Sep 2023 03:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1694488697; bh=ND7YKczbFUWGZ0CC8TlT1TFiPhHifyTkRcuww1NOTRA=; h=From:To:Subject:Date:Message-Id; b=rFSq2CMSty73B3AvDZtWBx3uV2DXP6pyxLonWRwLx1lPBreLoojofMXMb6MZHQmwK Yd80OcrqoVlalF5vHn2Kr6VxrcUYUCxdfR4mDK4DYTvRjCNfgg0VuBy09mT56yjF8d M+iDs5Q61qZZHp+vxNwx6/98uRo5oVlAi/IsMZ5d500cc5rgoAjkVExLzCp3Mz7E5F gm4IidOiaI5i3GCJLSMtFks+AnRvp6Z+bilCVnzzwe3Yunkw2Mi5wEJiSi9n0pNhhu 6sXWlWnuPxpUsxUmsiIPXdD0EzHIxLQRhPwSLj+1x5wU0AEm1YYOSxHRVAMJ6QEUoi DZuOSqQMV/OHg== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] acpi: ivrs: fix the tests stuck at validate IVRS table Date: Tue, 12 Sep 2023 11:18:12 +0800 Message-Id: <20230912031812.10616-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.17.1 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: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" BugLink: https://bugs.launchpad.net/fwts/+bug/2035157 Some buggy firmware with unexpected type which causes the while loop continues. Signed-off-by: Ivan Hu --- src/acpi/ivrs/ivrs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/acpi/ivrs/ivrs.c b/src/acpi/ivrs/ivrs.c index a9170cb5..2f3474e5 100644 --- a/src/acpi/ivrs/ivrs.c +++ b/src/acpi/ivrs/ivrs.c @@ -199,6 +199,7 @@ static int ivrs_test1(fwts_framework *fw) "IVRSBadIVHDType", "IVHD or IVMD must have type with Type 0x10, 0x11, 0x20 to 0x22 " "and 0x40 , got 0x%2.2" PRIx8 " instead", entry->type); + offset += entry->length; break; }