diff --git a/Changelog.md b/Changelog.md
index d596ff9e..38b090cc 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -24,6 +24,8 @@ OpenCore Changelog
- Added `WriteFlash` NVRAM option to enable writing variables in `Add`
- Added `LegacyOverwrite` NVRAM option to allow overwriting variables by nvram.plist
- Added `AppleXcpmForceBoost` kernel quirk to maximise select Xeon performance
+- Bundled NvmExpressDxe and XhciDxe drivers for platforms that need them
+- Added `IncreasePciBarSize` kernel quirk for select platforms with PCI space issues
#### v0.5.3
- Update builtin firmware versions
diff --git a/Docs/Configuration.pdf b/Docs/Configuration.pdf
index 9698a8cd..04970ff8 100644
Binary files a/Docs/Configuration.pdf and b/Docs/Configuration.pdf differ
diff --git a/Docs/Configuration.tex b/Docs/Configuration.tex
index 42c7c8b8..6efa1ab4 100755
--- a/Docs/Configuration.tex
+++ b/Docs/Configuration.tex
@@ -1887,6 +1887,15 @@ blocking.
\emph{Note}: This option should be avoided whenever possible. Modern firmwares
usually have compatible AHCI controllers.
+\item
+ \texttt{IncreasePciBarSize}\\
+ \textbf{Type}: \texttt{plist\ boolean}\\
+ \textbf{Failsafe}: \texttt{false}\\
+ \textbf{Description}: Increases 32-bit PCI bar size in IOPCIFamily from 1 to 4 GBs.
+
+ \emph{Note}: This option should be avoided whenever possible. In general the necessity
+ of this option means misconfigured or broken firmware.
+
\item
\texttt{LapicKernelPanic}\\
\textbf{Type}: \texttt{plist\ boolean}\\
diff --git a/Docs/Differences/Differences.pdf b/Docs/Differences/Differences.pdf
index 6680b367..b16d5fda 100644
Binary files a/Docs/Differences/Differences.pdf and b/Docs/Differences/Differences.pdf differ
diff --git a/Docs/Differences/Differences.tex b/Docs/Differences/Differences.tex
index 7e87ef0a..34e50e82 100644
--- a/Docs/Differences/Differences.tex
+++ b/Docs/Differences/Differences.tex
@@ -1,7 +1,7 @@
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Tue Dec 10 15:40:50 2019
-%DIF ADD ../Configuration.tex Sun Jan 12 17:07:53 2020
+%DIF ADD ../Configuration.tex Sun Jan 12 22:14:21 2020
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
@@ -1978,7 +1978,18 @@ blocking.
usually have compatible AHCI controllers.
\item
- \texttt{LapicKernelPanic}\\
+ \DIFaddbegin \texttt{\DIFadd{IncreasePciBarSize}}\\
+ \textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
+ \textbf{\DIFadd{Failsafe}}\DIFadd{: }\texttt{\DIFadd{false}}\\
+ \textbf{\DIFadd{Description}}\DIFadd{: Increases 32-bit PCI bar size in IOPCIFamily from 1 to 4 GBs.
+}
+
+ \emph{\DIFadd{Note}}\DIFadd{: This option should be avoided whenever possible. In general the necessity
+ of this option means misconfigured or broken firmware.
+}
+
+\item
+ \DIFaddend \texttt{LapicKernelPanic}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Disables kernel panic on LAPIC interrupts.
diff --git a/Docs/Sample.plist b/Docs/Sample.plist
index 10d1204b..415e2929 100644
--- a/Docs/Sample.plist
+++ b/Docs/Sample.plist
@@ -533,6 +533,8 @@
ExternalDiskIcons
+ IncreasePciBarSize
+
LapicKernelPanic
PanicNoKextDump
diff --git a/Docs/SampleFull.plist b/Docs/SampleFull.plist
index b809cfed..f8e01165 100644
--- a/Docs/SampleFull.plist
+++ b/Docs/SampleFull.plist
@@ -533,6 +533,8 @@
ExternalDiskIcons
+ IncreasePciBarSize
+
LapicKernelPanic
PanicNoKextDump
diff --git a/Platform/OpenCore/OpenCoreKernel.c b/Platform/OpenCore/OpenCoreKernel.c
index bd9c059f..76f15baf 100644
--- a/Platform/OpenCore/OpenCoreKernel.c
+++ b/Platform/OpenCore/OpenCoreKernel.c
@@ -430,6 +430,10 @@ OcKernelApplyPatches (
PatchAppleIoMapperSupport (Context);
}
+ if (Config->Kernel.Quirks.IncreasePciBarSize) {
+ PatchIncreasePciBarSize (Context);
+ }
+
if (Config->Kernel.Quirks.CustomSmbiosGuid) {
PatchCustomSmbiosGuid (Context);
}