[edk2-devel] [PATCH edk2-platforms 2/4] Platform/AMD/Styx: simplify PCIe root bus MMIO resources

Ard Biesheuvel ard.biesheuvel at arm.com
Fri Jan 8 14:28:48 UTC 2021


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 <ard.biesheuvel at arm.com>
---
 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



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70050): https://edk2.groups.io/g/devel/message/70050
Mute This Topic: https://groups.io/mt/79524311/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list