From nobody Tue Feb 10 11:56:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+83891+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+83891+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1637258115; cv=none; d=zohomail.com; s=zohoarc; b=jkWIZWoJpNhHGaIutn7bdNyQ1OHuEA+LMzFyPLy9HcYs7fE8gK1AjjB8k4+rqsS3cbKRMW0m5+sDz9NiI9KZY+TDXJV2mr6CjqRl+KKe6oddO6cD3j/IrIS5P9webdDDKlW11G6rgJFlEuuK8ahLdhIBAQtmuJBgJpsTFXZZvN8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637258115; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=j8TIv56Uu3SwZ6SMZcWH2+F7pZZ5rMGp2MMSulF/r2E=; b=VAULrtArIqFn9XhBwTToP5roKIfqkP230ZcPR4rAAr4p1E1S3bVqs7uvrnyijCafyQk8eH7RvU8n8te+MP+OhheVm1Xxruu0kFUgr2jVI0zm0a4rugr6uhCXRneM9NonTVH7ee+xNSRKGylkTvHUMtyoAYrwGuEzqHOdkQ/WaCY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+83891+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1637258115926770.2911672621207; Thu, 18 Nov 2021 09:55:15 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id cEgaYY1788612xuvLpQhcTvG; Thu, 18 Nov 2021 09:55:15 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.5191.1637258115040845392 for ; Thu, 18 Nov 2021 09:55:15 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9C25D1042; Thu, 18 Nov 2021 09:55:14 -0800 (PST) X-Received: from e120189.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AB49F3F5A1; Thu, 18 Nov 2021 09:55:13 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, Sami.Mujawar@arm.com, Alexei.Fedorov@arm.com Subject: [edk2-devel] [PATCH v2 15/15] DynamicTablesPkg: Handle 16550_WITH_GAS id Date: Thu, 18 Nov 2021 17:54:19 +0000 Message-Id: <20211118175419.23610-16-Pierre.Gondois@arm.com> In-Reply-To: <20211118175419.23610-1-Pierre.Gondois@arm.com> References: <20211118175419.23610-1-Pierre.Gondois@arm.com> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: Y2ABWTeXtKVGdZDVZSm2iZY7x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1637258115; bh=2f8ngAAH6Upp99wpkd8G+xF4UUtf0aASavmE60D2jIY=; h=Date:From:Reply-To:Subject:To; b=cFikSwwbLrljxwwGpk/gzc7CLhnBptnagqAYZs3dnQC6RnkGEr5xZGcHNQHc5A/lJwN 4T1yHd751SNpzebfqK96dcee6aqE6FavCHx3KKyPO5OMiHnsQbzQUS5IYgGR68a/Z32kH 6KzHkxoWMcDDZGoW6bKSF4mPQJLap/poLMI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1637258117027100006 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois Handle the EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_16550_WITH_GAS id when generating an AML description of a serial port. The same _HID/_CID as the EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550 are generated. Signed-off-by: Pierre Gondois --- Notes: v2: - New patch. [Pierre] .../Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSer= ialPortFixupLib.c b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/= SsdtSerialPortFixupLib.c index 79e1fabc9223..85c7293bb4a6 100644 --- a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c +++ b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c @@ -83,7 +83,9 @@ ValidateSerialPortInfo ( (SerialPortInfo->PortSubtype !=3D EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_DCC) && (SerialPortInfo->PortSubtype !=3D - EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550)) { + EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550) && + (SerialPortInfo->PortSubtype !=3D + EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_16550_WITH_GAS)) { DEBUG (( DEBUG_ERROR, "ERROR: UART port subtype is invalid." @@ -143,6 +145,7 @@ FixupIds ( // Get the _CID and _HID value to write. switch (SerialPortInfo->PortSubtype) { case EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550: + case EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_16550_WITH_GAS: { // If there is a non-BSA compliant HID, use that. NonBsaHid =3D (CONST CHAR8*)PcdGetPtr (PcdNonBsaCompliant16550Serial= Hid); --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#83891): https://edk2.groups.io/g/devel/message/83891 Mute This Topic: https://groups.io/mt/87149257/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-