AMD-OSX / bugtracker

AMD OS X Bugtracker
13 stars 2 forks source link

Recent patch panic on BigSur Beta10 #105

Closed rchunping closed 2 years ago

rchunping commented 4 years ago

https://github.com/AMD-OSX/AMD_Vanilla/commit/a7033c752ad22a6527077126eb68b762d524ccd0#diff-716ecf037e70509f402e3e5e9d139cec129b389869981202a857e1b2256753d5

-               <string>algrey - mtrr_update_action - fix PAT</string>
+               <string>Shaneee - mtrr_update_action - fix PAT</string>

-               <data>uXcCAAC4BgEHALoGAQcADx9AAA==</data>
+               <data>
+               uXcCAAC4BgYGBroGBgYGDzAPCQ==
+               </data>
panic(cpu 14 caller 0xffffff7fbbdb115b): "virtual bool IOAccelLegacyDisplayMachine::display_mode_did_change(uint32_t): Uninitialized NVIDIA GPU driver returns false"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/IOAcceleratorFamily_kexts/IOAcceleratorFamily-439.35.4/Kext2/IOAccelLegacyDisplayMachine.cpp:267
Backtrace (CPU 14), Frame : Return Address
0xffffffc11a8f35a0 : 0xffffff801c4b666d mach_kernel : _handle_debugger_trap + 0x3dd
0xffffffc11a8f35f0 : 0xffffff801c5f8f93 mach_kernel : _kdp_i386_trap + 0x143
0xffffffc11a8f3630 : 0xffffff801c5e95ca mach_kernel : _kernel_trap + 0x55a
0xffffffc11a8f3680 : 0xffffff801c45ba2f mach_kernel : _return_from_trap + 0xff
0xffffffc11a8f36a0 : 0xffffff801c4b5f0d mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffc11a8f37c0 : 0xffffff801c4b61f8 mach_kernel : _panic_trap_to_debugger + 0x268
0xffffffc11a8f3830 : 0xffffff801ccb792a mach_kernel : _panic + 0x54
0xffffffc11a8f38a0 : 0xffffff7fbbdb115b com.apple.iokit.IOAcceleratorFamily2 : __ZN27IOAccelLegacyDisplayMachine23display_mode_did_changeEj.cold.1 + 0x23
0xffffffc11a8f38b0 : 0xffffff7fbbd5bea6 com.apple.iokit.IOAcceleratorFamily2 : __ZN27IOAccelLegacyDisplayMachine25find_primary_display_pipeEP24IOAccelLegacyDisplayPipe
0xffffffc11a8f38f0 : 0xffffff7fbbda3a61 com.apple.iokit.IOAcceleratorFamily2 : __ZN18IOAccelDisplayPipe22display_change_handlerEPvP13IOFramebufferiS0_ + 0x149
0xffffffc11a8f3930 : 0xffffff7fbbed35bc com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer24deliverGroupNotificationEijbiPv + 0x354
0xffffffc11a8f3a70 : 0xffffff7fbbebdbbd com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer30deliverFramebufferNotificationEiPv + 0x193
0xffffffc11a8f3b00 : 0xffffff7fbbec8fd5 com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer39deliverDisplayModeDidChangeNotificationEv + 0x15
0xffffffc11a8f3b20 : 0xffffff7fbbecd6f2 com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer4openEv + 0x646
0xffffffc11a8f3ba0 : 0xffffff7fbbec39e4 com.apple.iokit.IOGraphicsFamily : __ZN13IOFramebuffer13newUserClientEP4taskPvjPP12IOUserClient + 0x264
0xffffffc11a8f3c30 : 0xffffff7fbc396eb1 com.apple.nvidia.driver.NVDAResman : __ZN4NVDA13newUserClientEP4taskPvjPP12IOUserClient + 0xb3
0xffffffc11a8f3c80 : 0xffffff801cbe204b mach_kernel : __ZN9IOService13newUserClientEP4taskPvjP12OSDictionaryPP12IOUserClient + 0x6b
0xffffffc11a8f3ce0 : 0xffffff801cc47852 mach_kernel : _is_io_service_open_extended + 0x162
0xffffffc11a8f3d40 : 0xffffff801c5a443f mach_kernel : _iokit_server_routine + 0x484f
0xffffffc11a8f3d90 : 0xffffff801c4bbc97 mach_kernel : _ipc_kobject_server + 0x337
0xffffffc11a8f3e00 : 0xffffff801c4925c5 mach_kernel : _ipc_kmsg_send + 0x115
0xffffffc11a8f3e60 : 0xffffff801c4a9b72 mach_kernel : _mach_msg_overwrite_trap + 0x2d2
0xffffffc11a8f3ef0 : 0xffffff801c5cd743 mach_kernel : _mach_call_munger64 + 0x273
0xffffffc11a8f3fa0 : 0xffffff801c45c216 mach_kernel : _hndl_mach_scall64 + 0x16
      Kernel Extensions in backtrace:
         com.apple.iokit.IOGraphicsFamily(585.0)[8151B7E2-974F-32AD-BBFB-E8C9E421473D]@0xffffff7fbbeb3000->0xffffff7fbbee1fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[CD9AB596-4346-3922-B275-92579AB71D07]@0xffffff801edef000->0xffffff801ee16fff
         com.apple.nvidia.driver.NVDAResman(16.0)[879FE28C-BC88-3553-B3C7-1CCFAE357D45]@0xffffff7fbc392000->0xffffff7fbc60bfff
            dependency: com.apple.AppleGraphicsDeviceControl(6.1.27)[9DC6BF71-20DA-3170-A20F-08CE9C2EDE11]@0xffffff7fba60d000->0xffffff7fba610fff
            dependency: com.apple.iokit.IOGraphicsFamily(585)[8151B7E2-974F-32AD-BBFB-E8C9E421473D]@0xffffff7fbbeb3000->0xffffff7fbbee1fff
            dependency: com.apple.iokit.IONDRVSupport(585)[834B275F-FCE3-3ECA-9617-FE7CB139DAC6]@0xffffff7fbbef8000->0xffffff7fbbf00fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[CD9AB596-4346-3922-B275-92579AB71D07]@0xffffff801edef000->0xffffff801ee16fff
         com.apple.iokit.IOAcceleratorFamily2(439.35.4)[3E69600F-6D9D-3844-A9C9-049FBDDB73F0]@0xffffff7fbbd5b000->0xffffff7fbbdc4fff
            dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[49AE6B33-CCA2-34FE-A65A-F4D7C0C0D415]@0xffffff801d9db000->0xffffff801d9effff
            dependency: com.apple.iokit.IOGraphicsFamily(585)[8151B7E2-974F-32AD-BBFB-E8C9E421473D]@0xffffff7fbbeb3000->0xffffff7fbbee1fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[CD9AB596-4346-3922-B275-92579AB71D07]@0xffffff801edef000->0xffffff801ee16fff
            dependency: com.apple.iokit.IOReportFamily(47)[CA61C5AE-5FC0-3924-86D7-694C4FEE5F02]@0xffffff801ee25000->0xffffff801ee27fff
            dependency: com.apple.iokit.IOSurface(289.3)[93A37773-5E4D-3208-8E6B-48019AF3DCB3]@0xffffff801ef36000->0xffffff801ef51fff

