From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.80432.1629432986085559127 for ; Thu, 19 Aug 2021 21:16:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: jeremy.linton@arm.com) 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 93A9E12FC; Thu, 19 Aug 2021 21:16:27 -0700 (PDT) Received: from u200856.usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4FDF33F40C; Thu, 19 Aug 2021 21:16:27 -0700 (PDT) From: "Jeremy Linton" To: devel@edk2.groups.io Cc: pete@akeo.ie, ardb+tianocore@kernel.org, awarkentin@vmware.com, Sunny.Wang@arm.com, samer.el-haj-mahmoud@arm.com, Jeremy Linton Subject: [PATCH v3 7/7] Platform/RaspberryPi: Add Linux quirk support Date: Thu, 19 Aug 2021 23:16:19 -0500 Message-Id: <20210820041619.87248-8-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210820041619.87248-1-jeremy.linton@arm.com> References: <20210820041619.87248-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Linux, for the time being has refused to support the Arm standard SMCCC for PCIe configuration. Instead they want to continue to maintain per device "quirks". As the RPI isn't really ECAM this is a bit more involved because the MCFG can't really describe the root port+config registers situation. Further platforms which support the SMCCC shouldn't have a MCFG, so we need an additional way to tell linux what it needs to know about this platform. Signed-off-by: Jeremy Linton --- Platform/RaspberryPi/AcpiTables/Pci.asl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Platform/RaspberryPi/AcpiTables/Pci.asl b/Platform/Raspberry= Pi/AcpiTables/Pci.asl index dc2bd7bc9e..50fe2cbdf2 100644 --- a/Platform/RaspberryPi/AcpiTables/Pci.asl +++ b/Platform/RaspberryPi/AcpiTables/Pci.asl @@ -62,6 +62,13 @@ DefinitionBlock (__FILE__, "SSDT", 5, "RPIFDN", "RPI4P= CIE", 2) Package (4) { 0x0000FFFF, 3, zero, 178 } }) =20 + Name (_DSD, Package () { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "linux-ecam-quirk-id", "bcm2711" }, + } + }) + // Root complex resources Method (_CRS, 0, Serialized) { Name (RBUF, ResourceTemplate () { --=20 2.13.7