>From 101e157babcef10b91edf91e7e6f03826c2f8ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Tue, 28 Nov 2017 10:02:35 +0100 Subject: [PATCH] x86/PCI: add 16GB guard between end of memory and new PCI window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a workaround for buggy BIOS implementations who steal memory for iGPUs from the OS without reporting it as reserved. Signed-off-by: Christian König Tested-by: Aaro Koskinen --- arch/x86/pci/fixup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index e663d6bf1328..e1bdae2cebb6 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -713,6 +713,10 @@ static void pci_amd_enable_64bit_bar(struct pci_dev *dev) } res->start = conflict->end + 1; } + /* Add 16GB guard between end of memory and new PCI window to work + * around buggy BIOS implementations. + */ + res->start += 0x400000000ull; dev_info(&dev->dev, "adding root bus resource %pR\n", res); -- 2.11.0