Skip to content

Instantly share code, notes, and snippets.

@matthewfl
Created January 8, 2015 07:23
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthewfl/c85787174ab0c39fa911 to your computer and use it in GitHub Desktop.
patch for the linux kernel to change the way alignments for large memory request from pci devices are handled
diff -Naur linux-3.10.0-123.13.2.el7.mfl.x86_64/drivers/pci/setup-bus.c linux-3.10.0-123.13.2.el7.mfl.x86_64-patched/drivers/pci/setup-bus.c
--- linux-3.10.0-123.13.2.el7.mfl.x86_64/drivers/pci/setup-bus.c 2014-12-12 16:14:08.000000000 -0800
+++ linux-3.10.0-123.13.2.el7.mfl.x86_64-patched/drivers/pci/setup-bus.c 2015-01-05 01:05:16.111882902 -0800
@@ -962,8 +962,7 @@
dev_warn(&dev->dev, "disabling BAR %d: %pR "
"(bad alignment %#llx)\n", i, r,
(unsigned long long) align);
- r->flags = 0;
- continue;
+ order = 11;
}
size += r_size;
if (order < 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment