From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1B455D801B1 for ; Wed, 6 Dec 2023 10:11:57 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kSGjiOeqkS7SA9Kv9Lc32IX2/4XK9oS9Hsq8Josln4E=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1701857516; v=1; b=CNjnd0a/B6x8dcRI8AObx7Ua+oOomEE8qMNxe3O5HX0v7P/YjbHB47SwD456AlRYYkCynbUz 89JMMlRVBhse/vFGdE9O+3HK3q9zqKIaMD6Nv7VK4rQndD8639ulsQkiVq+QC8bPxnZZfUgrBdc gml8coybS8SNtXJOmVWff2eQ= X-Received: by 127.0.0.2 with SMTP id l72SYY7687511xXW59eaw6kq; Wed, 06 Dec 2023 02:11:56 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.28229.1701857515634461726 for ; Wed, 06 Dec 2023 02:11:56 -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 19EC81474; Wed, 6 Dec 2023 02:12:41 -0800 (PST) X-Received: from usa.arm.com (a076756.arm.com [10.162.16.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0AE063F762; Wed, 6 Dec 2023 02:11:52 -0800 (PST) From: "Himanshu Sharma" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Pierre Gondois , Himanshu Sharma Subject: [edk2-devel] [edk2][PATCH V1 0/2] Update handling of interrupt node for SSDT Serial Port Fixup Library Date: Wed, 6 Dec 2023 15:41:44 +0530 Message-Id: <20231206101146.1309296-1-Himanshu.Sharma@arm.com> MIME-Version: 1.0 Precedence: Bulk 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,Himanshu.Sharma@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ifjKFmWBJbclUfRVwhnKZ5Zpx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="CNjnd0a/"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) Currently in the Dynamic Tables Framework, the interrupt node for the AML description of the serial-ports is populated using the template and so is mandatorily added even if the serial-port is enumerated as a DBG2 port in the platform's configuration manager where the interrupt is not mandatory. The proposed implementation adds the interrupt node only if the interrupt defined for the serial-port is a valid SPI or a valid extended SPI. So, in case of DBG2 ports,=20 he platforms with interrupt defined as SPI (like Morello) can have the interrupt node added to the description and the platforms where it is not defined (like N1SDP) can ignore the addition of the interrupt node. The changes include adding the SPI range macros in ArmGicArchLib (ArmPkg) which can be used by the SSDTSerialPortFixupLib (DynamicTablesPkg) to put a check for generating the interrupt node using AML Codegen API. Link to branch with the patches in this series - https://github.com/himsha01/edk2/tree/ssdt_serial_port_interrupt Himanshu Sharma (2): ArmPkg/ArmGicArchLib: Add macros for SPI and extended SPI ranges DynamicTablesPkg/SsdtSerialPortFixupLib: Add Interrupt node for SPIs on= ly DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFix= upLib.inf | 3 +- ArmPkg/Include/Library/ArmGicArchLib.h = | 9 +++++ DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFix= upLib.c | 38 ++++++++++++-------- DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortTem= plate.asl | 29 ++++++++------- 4 files changed, 51 insertions(+), 28 deletions(-) --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112116): https://edk2.groups.io/g/devel/message/112116 Mute This Topic: https://groups.io/mt/103010239/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-