Process name corresponding to current thread: WindowServer
Boot args: -v keepsyms=1 debug=0x100 npci=0x2000 shikigva=40 shiki-id=Mac-7BA5B2D9E42DDD94 

Mac OS version:
20A5395g

Kernel version:
Darwin Kernel Version 20.1.0: Wed Oct  7 21:17:40 PDT 2020; root:xnu-7195.40.137.201.1~1/RELEASE_X86_64
Kernel UUID: xxxxxx
KernelCache slide: 0x000000001c200000
KernelCache base:  0xffffff801c400000
Kernel slide:      0x000000001c210000
Kernel text base:  0xffffff801c410000
__HIB  text base: 0xffffff801c300000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: NO (0xe00002bc)
Hibernation exit count: 0

System uptime in nanoseconds: 39698606702
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x000000093e38ac95
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x000000190b1d81e8 0x0000000000000000
Opencore 0.6.2
CPU: 3700X
Motherboard: (GIGABYTE)X570 I AORUS PRO WIFI
GPU: NVIDIA Quadro K2000 2 GB

commit fcde40d23d33cedc9a0cc31528cb4e9bd7eada16 is ok.

rchunping commented 4 years ago

More info: Tested on two BigSur Beta10 (20A5395g)

OC 0.6.2
3700X+32G
(GIGABYTE)X570 I AORUS PRO WIFI
NVIDIA Quadro K2000
OC 0.6.2
1600+16G
(GIGABYTE)AB350M-D3H
NVIDIA Quadro K2000
commit fcde40d No Panic No Panic
commit a7033c7 Panic (auto restart before login screen) No Panic
tarbaII commented 2 years ago

Closing as Shaneee's PAT patch doesn't support NVIDIA GPUs. The current patches have the option to use Algrey's PAT patch instead.