提交 b393b059 编写于 作者: V vit9696

OpenCoreKernel: Support PowerTimeoutKernelPanic option

上级 ad6eacd7
......@@ -4,6 +4,7 @@ OpenCore Changelog
- Fixed `MinKernel` and `MaxKernel` logic (thx @dhinakg, @reitermarkus)
- Fixed ASSERT when booting non-Apple OSes without arguments from the DEBUG version
- Added `MmioWhitelist` configuration option
- Added `PowerTimeoutKernelPanic` kernel quirk
#### v0.5.1
- Added support of kernel resource kext injection
......
......@@ -1728,6 +1728,18 @@ blocking.
\textbf{Description}: Prevent kernel from printing kext dump in the panic
log preventing from observing panic details. Affects 10.13 and above.
\item
\texttt{PowerTimeoutKernelPanic}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Disables kernel panic on setPowerState timeout.
An additional security measure was added to macOS Catalina (10.15) causing
kernel panic on power change timeout for Apple drivers. Sometimes it may cause
issues on misconfigured hardware, notably digital audio, which sometimes fails
to wake up. For debug kernels \texttt{setpowerstate\_panic=0} boot argument
should be used, which is otherwise equivalent to this quirk.
\item
\texttt{ThirdPartyTrim}\\
\textbf{Type}: \texttt{plist\ boolean}\\
......
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Mon Oct 7 11:21:04 2019
%DIF ADD ../Configuration.tex Wed Oct 16 11:44:08 2019
%DIF ADD ../Configuration.tex Thu Oct 17 11:36:19 2019
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
......@@ -1165,10 +1165,11 @@ To view their current state use \texttt{pmset -g} command in Terminal.
\DIFdelbegin \emph{\DIFdel{Note}}%DIFAUXCMD
\DIFdel{: }\DIFdelend This option is generally useful on \DIFdelbegin \DIFdel{APTIO V firmwares (Broadwell and
newer)}\DIFdelend \DIFaddbegin \DIFadd{all firmwares except some very old ones,
newer). }\DIFdelend \DIFaddbegin \DIFadd{all firmwares except some very old ones,
like Sandy Bridge. On select firmwares it may require a list of exceptional
addresses that still need to get their virtual addresses for proper NVRAM and
hibernation functioning. Use }\texttt{\DIFadd{MmioWhitelist}} \DIFadd{section to do this}\DIFaddend .
hibernation functioning. Use }\texttt{\DIFadd{MmioWhitelist}} \DIFadd{section to do this.
}\DIFaddend
\item
\texttt{DisableSingleUser}\\
......@@ -1794,7 +1795,21 @@ blocking.
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Prevent kernel from printing kext dump in the panic
log preventing from observing panic details. Affects 10.13 and above.
log preventing from observing panic details. Affects 10.13 and above\DIFaddbegin \DIFadd{.
}
\item
\texttt{\DIFadd{PowerTimeoutKernelPanic}}\\
\textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
\textbf{\DIFadd{Failsafe}}\DIFadd{: }\texttt{\DIFadd{false}}\\
\textbf{\DIFadd{Description}}\DIFadd{: Disables kernel panic on setPowerState timeout.
}
\DIFadd{An additional security measure was added to macOS Catalina (10.15) causing
kernel panic on power change timeout for Apple drivers. Sometimes it may cause
issues on misconfigured hardware, notably digital audio, which sometimes fails
to wake up. For debug kernels }\texttt{\DIFadd{setpowerstate\_panic=0}} \DIFadd{boot argument
should be used, which is otherwise equivalent to this quirk}\DIFaddend .
\item
\texttt{ThirdPartyTrim}\\
......
......@@ -511,6 +511,8 @@
<false/>
<key>PanicNoKextDump</key>
<false/>
<key>PowerTimeoutKernelPanic</key>
<false/>
<key>ThirdPartyTrim</key>
<false/>
<key>XhciPortLimit</key>
......
......@@ -511,6 +511,8 @@
<false/>
<key>PanicNoKextDump</key>
<false/>
<key>PowerTimeoutKernelPanic</key>
<false/>
<key>ThirdPartyTrim</key>
<false/>
<key>XhciPortLimit</key>
......
......@@ -461,6 +461,10 @@ OcKernelApplyPatches (
if (Config->Kernel.Quirks.LapicKernelPanic) {
PatchLapicKernelPanic (&Patcher);
}
if (Config->Kernel.Quirks.PowerTimeoutKernelPanic) {
PatchPowerStateTimeout (&Patcher);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册