RE: Bug report: the extended PCI config space is missed with 6.2-rc2

From: Luck, Tony
Date: Fri Jan 06 2023 - 17:31:23 EST


> Thanks! Ah, off-by-one error because e820__mapped_all() expects
> "[start, end)" which means is_acpi_reserved() and is_efi_mmio() must
> use the same, and I was thinking "[start, end]" like a struct
> resource.
>
> The below should work better.

Applied in place of earlier patch.

The basic MMCONFIG messages look better:

$ dmesg | grep MMCONFIG
[ 12.985055] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0x80000000-0x8fffffff] (base 0x80000000)
[ 13.078050] PCI: not using MMCONFIG
[ 13.666053] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0x80000000-0x8fffffff] (base 0x80000000)
[ 13.795049] PCI: MMCONFIG at [mem 0x80000000-0x8fffffff] reserved in ACPI motherboard resources or EFI

Full dmesg attached.

-Tony

Attachment: dmesg.gz
Description: dmesg.gz