From nobody Wed Feb 11 04:06:02 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+84600+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+84600+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1639042355; cv=none; d=zohomail.com; s=zohoarc; b=V26W0PosMxBna2/8cr5zIl8HQBzrIO3nJr16WEQTFGOMfLyViu4q5E9T3dxilCgp6dmmY4FVBpJISeHD74ohFkY7aUzsqM1utIm8KXfV/aEMwajsXvnijiBiKrrJg8bm0kHuLJvcqhefYneP/G8sZ8jZKi6Hsp43mW2nURV7p0o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639042355; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=9ILWMGCztlOuQrgqyIo1dSEZdBMsnohLDxaXS8v3k/Q=; b=QZYNDbvEjgEWcSbil3tAoDz6xrRboLZHnWriTmhljOkTIlTxBEJWyUZqz+IMI/01PbpnbZNH6lnZah71RUUt7ZMHl7Md63NYVa+jzxwP49C7FkoNakMFfL8vnNiuDNKrtkTd787YpUM9CAV77ioEDLB/n+kWhgza3vKHQO9fzM8= 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+84600+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 1639042355305160.0092594340382; Thu, 9 Dec 2021 01:32:35 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id by6DYY1788612x3t4shkaWcF; Thu, 09 Dec 2021 01:32:34 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.9538.1639042354390925775 for ; Thu, 09 Dec 2021 01:32:34 -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 02C101474; Thu, 9 Dec 2021 01:32:34 -0800 (PST) X-Received: from e126645.nice.arm.com (unknown [10.34.129.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id ED1CB3F73B; Thu, 9 Dec 2021 01:32:32 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Alexei Fedorov Subject: [edk2-devel] [PATCH v4 15/15] DynamicTablesPkg: Handle 16550_WITH_GAS id Date: Thu, 9 Dec 2021 10:32:08 +0100 Message-Id: <20211209093208.1249257-16-Pierre.Gondois@arm.com> In-Reply-To: <20211209093208.1249257-1-Pierre.Gondois@arm.com> References: <20211209093208.1249257-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 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: 2rbW4cOPOmUIahpDLMiKKpAjx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639042354; bh=TEob5Ur3EGFo44EXonJ3swiEqGXDU8zNzeYDFKlpYkg=; h=Cc:Date:From:Reply-To:Subject:To; b=E1iJUWJUM6mJYy7PqbxY9j4hiU6bAMhU2/4STrRVrgXEHBKeSfVdWxpHgQwlOgvcpml Txx+a31YMtD8NTqc67mayD0aV2rGWdmXJjqFqxAkpDKHUvp28+tsaOxxTudaepThKw/tl rKK97T+rkoXNIF5kLBT0t/u9i1xlT4xrXTA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639042356357100009 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 --- .../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 0270ab89446d..389c9eb914d8 100644 --- a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c +++ b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c @@ -85,7 +85,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, @@ -147,6 +149,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 (PcdNonBsaCompliant16550Seria= lHid); --=20 2.25.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 (#84600): https://edk2.groups.io/g/devel/message/84600 Mute This Topic: https://groups.io/mt/87608919/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-