diff --git a/Changelog.md b/Changelog.md index 756ff695..f31fb872 100644 --- a/Changelog.md +++ b/Changelog.md @@ -21,6 +21,7 @@ OpenCore Changelog - Updated builtin firmware versions for SMBIOS and the rest - Fixed patching of ACPI tables in low memory - Fixed macOS 11.0 DMG recovery loading without hotplug +- Fixed `XhciPortLimit` quirk on 10.12.6 and possibly other versions #### v0.6.0 - Fixed sound corruption with AudioDxe diff --git a/Docs/Configuration.tex b/Docs/Configuration.tex index d0746dab..1c766cf4 100755 --- a/Docs/Configuration.tex +++ b/Docs/Configuration.tex @@ -2219,7 +2219,7 @@ blocking. \texttt{ThirdPartyDrives}\\ \textbf{Type}: \texttt{plist\ boolean}\\ \textbf{Failsafe}: \texttt{false}\\ - \textbf{Requirement}: 10.6 (not required for older)\\ + \textbf{Requirement}: 10.6 (64-bit, not required for older)\\ \textbf{Description}: Apply vendor patches to IOAHCIBlockStorage.kext to enable native features for third-party drives, such as TRIM on SSDs or hibernation support on 10.15 and newer. @@ -2234,7 +2234,7 @@ blocking. \texttt{XhciPortLimit}\\ \textbf{Type}: \texttt{plist\ boolean}\\ \textbf{Failsafe}: \texttt{false}\\ - \textbf{Requirement}: FIXME\\ + \textbf{Requirement}: 10.11 (not required for older)\\ \textbf{Description}: Patch various kexts (AppleUSBXHCI.kext, AppleUSBXHCIPCI.kext, IOUSBHostFamily.kext) to remove USB port count limit of 15 ports. diff --git a/Library/OcAppleKernelLib/CommonPatches.c b/Library/OcAppleKernelLib/CommonPatches.c index 87313f82..e5d2502a 100644 --- a/Library/OcAppleKernelLib/CommonPatches.c +++ b/Library/OcAppleKernelLib/CommonPatches.c @@ -541,7 +541,7 @@ mRemoveUsbLimitV1Patch = { .Size = sizeof (mRemoveUsbLimitV1Replace), .Count = 1, .Skip = 0, - .Limit = 4096 + .Limit = 8192 }; STATIC @@ -703,9 +703,9 @@ PatchUsbXhciPortLimit3 ( // Status = PatcherApplyGenericPatch (Patcher, &mRemoveUsbLimitV1Patch); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "OCAK: Failed to apply patch com.apple.driver.usb.AppleUSBXHCIPCI - %r\n", Status)); + DEBUG ((DEBUG_INFO, "OCAK: Failed to apply legacy port patch AppleUSBXHCIPCI - %r\n", Status)); } else { - DEBUG ((DEBUG_INFO, "OCAK: Patch success com.apple.driver.usb.AppleUSBXHCIPCI\n")); + DEBUG ((DEBUG_INFO, "OCAK: Patch success apply legacy port AppleUSBXHCIPCI\n")); } // @@ -713,7 +713,7 @@ PatchUsbXhciPortLimit3 ( // if (EFI_ERROR (Status) && OcMatchDarwinVersion (KernelVersion, KERNEL_VERSION_HIGH_SIERRA_MIN, KERNEL_VERSION_HIGH_SIERRA_MAX)) { - DEBUG ((DEBUG_INFO, "OCAK: Assuming success for AppleUSBXHCIPCI on %u\n", KernelVersion)); + DEBUG ((DEBUG_INFO, "OCAK: Assuming success for legacy port AppleUSBXHCIPCI on %u\n", KernelVersion)); return EFI_SUCCESS; }