Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 macOS 15 出现无法睡眠、播放视频卡顿、无法关机等 5600 独立显卡造成的连锁反应 #81

Closed
icyleaf opened this issue Dec 20, 2024 · 0 comments

Comments

@icyleaf
Copy link
Owner

icyleaf commented Dec 20, 2024

#79 升级 macOS 15 后,不确定是不是用了 Opencore Legacy patcher 的原因会莫名出现各种问题:

  1. 偶发性睡眠后无法唤醒
  2. 播放视频卡顿、但声音播放正常
  3. 键盘输入也会卡卡的
  4. 无法关机

在查看 Console 或 dmesg 能找到如下的错误信息(搜索关键词 IOGPU、VTDecoderXPCService、AMDRadeonX6000):

显卡错误日志
Corpse released, count at 0
(IOAcceleratorFamily2) virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): a graphics error occurred, fRestartType = <2>, exiting..
(IOAcceleratorFamily2) void IOAccelEventMachine2::restart_channel(): GPURestartSkipped stampIdx=9 type=2
(IOAcceleratorFamily2) void IOAccelEventMachine2::restart_channel(): no channel associated with stamp_idx 9 (type 2)
(IOAcceleratorFamily2) virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): initial wait for 1 second expired. Continue wait for 4 seconds. stamp 55 (gpu_stamp=54)
(IOAcceleratorFamily2) virtual void IOAccelEventMachineFast2::checkGPUProgress() - Signaling hardware error on channel 9..
(IOAcceleratorFamily2) void IOAccelEventMachine2::signalHardwareError(eRestartRequest, int32_t): GPURestartSignaled stampIdx=9 type=2 prevType=0 numStamps=64
(IOAcceleratorFamily2) void IOAccelEventMachine2::signalHardwareError(eRestartRequest, int32_t): GPURestartEnqueued stampIdx=9 type=2
(IOAcceleratorFamily2) void IOAccelEventMachine2::hardwareErrorEvent(): setting restart type to 2 (channel 9)
(IOAcceleratorFamily2) void IOAccelEventMachine2::hardwareErrorEvent(): GPURestartDequeued stampIdx=9 type=2
(EndpointSecurity) Client connected (pid 285)
(EndpointSecurity) Client disconnected (pid 285, RTProtectionDaem)
memorystatus_update(enter): pid 20153, priority 210, dirty=0x0, Active(-1MB NF), Inactive(-1MB, NF)
memorystatus_update: init: limit on pid 20153 (-1MB F ) targeting priority(210) dirty?=0x0
memorystatus_control error: MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB(-1) returned -1 22 (Invalid argument)
memorystatus_control error: MEMORYSTATUS_CMD_CONVERT_MEMLIMIT_MB(0) returned -1 22 (Invalid argument)
键盘卡顿错误日志
[ 9803.218569]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.287655]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.400540]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.486570]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.551575]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.641521]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.733599]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.813563]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.818555]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.941537]: HID Activity Tickle (type:0 sender:100000510)
[ 9803.947534]: HID Activity Tickle (type:0 sender:100000510)
[ 9804.017538]: HID Activity Tickle (type:0 sender:100000510)
[ 9804.135545]: HID Activity Tickle (type:0 sender:100000510)
[ 9804.237511]: HID Activity Tickle (type:0 sender:100000510)
[ 9804.522025]: virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): a graphics error occurred, fRestartType = <2>, exiting..
[ 9805.522141]: virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): a graphics error occurred, fRestartType = <2>, exiting..
[ 9806.163757]: void IOAccelEventMachine2::restart_channel(): GPURestartSkipped stampIdx=15 type=2
[ 9806.163767]: void IOAccelEventMachine2::restart_channel(): no channel associated with stamp_idx 15 (type 2)
[ 9806.163981]: [Ring Table Debug] direction: 1, GT_CORE_STAT 800000, GT_PERF_STAT 4e2768, therm_stat: 88410000, fLastRequestedPriPState[2]: b
[ 9806.163995]: IG:: get_gstate:2466 (state=12, fPowerStatesEnable=1)
[ 9806.168062]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 482464, therm_stat: 88400000, fLastRequestedPriPState[2]: c
[ 9806.168087]: IG:: get_gstate:2466 (state=11, fPowerStatesEnable=1)
[ 9806.171770]: [Ring Table Debug] direction: 1, GT_CORE_STAT 800000, GT_PERF_STAT 4e2768, therm_stat: 88400000, fLastRequestedPriPState[2]: b
[ 9806.176299]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 482464, therm_stat: 88400000, fLastRequestedPriPState[2]: c
[ 9806.176343]: IG:: get_gstate:2466 (state=11, fPowerStatesEnable=1)
[ 9806.180695]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 4e2768, therm_stat: 883f0000, fLastRequestedPriPState[2]: b
[ 9806.180722]: IG:: get_gstate:2466 (state=10, fPowerStatesEnable=1)
[ 9806.199443]: [Ring Table Debug] direction: 1, GT_CORE_STAT 10800303, GT_PERF_STAT 0, therm_stat: 883f0000, fLastRequestedPriPState[2]: a
[ 9806.199453]: IG:: get_gstate:2466 (state=11, fPowerStatesEnable=1)
[ 9806.203523]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 4e2768, therm_stat: 883f0000, fLastRequestedPriPState[2]: b
[ 9806.203536]: IG:: get_gstate:2466 (state=10, fPowerStatesEnable=1)
[ 9806.221882]: IOConsoleUsers: time(0) 0->0, lin 1, llk 0,
[ 9806.221896]: IOConsoleUsers: gIOScreenLockState 1, hs 0, bs 0, now 0, sm 0x0
[ 9806.221936]: [Ring Table Debug] direction: 1, GT_CORE_STAT 10800303, GT_PERF_STAT 0, therm_stat: 883f0000, fLastRequestedPriPState[2]: a
[ 9806.221943]: IG:: get_gstate:2466 (state=11, fPowerStatesEnable=1)
[ 9806.222444]: IOHIDLibUserClient:0x100001084 resourceNotificationGated client not privileged

