Skip to content

Commit

Permalink
JadePkg/AcpiTables: Fix mapping MMIO regions as cacheable
Browse files Browse the repository at this point in the history
This corrects the MMIO regions mapping in ACPI to be marked as
NonCacheable, aligning with the precise configuration in PCI-S0.asi.

Reported-by: Chuong Tran <[email protected]>
Signed-off-by: Nhi Pham <[email protected]>
  • Loading branch information
nhivp committed Dec 2, 2024
1 parent 65e64c0 commit d958585
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Platform/Ampere/JadePkg/Ac02AcpiTables/PCI-S0.Rca01.asi
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Device (PCI0) {
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000000040000000, // AddressMinimum - MIN
Expand All @@ -153,7 +153,7 @@ Device (PCI0) {
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000300000000000, // AddressMinimum - MIN
Expand Down Expand Up @@ -470,7 +470,7 @@ Device (PCI1) {
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000000050000000, // AddressMinimum - MIN
Expand All @@ -484,7 +484,7 @@ Device (PCI1) {
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000340000000000, // AddressMinimum - MIN
Expand Down
8 changes: 4 additions & 4 deletions Platform/Ampere/JadePkg/AcpiTables/PCI-S0.Rca01.asi
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000000040000000, // AddressMinimum - MIN
Expand All @@ -159,7 +159,7 @@
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000300000000000, // AddressMinimum - MIN
Expand Down Expand Up @@ -482,7 +482,7 @@
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000000050000000, // AddressMinimum - MIN
Expand All @@ -496,7 +496,7 @@
PosDecode, // Decode
MinFixed, // IsMinFixed
MaxFixed, // IsMaxFixed
Cacheable, // Cacheable
NonCacheable, // NonCacheable
ReadWrite, // ReadAndWrite
0x0000000000000000, // AddressGranularity - GRA
0x0000340000000000, // AddressMinimum - MIN
Expand Down

0 comments on commit d958585

Please sign in to comment.