x86/PCI: Move and shrink AMD 64-bit window to avoid conflict
author=?UTF-8?q?Christian=20K=C3=B6nig?= <ckoenig.leichtzumerken@gmail.com>
Thu, 11 Jan 2018 13:23:30 +0000 (14:23 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 11 Jan 2018 18:01:58 +0000 (12:01 -0600)
commit03a551734cfc2b93f83950a595974e3c9cbd82fd
tree51e78945b9696c8ec7219ed412ee75607e4a11c8
parentf32ab7547161b9fa7ebfbc4f18ea1eb3fd49fe25
x86/PCI: Move and shrink AMD 64-bit window to avoid conflict

Avoid problems with BIOS implementations which don't report all used
resources to the OS by only allocating a 256GB window directly below the
hardware limit (from the BKDG, sec 2.4.6).

Fixes a silent reboot loop reported by Aaro Koskinen <aaro.koskinen@iki.fi>
on an AMD-based MSI MS-7699/760GA-P43(FX) system.  This was apparently
caused by RAM or other unreported hardware that conflicted with the new
window.

Link: https://support.amd.com/TechDocs/49125_15h_Models_30h-3Fh_BKDG.pdf
Link: https://lkml.kernel.org/r/20180105220412.fzpwqe4zljdawr36@darkstar.musicnaut.iki.fi
Fixes: fa564ad96366 ("x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00-1f, 30-3f, 60-7f)")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Christian König <christian.koenig@amd.com>
[bhelgaas: changelog, comment, Fixes:]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
arch/x86/pci/fixup.c