[ 9806.222450]: IOHIDLibUserClient:0x1000010b9 resourceNotificationGated client not privileged

[ 9806.222453]: IOHIDLibUserClient:0x100001086 resourceNotificationGated client not privileged

[ 9806.222455]: IOHIDLibUserClient:0x1000010b9 setValid: from false to true

[ 9806.222455]: IOHIDLibUserClient:0x1000010ba resourceNotificationGated client not privileged

[ 9806.222457]: IOHIDLibUserClient:0x1000010b9 setStateForQueues: 0x0

[ 9806.222460]: IOHIDLibUserClient:0x1000010bb resourceNotificationGated client not privileged

[ 9806.222469]: IOHIDLibUserClient:0x10000115a resourceNotificationGated client not privileged

[ 9806.222469]: IOHIDLibUserClient:0x10000115c resourceNotificationGated client not privileged

[ 9806.222471]: IOHIDLibUserClient:0x10000115b resourceNotificationGated client not privileged

[ 9806.222471]: IOHIDLibUserClient:0x10000115d resourceNotificationGated client not privileged

[ 9806.222473]: IOHIDLibUserClient:0x10000115f resourceNotificationGated client not privileged

[ 9806.222488]: IOHIDLibUserClient:0x1000016e1 resourceNotificationGated client not privileged

[ 9806.222493]: IOHIDLibUserClient:0x1000016e1 setValid: from false to true

[ 9806.222494]: IOHIDLibUserClient:0x1000016e1 setStateForQueues: 0x0

[ 9806.222494]: IOHIDLibUserClient:0x10000183a resourceNotificationGated client not privileged

[ 9806.222496]: IOHIDLibUserClient:0x1000016e9 resourceNotificationGated client not privileged

[ 9806.222498]: IOHIDLibUserClient:0x1000016e9 setValid: from false to true

[ 9806.222499]: IOHIDLibUserClient:0x1000016e9 setStateForQueues: 0x0

[ 9806.226037]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 4e2768, therm_stat: 883e0000, fLastRequestedPriPState[2]: b
[ 9806.226065]: IG:: get_gstate:2466 (state=10, fPowerStatesEnable=1)
[ 9806.233936]: [Ring Table Debug] direction: 1, GT_CORE_STAT 80800000, GT_PERF_STAT 542a6d, therm_stat: 883e0000, fLastRequestedPriPState[2]: a
[ 9806.233947]: IG:: get_gstate:2466 (state=11, fPowerStatesEnable=1)
[ 9806.238350]: [Ring Table Debug] direction: 0, GT_CORE_STAT 80800000, GT_PERF_STAT 4e2768, therm_stat: 883e0000, fLastRequestedPriPState[2]: b
[ 9806.238359]: IG:: get_gstate:2466 (state=10, fPowerStatesEnable=1)
[ 9806.280889]: 1 duplicate report for Sandbox: com.apple.WebKit.WebContent(4108) deny(1) mach-lookup com.apple.diagnosticdSandbox: homed(583) deny(1) mach-lookup com.apple.StatusKit.presence"AppleKeyStore":2713:147: bag->state:0, class_a_not_available:0, all_users_state_locked:0, all_users_system_locked:0
[ 9806.313727]: "AppleKeyStore":2730:147: state_change: 0, availability_change: 0
[ 9806.313751]: "AppleKeyStore":2178:147: vol-uuid: A6A1AE8A-FBD2-5922-AAAE-6BACD3CCCA8C, portable: 1, res: 0x0
[ 9806.313754]: "AppleKeyStore":3843:147: user b4334f98938b40de847039fdc048db5d unlock successful (0)

尝试了很多方案都无果,一度认为是买的矿卡偶发性出现问题,再切换 BIOS 或 Windows 系统重刷了好几次 BIOS(静音或鸡血)都问题依然。

逐个分析错误日志的关键词终于在 reddit 上找到了解决方案在 boot-args 追加 unfairgva=6

icyleaf added a commit that referenced this issue Dec 20, 2024
@icyleaf icyleaf closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant