OpenCoreKernel: Implement IncreasePciBarSize support

This commit is contained in:
vit9696 2020-01-12 22:31:25 +03:00
parent 98346c131f
commit cd65634a77
8 changed files with 32 additions and 2 deletions

View File

@ -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

Binary file not shown.

View File

@ -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}\\

Binary file not shown.

View File

@ -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.

View File

@ -533,6 +533,8 @@
<false/>
<key>ExternalDiskIcons</key>
<false/>
<key>IncreasePciBarSize</key>
<false/>
<key>LapicKernelPanic</key>
<false/>
<key>PanicNoKextDump</key>

View File

@ -533,6 +533,8 @@
<false/>
<key>ExternalDiskIcons</key>
<false/>
<key>IncreasePciBarSize</key>
<false/>
<key>LapicKernelPanic</key>
<false/>
<key>PanicNoKextDump</key>

View File

@ -430,6 +430,10 @@ OcKernelApplyPatches (
PatchAppleIoMapperSupport (Context);
}
if (Config->Kernel.Quirks.IncreasePciBarSize) {
PatchIncreasePciBarSize (Context);
}
if (Config->Kernel.Quirks.CustomSmbiosGuid) {
PatchCustomSmbiosGuid (Context);
}