From nobody Thu Apr 25 22:40:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1668781703173765.4046492913067; Fri, 18 Nov 2022 06:28:23 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id D84642069F; Fri, 18 Nov 2022 14:28:18 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id A520720350 for ; Fri, 18 Nov 2022 14:28:03 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-295-XazlxhAWMJSoe1BXS3zh2A-1; Fri, 18 Nov 2022 09:27:58 -0500 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7B647185A792; Fri, 18 Nov 2022 14:27:58 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.corp.redhat.com (Postfix) with ESMTP id 87FB32027063; Fri, 18 Nov 2022 14:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668781682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iPmat3WBihCfDYPkVLP0Grpssdq0JUmB3RR0Z+lcgHs=; b=atr/D1s9MkGVh1aqzQg9Z9yxag/RMg6ySOO+cTFTDxgDj0o+l7c/X6fBTKF309FPHHAQ8H pb5Wn5PGA1e9aqGSVOlrwgErM9Skb256do063B86KOdZin6IKMpfkYJuzU691Zv3nfhCbo agUQfGff0TB3WJG/SBLJ14BD5sEfcLc= X-MC-Unique: XazlxhAWMJSoe1BXS3zh2A-1 From: Igor Mammedov To: seabios@seabios.org Date: Fri, 18 Nov 2022 15:27:55 +0100 Message-Id: <20221118142755.3879231-1-imammedo@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: RGPL7HESH5U5JRLEO6FP77CZVHZK5J65 X-Message-ID-Hash: RGPL7HESH5U5JRLEO6FP77CZVHZK5J65 X-MailFrom: imammedo@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: kraxel@redhat.com, mst@redhat.com X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] [PATCH] acpi: parse Alias object List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: -- X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1668781705325100001 Since QEMU commit dbce582a119 (acpi: pc/q35: drop ad-hoc PCI-ISA bridge AML routines and le= t bus ennumeration generate AML) SeaBIOS fails to parse ISA bridge AML with: parse_termlist: parse error, skip from 92/517 ... ACPI: no PS/2 keyboard present due to Alias term in DSDT which isn't handled by SeaBIOS properly. Add dumb Alias parsing which just skips over term, so the rest of AML could be parsed successfully. Signed-off-by: Igor Mammedov Reported-by: Volker R=C3=BCmelin Reviewed-by: Gerd Hoffmann --- src/fw/dsdt_parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fw/dsdt_parser.c b/src/fw/dsdt_parser.c index eb5496f3..2ac82821 100644 --- a/src/fw/dsdt_parser.c +++ b/src/fw/dsdt_parser.c @@ -417,6 +417,10 @@ static int parse_termobj(struct parse_state *s, break; case 0x01: /* one */ break; + case 0x06: /* AliasOp */ + offset +=3D parse_namestring(s, ptr + offset, "SourceObject"); + offset +=3D parse_namestring(s, ptr + offset, "AliasObject"); + break; case 0x08: /* name op */ offset +=3D parse_namestring(s, ptr + offset, "name"); offset +=3D parse_termobj(s, ptr + offset); --=20 2.31.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org