[PATCH v2 0/3] x86/PCI: Log E820 clipping

From: Bjorn Helgaas
Date: Thu Apr 14 2022 - 14:23:03 EST


From: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

This is still work-in-progress on the issue of PNP0A03 _CRS methods that
are buggy or not interpreted correctly by Linux.

The previous try at:
https://lore.kernel.org/r/20220304035110.988712-1-helgaas@xxxxxxxxxx
caused regressions on some Chromebooks:
https://lore.kernel.org/r/Yjyv03JsetIsTJxN@xxxxxxxxxxxxx

This v2 drops the commit that caused the Chromebook regression, so it also
doesn't fix the issue we were *trying* to fix on Lenovo Yoga and Clevo
Barebones.

The point of this v2 update is to split the logging patch into (1) a pure
logging addition and (2) the change to only clip PCI windows, which was
previously hidden inside the logging patch and not well documented.

Bjorn Helgaas (3):
x86/PCI: Eliminate remove_e820_regions() common subexpressions
x86: Log resource clipping for E820 regions
x86/PCI: Clip only host bridge windows for E820 regions

arch/x86/include/asm/e820/api.h | 5 +++++
arch/x86/kernel/resource.c | 23 ++++++++++++++++-------
arch/x86/pci/acpi.c | 5 +++++
3 files changed, 26 insertions(+), 7 deletions(-)

--
2.25.1