summaryrefslogtreecommitdiffstats
path: root/0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch
diff options
context:
space:
mode:
Diffstat (limited to '0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch')
-rw-r--r--0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch b/0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch
new file mode 100644
index 000000000..22b0c6e3e
--- /dev/null
+++ b/0003-x86-PCI-limit-the-size-of-the-64bit-BAR-to-256GB.patch
@@ -0,0 +1,33 @@
+From e5d5c9682aa02a6b9c0c6bd446d433b924441679 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Tue, 28 Nov 2017 10:02:35 +0100
+Subject: [PATCH 3/3] x86/PCI: limit the size of the 64bit BAR to 256GB
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This avoids problems with Xen which hides some memory resources from the
+OS and potentially also allows memory hotplug while this fixup is
+enabled.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+---
+ arch/x86/pci/fixup.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c
+index c817ab85dc82..149adbc7f2a3 100644
+--- a/arch/x86/pci/fixup.c
++++ b/arch/x86/pci/fixup.c
+@@ -701,7 +701,7 @@ static void pci_amd_enable_64bit_bar(struct pci_dev *dev)
+ res->name = "PCI Bus 0000:00";
+ res->flags = IORESOURCE_PREFETCH | IORESOURCE_MEM |
+ IORESOURCE_MEM_64 | IORESOURCE_WINDOW;
+- res->start = 0x100000000ull;
++ res->start = 0xbd00000000ull;
+ res->end = 0xfd00000000ull - 1;
+
+ /* Just grab the free area behind system memory for this */
+--
+2.11.0
+