acidanthera / bugtracker

Acidanthera Bugtracker
382 stars 44 forks source link

HoRNDIS rarely crashes due to coreaudiod. AppleALC or/and Ryzentosh problem? #939

Closed PSzczepanski1996 closed 4 years ago

PSzczepanski1996 commented 4 years ago

https://github.com/jwise/HoRNDIS/issues/121

Panic(CPU 11, time 12702490340): NMIPI for unresponsive processor: TLB flush timeout, TLB state:0x0
RAX: 0x0000000000000180, RBX: 0xffffff8041005520, RCX: 0x0000000000360d91, RDX: 0x0000000000000005
RSP: 0xffffff8210433f20, RBP: 0xffffff8210433f30, RSI: 0x0000000000000005, RDI: 0x00000002f5209ab6
R8:  0x0000000000000000, R9:  0x0000000000989680, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0xffffff8016543fe0, R13: 0x0000000000000000, R14: 0xffffff8016ec2ca0, R15: 0x0000000000000000
RFL: 0x0000000000000212, RIP: 0xffffff80165da12d, CS:  0x0000000000000008, SS:  0x0000000000000010
Backtrace (CPU 11), Frame : Return Address
0xffffff81ff64cf80 : 0xffffff801664b77b mach_kernel : _interrupt + 0x12b
0xffffff81ff64cfd0 : 0xffffff80164c7bed mach_kernel : _hndl_allintrs + 0x11d
0xffffff8210433f30 : 0xffffff8016544094 mach_kernel : _sched_timeshare_maintenance_continue + 0xb4
0xffffff8210433fa0 : 0xffffff80164c713e mach_kernel : _call_continuation + 0x2e

BSD process name corresponding to current thread: kernel_task
Boot args: -v debug=0x100 keepsyms=1 npci=0x2000 agdpmod=pikera alcid=1 

Mac OS version:
19E287

Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide:     0x0000000016200000
Kernel text base: 0xffffff8016400000
__HIB  text base: 0xffffff8016300000
System model name: MacPro7,1 (Mac-27AD2F918AE68F61)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 12702607691
panic(cpu 6 caller 0xffffff8016627a9b): "IPI timeout, unresponsive CPU bitmap: 0x800, NMIPI acks: 0x0, now: 0x1, deadline: 12583010147, pre-NMIPI time: 0x2f5209962, current: 0x2f5226c2f, global: 0"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.101.6/osfmk/x86_64/pmap.c:2909
Backtrace (CPU 6), Frame : Return Address
0xffffff8211b9b690 : 0xffffff80165215cd mach_kernel : _handle_debugger_trap + 0x49d
0xffffff8211b9b6e0 : 0xffffff801665a3c5 mach_kernel : _kdp_i386_trap + 0x155
0xffffff8211b9b720 : 0xffffff801664bf7e mach_kernel : _kernel_trap + 0x4ee
0xffffff8211b9b770 : 0xffffff80164c7a40 mach_kernel : _return_from_trap + 0xe0
0xffffff8211b9b790 : 0xffffff8016520c97 mach_kernel : _DebuggerTrapWithState + 0x17
0xffffff8211b9b890 : 0xffffff8016521087 mach_kernel : _panic_trap_to_debugger + 0x227
0xffffff8211b9b8e0 : 0xffffff8016cc2c7c mach_kernel : _panic + 0x54
0xffffff8211b9b950 : 0xffffff8016627a9b mach_kernel : _pmap_flush_tlbs + 0x83b
0xffffff8211b9ba00 : 0xffffff801662d792 mach_kernel : _pmap_remove_range_options + 0x3a2
0xffffff8211b9bae0 : 0xffffff801662e526 mach_kernel : _pmap_remove_options + 0x1f6
0xffffff8211b9bb40 : 0xffffff80165ba2d5 mach_kernel : _vm_map_destroy + 0x8d5
0xffffff8211b9bc90 : 0xffffff80165c1c9e mach_kernel : _vm_map_remove + 0x5e
0xffffff8211b9bcc0 : 0xffffff80165b5676 mach_kernel : _kmem_free + 0x86
0xffffff8211b9bcf0 : 0xffffff8016bb795f mach_kernel : __ZN11OSSerialize4freeEv + 0x4f
0xffffff8211b9bd10 : 0xffffff8016c5c6fe mach_kernel : _is_io_registry_entry_get_properties_bin_buf + 0x1ae
0xffffff8211b9bd80 : 0xffffff801660be73 mach_kernel : _iokit_server_routine + 0x7133
0xffffff8211b9bdb0 : 0xffffff8016527328 mach_kernel : _ipc_kobject_server + 0x238
0xffffff8211b9be10 : 0xffffff80164fdcc5 mach_kernel : _ipc_kmsg_send + 0x135
0xffffff8211b9be70 : 0xffffff8016514aa2 mach_kernel : _mach_msg_overwrite_trap + 0x2d2
0xffffff8211b9bf00 : 0xffffff8016632605 mach_kernel : _mach_call_munger64 + 0x205
0xffffff8211b9bfa0 : 0xffffff80164c8226 mach_kernel : _hndl_mach_scall64 + 0x16

BSD process name corresponding to current thread: coreaudiod

This appears to crash not always, but at some random times. I suppose this is HoRNDIS bug or something is broken in AppleALC, or this is my fault because I use Ryzen. Or this is something releated to Apple services, but nobody mentioned that issue in HoRNDIS repo. so I assume this is releated to Hackintosh.

Will prepare more details as I will return from work (EFI folder too).

vit9696 commented 4 years ago

There is a stall of some cpu core caused by some driver, which is not visible in the panic trace. I guess it is very likely that the culprit is your USB driver. Closing as not ours.