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.web11.377.1610116138962004692 for ; Fri, 08 Jan 2021 06:28:59 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@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 911C111FB; Fri, 8 Jan 2021 06:28:58 -0800 (PST) Received: from e123331-lin.nice.arm.com (unknown [10.37.8.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B1D403F70D; Fri, 8 Jan 2021 06:28:57 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH edk2-platforms 2/4] Platform/AMD/Styx: simplify PCIe root bus MMIO resources Date: Fri, 8 Jan 2021 15:28:48 +0100 Message-Id: <20210108142850.14535-2-ard.biesheuvel@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210108142850.14535-1-ard.biesheuvel@arm.com> References: <20210108142850.14535-1-ard.biesheuvel@arm.com> There is no need to split up adjacent MMIO resources into separate DWordMemory() or QWordMemory() declarations, so just merge them together. Signed-off-by: Ard Biesheuvel --- Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Dsdt.asl | 67 +------------------- 1 file changed, 2 insertions(+), 65 deletions(-) diff --git a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Dsdt.asl b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Dsdt.asl index 3a3bdcad627e..2ee6ea3b1eb1 100644 --- a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Dsdt.asl +++ b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/Dsdt.asl @@ -353,79 +353,16 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "AMDINC", "SEATTLE ", 3) DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0x00000000, // Granularity 0x40000000, // Range Minimum - 0x5FFFFFFF, // Range Maximum - 0x00000000, // Translation Offset - 0x20000000 // Length - ) - DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x00000000, // Granularity - 0x60000000, // Range Minimum - 0x7FFFFFFF, // Range Maximum - 0x00000000, // Translation Offset - 0x20000000 // Length - ) - DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x00000000, // Granularity - 0x80000000, // Range Minimum - 0x9FFFFFFF, // Range Maximum - 0x00000000, // Translation Offset - 0x20000000 // Length - ) - DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x00000000, // Granularity - 0xA0000000, // Range Minimum 0xBFFFFFFF, // Range Maximum 0x00000000, // Translation Offset - 0x20000000 // Length + 0x80000000 // Length ) QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, 0x0000000000000000, // Granularity 0x0000000100000000, // Range Minimum - 0x00000001FFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000000100000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000000200000000, // Range Minimum - 0x00000003FFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000000200000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000000400000000, // Range Minimum - 0x00000007FFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000000400000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000000800000000, // Range Minimum - 0x0000000FFFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000000800000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000001000000000, // Range Minimum - 0x0000001FFFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000001000000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000002000000000, // Range Minimum - 0x0000003FFFFFFFFF, // Range Maximum - 0x0000000000000000, // Translation Offset - 0x0000002000000000 // Length - ) - QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, NonCacheable, ReadWrite, - 0x0000000000000000, // Granularity - 0x0000004000000000, // Range Minimum 0x0000007FFFFFFFFF, // Range Maximum 0x0000000000000000, // Translation Offset - 0x0000004000000000 // Length + 0x0000007F00000000 // Length ) DWordIo (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange, 0x00000000, // Granularity -- 2.17.1