Add specific MMIO region for B650 and X670 motherboard chipsets

This commit is contained in:
Hoang Hong Quan
2024-09-28 06:36:35 +07:00
parent bfbaeb7c75
commit 148b43a9ee

View File

@@ -20,13 +20,19 @@ class ConfigProdigy:
"Comet Lake": "55060A00"
}
def mmio_whitelist(self, cpu_codename):
def mmio_whitelist(self, motherboard_chipset):
booter_mmiowhitelist = []
if "Ice Lake" in cpu_codename:
if "Ice Lake" in motherboard_chipset:
booter_mmiowhitelist.append({
"Address": 4284481536,
"Comment": "MMIO 0xFF600000 Ice Lake",
"Comment": "MMIO 0xFF600000",
"Enable": True
})
elif "B650" in motherboard_chipset or "X670" in motherboard_chipset:
booter_mmiowhitelist.append({
"Address": 4244635648,
"Comment": "MMIO 0xFD000000",
"Enable": True
})
@@ -233,7 +239,7 @@ class ConfigProdigy:
config["ACPI"]["Delete"] = efi_option.get("ACPI").get("Delete")
config["ACPI"]["Patch"] = efi_option.get("ACPI").get("Patch")
config["Booter"]["MmioWhitelist"] = self.mmio_whitelist(hardware.get("CPU Codename"))
config["Booter"]["MmioWhitelist"] = self.mmio_whitelist(hardware.get("Motherboard Chipset"))
config["Booter"]["Patch"] = []
config["Booter"]["Quirks"]["DevirtualiseMmio"] = self.check_mats_support(hardware.get("CPU Manufacturer"), hardware.get("Motherboard Chipset"))
if "AMD" in hardware.get("CPU Manufacturer") and not "TRX40" in hardware.get("Motherboard Chipset"):