acidanthera / bugtracker

Acidanthera Bugtracker
385 stars 45 forks source link

CpuTscSync Monterey kernel panic on wake up #1900

Closed gulios closed 2 years ago

gulios commented 2 years ago

Asus UX430AU i7-7500U macOS 12.1 (21C52) Open Core 0.7.7 CpuTscSync 1.0.5 On BigSur it worked fine. After Monterey getting random KP on wake up(black screen, fans spining. Only hard reset to boot again) All kexts are up2date.

panic(cpu 0 caller 0xffffff80076b34e3): Non-monotonic time: invoke at 0xbbf1a113bd5f, runnable at 0xbbf1a79343a2 @sched_prim.c:2865
Panicked task 0xffffff8b5588a670: 195 threads: pid 0: kernel_task
Backtrace (CPU 0), panicked thread: 0xffffff94eefba000, Frame : Return Address
0xffffffe06535b7b0 : 0xffffff8007687ddd 
0xffffffe06535b800 : 0xffffff80077e7d15 
0xffffffe06535b840 : 0xffffff80077d74e3 
0xffffffe06535b890 : 0xffffff8007627a60 
0xffffffe06535b8b0 : 0xffffff80076881ad 
0xffffffe06535b9d0 : 0xffffff8007687966 
0xffffffe06535ba30 : 0xffffff8007f160b9 
0xffffffe06535baa0 : 0xffffff80076b34e3 
0xffffffe06535bb10 : 0xffffff80076b1137 
0xffffffe06535bb60 : 0xffffff800767e5df 
0xffffffe06535bb70 : 0xffffff8007627d20 
0xffffffe06535bc90 : 0xffffff80077bc62c 
0xffffffe06535bcb0 : 0xffffff80076a81ee 
0xffffffe06535bd00 : 0xffffff8007e7beee 
0xffffffe06535bd50 : 0xffffff8007ec7b86 
0xffffffe06535bdd0 : 0xffffff8007e3ffd6 
0xffffffe06535be40 : 0xffffff8007e3ccd4 
0xffffffe06535be90 : 0xffffff8007e3a190 
0xffffffe06535bee0 : 0xffffff8007e3a02a 
0xffffffe06535bf20 : 0xffffff8007e5756e 
0xffffffe06535bf60 : 0xffffff8007e56b97 
0xffffffe06535bfa0 : 0xffffff800762718e 

Process name corresponding to current thread (0xffffff94eefba000): kernel_task
Boot args: -v

Mac OS version:
21C52

Kernel version:
Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64
Kernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881
KernelCache slide: 0x0000000007400000
KernelCache base:  0xffffff8007600000
Kernel slide:      0x0000000007410000
Kernel text base:  0xffffff8007610000
__HIB  text base: 0xffffff8007500000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 206646464074988
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000bbf1a115de2a
  Sleep   : 0x0000bbf19e351529 0x000000003b6a9ea7 0x0000b8bfb4d953af
  Wake    : 0x0000b8bfb7b1d6e6 0x000000003b6b3252 0x0000bbf19e92f416
Zone info:
Foreign   : 0xffffff8015f82000 - 0xffffff8015f8f000
Native    : 0xffffff80223e9000 - 0xffffffa0223e9000
Readonly  : 0xffffff84ef0b5000 - 0xffffff8688a49000
Metadata  : 0xffffffed7fd1d000 - 0xffffffed9fde2000
Bitmaps   : 0xffffffed9fde2000 - 0xffffffeda2de2000
HeartAndSoul001 commented 2 years ago

yeh, I meet the situation the same as above problem. And, it happened randomly when pc workeded without attaching AC after wake. On BigSur it worked fine too. So, buddy, have you figure out what cause it ? Please

HeartAndSoul001 commented 2 years ago

"panic_string":"panic(cpu 2 caller 0xffffff7fa645715b): assertmsg @AppleIntelController.cpp:29033\nPanicked task 0xffffff95008b3670: 163 threads: pid 0: kernel_task\nBacktrace (CPU 2), panicked thread: 0xffffff8b6842f000, Frame : Return Address\n0xffffffd07b9fb9d0 : 0xffffff800dc87ddd \n0xffffffd07b9fba20 : 0xffffff800dde7d15 \n0xffffffd07b9fba60 : 0xffffff800ddd74e3 \n0xffffffd07b9fbab0 : 0xffffff800dc27a60 \n0xffffffd07b9fbad0 : 0xffffff800dc881ad \n0xffffffd07b9fbbf0 : 0xffffff800dc87966 \n0xffffffd07b9fbc50 : 0xffffff800e5160b9 \n0xffffffd07b9fbcc0 : 0xffffff7fa645715b \n0xffffffd07b9fbcd0 : 0xffffff7fa63fac66 \n0xffffffd07b9fbd40 : 0xffffff7fa63f6f7d \n0xffffffd07b9fbdd0 : 0xffffff800e42ec2a \n0xffffffd07b9fbe30 : 0xffffff800e42e795 \n0xffffffd07b9fbef0 : 0xffffff800e42d790 \n0xffffffd07b9fbf50 : 0xffffff800e430839 \n0xffffffd07b9fbfa0 : 0xffffff800dc2718e \n Kernel Extensions in backtrace:\n com.apple.driver.AppleIntelKBLGraphicsFramebuffer(18.0.3)[6C440BD5-E542-3F44-A61E-C6932DE02575]@0xffffff7fa63c4000->0xffffff7fa6487fff\n dependency: com.apple.AppleGraphicsDeviceControl(6.4.9)[C44DDD30-1C5B-35EA-99C2-5130D1B59B9A]@0xffffff7fa5589000->0xffffff7fa558cfff\n dependency: com.apple.iokit.IOACPIFamily(1.4)[B750EC9D-D224-309C-8C32-3F32C6257F1E]@0xffffff801033f000->0xffffff8010340fff\n dependency: com.apple.iokit.IOAcceleratorFamily2(462.4.1)[73899B24-CF1D-3468-AF75-F6E62058E2A4]@0xffffff7fa6c1e000->0xffffff7fa6c87fff\n dependency: com.apple.iokit.IOGraphicsFamily(593)[A327B1FD-1BF3-3D02-A4E5-20A37ED0493E]@0xffffff7fa6dab000->0xffffff7fa6dd9fff\n dependency: com.apple.iokit.IOPCIFamily(2.9)[023CD3FF-4EFC-3455-89C2-FF8BD98013EB]@0xffffff80107e6000->0xffffff8010810fff\n dependency: com.apple.iokit.IOReportFamily(47)[097D0056-1E44-3A97-8AD8-8D0F6B76113E]@0xffffff8010822000->0xffffff8010824fff\n\nProcess name corresponding to current thread (0xffffff8b6842f000): kernel_task\nBoot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev\n\nMac OS version:\n21C52\n\nKernel version:\nDarwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1\/RELEASE_X86_64\nKernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881\nKernelCache slide: 0x000000000da00000\nKernelCache base: 0xffffff800dc00000\nKernel slide: 0x000000000da10000\nKernel text base: 0xffffff800dc10000\n__HIB text base: 0xffffff800db00000\nSystem model name: MacBookPro14,2 (Mac-CAD6701F7CEA0921)\nSystem shutdown begun: NO\nPanic diags file available: YES (0x0)\nHibernation exit count: 0\n\nSystem uptime in nanoseconds: 34992180804\nLast Sleep: absolute base_tsc base_nano\n Uptime : 0x0000000825b252ef\n Sleep : 0x0000000000000000 0x0000000000000000 0x0000000000000000\n Wake : 0x0000000000000000 0x0000000c79e871c8 0x0000000000000000\nZone info:\nForeign : 0xffffff801b41e000 - 0xffffff801b42b000\nNative : 0xffffff8033c83000 - 0xffffffa033c83000\nReadonly : 0xffffff850094f000 - 0xffffff869a2e3000\nMetadata : 0xffffffd68b70e000 - 0xffffffd6ab897000\nBitmaps : 0xffffffd6ab897000 - 0xffffffd6b1897000\nlast started kext at 34990743390: >!A!IKBLGraphics\t18.0.3 (addr 0xffffff7fa62b7000, size 843776)\nloaded kexts:\nme.kishorprins.VoodooInput\t1.1.3\nas.acidanthera.voodoo.driver.PS2Mouse\t2.2.7\nas.acidanthera.voodoo.driver.PS2Trackpad\t2.2.7\nas.acidanthera.voodoo.driver.PS2Keyboard\t2.2.7\nru.joedm.SMCSuperIO\t1.2.8\nas.acidanthera.mieze.!IMausi\t1.0.7\nas.lvs1974.RTCMemoryFixup\t1.0.7\nas.acidanthera.voodoo.driver.PS2!C\t2.2.7\nas.vit9696.SMCProcessor\t1.2.8\nas.acidanthera.BrightnessKeys\t1.0.3\nas.lvs1974.HibernationFixup\t1.4.5\norg.acidanthera.NVMeFix\t1.0.9\norg.vanilla.driver.CPUFriend\t1.2.4\nas.vit9696.!AALC\t1.6.7\nas.vit9696.WhateverGreen\t1.5.5\nru.usrsse2.SMCBatteryManager\t1.2.8\nas.vit9696.VirtualSMC\t1.2.8\nas.vit9696.Lilu\t1.5.8\n>!A!IKBLGraphics\t18.0.3\n>AGDCBacklightControl\t6.4.9\n>!ABacklight\t180.4\n>!AMCCSControl\t1.14\n@AGDCPluginDisplayMetrics\t6.4.9\n>ACPI_SMC_PlatformPlugin\t1.0.0\n>pmtelemetry\t1\n|IOUserEthernet\t1.0.1\n>usb.!UUserHCI\t1\n>!AHV\t1\n>!ADiskImages2\t126.60.3\n>!A!IKBLGraphicsFramebuffer\t18.0.3\n>!A!ISlowAdaptiveClocking\t4.0.0\n>!AGFXHDA\t100.1.434\n@UVCService\t1\n>!ASMCLMU\t212\n>!A!IPCHPMC\t2.0.1\n>!AFIVRDriver\t4.1.0\n>!ATopCaseHIDEventDriver\t5020.1\n>!AFileSystemDriver\t3.0.1\n@filesystems.tmpfs\t1\n@filesystems.lifs\t1\n@filesystems.hfs.kext\t582.60.2\n@BootCache\t40\n@!AFSCompression.!AFSCompressionTypeZlib\t1.0.0\n@!AFSCompression.!AFSCompressionTypeDataless\t1.0.0d1\n>!ASmartBatteryManager\t161.0.0\n@filesystems.apfs\t1933.61.1\n@private.KextAudit\t1.0\n>AirPort.BrcmNIC\t1400.1.1\n>!ARTC\t2.0.1\n>!AHPET\t1.8\n>!AACPIButtons\t6.1\n>!ASMBIOS\t2.1\n>!AACPIEC\t6.1\n>!AAPIC\t1.7\n@!ASystemPolicy\t2.0.0\n@nke.applicationfirewall\t402\n|IOKitRegistryCompatibility\t1\n|EndpointSecurity\t1\n@Dont_Steal_Mac_OS_X\t7.0.0\n@kec.!AEncryptedArchive\t1\n>!ABacklightExpert\t1.1.0\n>!ASMBus!C\t1.0.18d1\n>IOPlatformPluginLegacy\t1.0.0\n>X86PlatformPlugin\t1.0.0\n|IO!BSerialManager\t9.0.0\n|IO!BPacketLogger\t9.0.0\n|IO!BHost!CUSBTransport\t9.0.0\n|IO!BHost!CUARTTransport\t9.0.0\n|IO!BHost!CTransport\t9.0.0\n>IO!BHost!CPCIeTransport\t9.0.0\n|IOAVB!F\t1010.2\n@plugin.IOgPTPPlugin\t1000.11\n|IOEthernetAVB!C\t1.1.0\n|CSR!BHost!CUSBTransport\t9.0.0\n|Broadcom!BHost!CUSBTransport\t9.0.0\n|Broadcom!B20703USBTransport\t9.0.0\n>!AIPAppender\t1.0\n|IOAccelerator!F2\t462.4.1\n@!AGPUWrangler\t6.4.9\n@!AGraphicsDeviceControl\t6.4.9\n|IOSlowAdaptiveClocking!F\t1.0.0\n>!AHDA!C\t283.15\n|IOHDA!F\t283.15\n|IONDRVSupport\t593\n>!UAudio\t413.5\n|IOAudio!F\t300.10\n@vecLib.kext\t1.2.0\n>!AAudioClockLibs\t100.9.1\n|IOGraphics!F\t593\n>IOPlatformPlugin!F\t6.0.0d8\n>!AActuatorDriver\t5430.1\n>!AMultitouchDriver\t5430.1\n>!AInputDeviceSupport\t5400.30\n>!AHS!BDriver\t5020.1\n>IO!BHIDDriver\t9.0.0\n>usb.IOUSBHostHIDDevice\t1.2\n>usb.cdc\t5.0.0\n>usb.networking\t5.0.0\n>usb.!UHostCompositeDevice\t1.2\n>usb.!UHub\t1.2\n>!UMergeNub\t900.4.2\n>!ABSDKextStarter\t3\n|IOSurface\t302.9\n@filesystems.hfs.encodings.kext\t1\n>usb.!UHostPacketFilter\t1.0\n|IOUSB!F\t900.4.2\n>!AXsanScheme\t3\n|IONVMe!F\t2.1.0\n|IO80211!FLegacy\t1200.12.2b1\n|IOSkywalk!F\t1.0\n>mDNSOffloadUserClient\t1.0.1b8\n>corecapture\t1.0.4\n>!A!ILpssGspi\t3.0.60\n>usb.!UXHCIPCI\t1.2\n>usb.!UXHCI\t1.2\n>!AEFINVRAM\t2.1\n>!AEFIRuntime\t2.1\n|IOHID!F\t2.0.0\n|IOSMBus!F\t1.1\n|IOTimeSync!F\t1000.11\n|IONetworking!F\t3.4\n>DiskImages\t493.0.0\n|IO!B!F\t9.0.0\n|IOReport!F\t47\n$quarantine\t4\n$sandbox\t300.0\n@kext.!AMatch\t1.0.0d1\n|CoreAnalytics!F\t1\n>!ASSE\t1.0\n>!AKeyStore\t2\n>!UTDM\t532.40.7\n|IOUSBMass!SDriver\t209.40.6\n|IOSCSIBlockCommandsDevice\t452.60.2\n|IO!S!F\t2.1\n|IOSCSIArchitectureModel!F\t452.60.2\n>!AMobileFileIntegrity\t1.0.5\n$!AImage4\t4.2.0\n@kext.CoreTrust\t1\n>!AFDEKeyStore\t28.30\n>!AEffaceable!S\t1.0\n>!ACredentialManager\t1.0\n>KernelRelayHost\t1\n|IOUSBHost!F\t1.2\n>!UHostMergeProperties\t1.2\n>usb.!UCommon\t1.0\n>!ABusPower!C\t1.0\n>!ASEPManager\t1.0.1\n>IOSlaveProcessor\t1\n>!AACPIPlatform\t6.1\n>!ASMC\t3.1.9\n|IOPCI!F\t2.9\n|IOACPI!F\t1.4\n>watchdog\t1\n@kec.pthread\t1\n@kec.Libm\t1\n@kec.corecrypto\t12.0\n\n\n"}

gulios commented 2 years ago

Hi @vit9696 can you check this please ?

vit9696 commented 2 years ago

@HeartAndSoul001 assertmsg @AppleIntelController.cpp:29033 feels like you have wrong DVMT settings. Must increase stolen memory.

@gulios, please redo kernel panic with keepsyms=1 in boot arguments. it is not clear what is going on in this one.

CC @lvs1974

gulios commented 2 years ago

ok, i'll let you know when occur KP

DVMT in BIOS is set to 64M

This is my OC folder/config

OC.zip

HeartAndSoul001 commented 2 years ago

@HeartAndSoul001 assertmsg @AppleIntelController.cpp:29033 feels like you have wrong DVMT settings. Must increase stolen memory.

@gulios, please redo kernel panic with keepsyms=1 in boot arguments. it is not clear what is going on in this one.

CC @lvs1974

thanks a lot, I have modified the Framebuffer value. And the point is I met the problem again when I use my laptop without AC attaching just now. @gulios hi, please, I wonder if your problem also happened when your laptop powered with just battery(without ac attached).I mean this may be the common feature of our problem. @vit9696 hi, thanks a lot for making OC. I also want to contribute my part, but I don't know how to get debug information for your further analysis.

gulios commented 2 years ago

@HeartAndSoul001 have to test it with and without AC. It's random thing so hard to debug it. Screenshot 2022-01-02 at 18 08 56 Screenshot 2022-01-02 at 18 09 09

HeartAndSoul001 commented 2 years ago

@vit9696 my laptop is Thinkpad x1 carbon 2017(cpu:i7 7600U GPU:HD 620, this is my laptop information: https://github.com/HeartAndSoul001/my-EFI-for-x1-carbon-5th). the situation I met is: my trackpad and keyboard had no response(like offline), screen displayed a static content and had no feedback. just figure out it by hard reset.

HeartAndSoul001 commented 2 years ago

@gulios our laptop has the same GPU platform ID. May be, you can pay attention to power method(ac or battery) when the panic happen again. Mackintosh is so fascinated isn't it? haha, have a nice day buddy! I gonna to sleep, bye!

截屏2022-01-03 01 20 24
gulios commented 2 years ago

@HeartAndSoul001 assertmsg @AppleIntelController.cpp:29033 feels like you have wrong DVMT settings. Must increase stolen memory.

@gulios, please redo kernel panic with keepsyms=1 in boot arguments. it is not clear what is going on in this one.

CC @lvs1974

Hi @vit9696

Got it today

panic(cpu 0 caller 0xffffff80072b34e3): Non-monotonic time: invoke at 0x24d20e2258b, runnable at 0x24d2760843e @sched_prim.c:2865
Panicked task 0xffffff99bb98a670: 173 threads: pid 0: kernel_task
Backtrace (CPU 0), panicked thread: 0xffffff9022217000, Frame : Return Address
0xffffffe06469b7b0 : 0xffffff8007287ddd mach_kernel : _handle_debugger_trap + 0x41d
0xffffffe06469b800 : 0xffffff80073e7d15 mach_kernel : _kdp_i386_trap + 0x145
0xffffffe06469b840 : 0xffffff80073d74e3 mach_kernel : _kernel_trap + 0x533
0xffffffe06469b890 : 0xffffff8007227a60 mach_kernel : _return_from_trap + 0xe0
0xffffffe06469b8b0 : 0xffffff80072881ad mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffe06469b9d0 : 0xffffff8007287966 mach_kernel : _panic_trap_to_debugger + 0x2b6
0xffffffe06469ba30 : 0xffffff8007b160b9 mach_kernel : _panic + 0x54
0xffffffe06469baa0 : 0xffffff80072b34e3 mach_kernel : _thread_unstop + 0x2303
0xffffffe06469bb10 : 0xffffff80072b1137 mach_kernel : _thread_block_reason + 0xc7
0xffffffe06469bb60 : 0xffffff800727e5df mach_kernel : _ast_taken_kernel + 0x5f
0xffffffe06469bb70 : 0xffffff8007227d20 mach_kernel : _return_to_iret + 0x110
0xffffffe06469bc90 : 0xffffff80073bc62c mach_kernel : _cpu_start + 0x7c
0xffffffe06469bcb0 : 0xffffff80072a81ee mach_kernel : _processor_start + 0x1fe
0xffffffe06469bd00 : 0xffffff8007a7beee mach_kernel : __Z16IOCPUSleepKernelv + 0x2de
0xffffffe06469bd50 : 0xffffff8007ac7b86 mach_kernel : __ZN14IOPMrootDomain15powerChangeDoneEm + 0xb46
0xffffffe06469bdd0 : 0xffffff8007a3ffd6 mach_kernel : __ZN9IOService8all_doneEv + 0x756
0xffffffe06469be40 : 0xffffff8007a3ccd4 mach_kernel : __ZN9IOService23actionPMWorkQueueInvokeEP11IOPMRequestP13IOPMWorkQueue + 0x8c4
0xffffffe06469be90 : 0xffffff8007a3a190 mach_kernel : __ZN13IOPMWorkQueue17checkRequestQueueEP11queue_entryPb + 0x90
0xffffffe06469bee0 : 0xffffff8007a3a02a mach_kernel : __ZN13IOPMWorkQueue12checkForWorkEv + 0xca
0xffffffe06469bf20 : 0xffffff8007a5756e mach_kernel : __ZN10IOWorkLoop15runEventSourcesEv + 0x13e
0xffffffe06469bf60 : 0xffffff8007a56b97 mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x37
0xffffffe06469bfa0 : 0xffffff800722718e mach_kernel : _call_continuation + 0x2e

Process name corresponding to current thread (0xffffff9022217000): kernel_task
Boot args: -v keepsyms=1

Mac OS version:
21C52

Kernel version:
Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64
Kernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881
KernelCache slide: 0x0000000007000000
KernelCache base:  0xffffff8007200000
Kernel slide:      0x0000000007010000
Kernel text base:  0xffffff8007210000
__HIB  text base: 0xffffff8007100000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 2530289719428
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000024d2105212b
  Sleep   : 0x0000024d1e016370 0x000000003bfac863 0x0000023f9c019ff4
  Wake    : 0x0000023f9ec8af46 0x000000003be6a9d0 0x0000024d1e5fb316
Zone info:
Foreign   : 0xffffff8015b82000 - 0xffffff8015b8f000
Native    : 0xffffff8022125000 - 0xffffffa022125000
Readonly  : 0xffffff84eedf1000 - 0xffffff8688785000
Metadata  : 0xffffffeb6d9b9000 - 0xffffffeb8da7f000
Bitmaps   : 0xffffffeb8da7f000 - 0xffffffeb90a7f000

doesn't really matter AC or battery

lvs1974 commented 2 years ago

@gulios: could you give a try to attached version, please? CpuTscSync-1.0.6-DEBUG.zip

gulios commented 2 years ago

ok, testing

gulios commented 2 years ago

@lvs1974

got KP

panic(cpu 0 caller 0xffffff800d2b34e3): Non-monotonic time: invoke at 0x56ccd0e24ee, runnable at 0x56ccd820dc1 @sched_prim.c:2865
Panicked task 0xffffff99c1881670: 174 threads: pid 0: kernel_task
Backtrace (CPU 0), panicked thread: 0xffffff9027e80000, Frame : Return Address
0xffffffd01a6d37b0 : 0xffffff800d287ddd mach_kernel : _handle_debugger_trap + 0x41d
0xffffffd01a6d3800 : 0xffffff800d3e7d15 mach_kernel : _kdp_i386_trap + 0x145
0xffffffd01a6d3840 : 0xffffff800d3d74e3 mach_kernel : _kernel_trap + 0x533
0xffffffd01a6d3890 : 0xffffff800d227a60 mach_kernel : _return_from_trap + 0xe0
0xffffffd01a6d38b0 : 0xffffff800d2881ad mach_kernel : _DebuggerTrapWithState + 0xad
0xffffffd01a6d39d0 : 0xffffff800d287966 mach_kernel : _panic_trap_to_debugger + 0x2b6
0xffffffd01a6d3a30 : 0xffffff800db160b9 mach_kernel : _panic + 0x54
0xffffffd01a6d3aa0 : 0xffffff800d2b34e3 mach_kernel : _thread_unstop + 0x2303
0xffffffd01a6d3b10 : 0xffffff800d2b1137 mach_kernel : _thread_block_reason + 0xc7
0xffffffd01a6d3b60 : 0xffffff800d27e5df mach_kernel : _ast_taken_kernel + 0x5f
0xffffffd01a6d3b70 : 0xffffff800d227d20 mach_kernel : _return_to_iret + 0x110
0xffffffd01a6d3c90 : 0xffffff800d3bc62c mach_kernel : _cpu_start + 0x7c
0xffffffd01a6d3cb0 : 0xffffff800d2a81ee mach_kernel : _processor_start + 0x1fe
0xffffffd01a6d3d00 : 0xffffff800da7beee mach_kernel : __Z16IOCPUSleepKernelv + 0x2de
0xffffffd01a6d3d50 : 0xffffff800dac7b86 mach_kernel : __ZN14IOPMrootDomain15powerChangeDoneEm + 0xb46
0xffffffd01a6d3dd0 : 0xffffff800da3ffd6 mach_kernel : __ZN9IOService8all_doneEv + 0x756
0xffffffd01a6d3e40 : 0xffffff800da3ccd4 mach_kernel : __ZN9IOService23actionPMWorkQueueInvokeEP11IOPMRequestP13IOPMWorkQueue + 0x8c4
0xffffffd01a6d3e90 : 0xffffff800da3a190 mach_kernel : __ZN13IOPMWorkQueue17checkRequestQueueEP11queue_entryPb + 0x90
0xffffffd01a6d3ee0 : 0xffffff800da3a02a mach_kernel : __ZN13IOPMWorkQueue12checkForWorkEv + 0xca
0xffffffd01a6d3f20 : 0xffffff800da5756e mach_kernel : __ZN10IOWorkLoop15runEventSourcesEv + 0x13e
0xffffffd01a6d3f60 : 0xffffff800da56b97 mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x37
0xffffffd01a6d3fa0 : 0xffffff800d22718e mach_kernel : _call_continuation + 0x2e

Process name corresponding to current thread (0xffffff9027e80000): kernel_task
Boot args: -v keepsyms=1

Mac OS version:
21C52

Kernel version:
Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64
Kernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881
KernelCache slide: 0x000000000d000000
KernelCache base:  0xffffff800d200000
Kernel slide:      0x000000000d010000
Kernel text base:  0xffffff800d210000
__HIB  text base: 0xffffff800d100000
System model name: MacBookPro14,1 (Mac-B4831CEBD52A0C4C)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 5964857187652
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000056ccd31a5ff
  Sleep   : 0x0000056cca3eddb7 0x000000003d379116 0x0000056b7595b0a1
  Wake    : 0x0000056b78648283 0x000000003d39aca4 0x0000056cca831b25
Zone info:
Foreign   : 0xffffff801bb89000 - 0xffffff801bb96000
Native    : 0xffffff8027fce000 - 0xffffffa027fce000
Readonly  : 0xffffff84f4c9a000 - 0xffffff868e62e000
Metadata  : 0xffffffebe7adc000 - 0xffffffec07ba1000
Bitmaps   : 0xffffffec07ba1000 - 0xffffffec0aba1000
lvs1974 commented 2 years ago

@gulios: can you add "-cputsdbg" into boot-args and get a boot log after restart? Boot log should contain lines wiith "cputs". You can use liludump=[seconds] with Lilu debug, or dmesg or log show to get boot log. CpuTscSync-1.0.6-DEBUG.zip

gulios commented 2 years ago

@lvs1974 i've added kext and boot arg

-cputsdbg

but no see any debug info in logs vie console.app or

 sudo dmesg | grep cputs

log show too

log show --predicate "processID == 0" --start $(date "+%Y-%m-%d") --debug | grep cputs
lvs1974 commented 2 years ago

@gulios: for dmesg you can try to add kext DebugEnhancer or add boot arg msgbuf=1048576. If it does not help, try to use liludump, log file looks like /var/log/Lilu_XXX.log

gulios commented 2 years ago

@lvs1974 ok, i set DebugEnhancer with bootargs

<string>-v keepsyms=1 -cputsdbg debug=0x12a msgbuf=1048576</string>

and got KP on boot like on screen

IMG_3524

pci (build 20:21:52 Nov 28 2021), flags 8x20c3080
pi (build 20:21:52 Nov 28 2021), flags 8x20c3080
AppleACPICPU: Processor Id=1 LocalfpicId=0 Enabled
AppleACPICPU: ProcessorId-2 LocalApicId=2 Enabled
cpu_data_alloc(1) Oxffffff8007a6e040 desc_table: Exffffff8006676320 ldt: BxfPPPffd03c955000 Int_stack: BxffPfPFd03c8f1000-OxfFFFFfd03c8f 5000
AppleACPICPU: ProcessorId=3 LocalApicId=1 Enabled
cu_data_alloc(3) Oxfffffreo07a704c0 desc_table: exffffff8006676960 ldt: Oxffffffd03c975000 Int_stack: Bxffffffd03cd/49000-8xffffffd03cd4d000
cpu_datap(1):0xffffff8007a6f280 local apic id 8x1 remapped from 2
cpu_datap(2):0xffffff8007a6e040 local apic id ®x2 remapped from 1
CpuTscSync
cputs: @ (OBG) reset tsc adjust
SC sync for cpu 2: @x0000000ababdd3d1 delta Oxlf6a5d2 (32941522)
Unsynchronized
TSC for cpu 2: @x0000000ebabdd3d1, delta 0x1f6a5d2
( lap icop uitds :0 000 0 (ODOBOG2))
[1:12:07] gulios :: GuliossBookHack  ➜  / » log show --last 5m | grep TSC
2022-01-04 01:08:30.188090+0100 0x73       Default     0x0                  0      0    kernel: [  201.308309]: TSC sync for cpu 2: 0x000000005832faf1 delta 0x12dae780 (316336000)
2022-01-04 01:08:30.188091+0100 0x73       Default     0x0                  0      0    kernel: [  201.308315]: Unsynchronized  TSC for cpu 2: 0x000000005832faf1, delta 0x12dae780
2022-01-04 01:08:30.192693+0100 0x73       Default     0x0                  0      0    kernel: [  201.312902]: TSC sync for cpu 1: 0x0000000058fe68f3 delta 0x12dae679 (316335737)
2022-01-04 01:08:30.192694+0100 0x73       Default     0x0                  0      0    kernel: [  201.312908]: Unsynchronized  TSC for cpu 1: 0x0000000058fe68f3, delta 0x12dae679
2022-01-04 01:08:30.197263+0100 0x73       Default     0x0                  0      0    kernel: [  201.317478]: TSC sync for cpu 3: 0x0000000059c94c51 delta 0x12dae6f3 (316335859)
2022-01-04 01:08:30.197264+0100 0x73       Default     0x0                  0      0    kernel: [  201.317484]: Unsynchronized  TSC for cpu 3: 0x0000000059c94c51, delta 0x12dae6f3
lvs1974 commented 2 years ago

@gulios: in your KP log I see line "reset tsc adjust" (wrmsr64(MSR_IA32_TSC_ADJUST, 0)). It means - CpuTscSync did its job. But it did not help for some reason and TSC is still Unsynchronized. I am pretty sure if I add "wrmsr64(MSR_IA32_TSC, tsc)" it will panic anyway. I am out of ideas, sorry.

CC @vit9696

JunqiK commented 2 years ago

I also encounter the same kernel panic in Monterey. It happened randomly

panic(cpu 0 caller 0xffffff800c8b34e3): Non-monotonic time: invoke at 0x2d39f65db4a, runnable at 0x2d43048150e @sched_prim.c:2865 Panicked task 0xffffff90ef5b7670: 330 threads: pid 0: kernel_task Backtrace (CPU 0), panicked thread: 0xffffff95bc472000, Frame : Return Address 0xfffffff1698737b0 : 0xffffff800c887ddd mach_kernel : _handle_debugger_trap + 0x41d 0xfffffff169873800 : 0xffffff800c9e7d15 mach_kernel : _kdp_i386_trap + 0x145 0xfffffff169873840 : 0xffffff800c9d74e3 mach_kernel : _kernel_trap + 0x533 0xfffffff169873890 : 0xffffff800c827a60 mach_kernel : _return_from_trap + 0xe0 0xfffffff1698738b0 : 0xffffff800c8881ad mach_kernel : _DebuggerTrapWithState + 0xad 0xfffffff1698739d0 : 0xffffff800c887966 mach_kernel : _panic_trap_to_debugger + 0x2b6 0xfffffff169873a30 : 0xffffff800d1160b9 mach_kernel : _panic + 0x54 0xfffffff169873aa0 : 0xffffff800c8b34e3 mach_kernel : _thread_unstop + 0x2303 0xfffffff169873b10 : 0xffffff800c8b1137 mach_kernel : _thread_block_reason + 0xc7 0xfffffff169873b60 : 0xffffff800c87e5df mach_kernel : _ast_taken_kernel + 0x5f 0xfffffff169873b70 : 0xffffff800c827d20 mach_kernel : _return_to_iret + 0x110 0xfffffff169873c90 : 0xffffff800c9bc62c mach_kernel : _cpu_start + 0x7c 0xfffffff169873cb0 : 0xffffff800c8a81ee mach_kernel : _processor_start + 0x1fe 0xfffffff169873d00 : 0xffffff800d07beee mach_kernel : Z16IOCPUSleepKernelv + 0x2de 0xfffffff169873d50 : 0xffffff800d0c7b86 mach_kernel : __ZN14IOPMrootDomain15powerChangeDoneEm + 0xb46 0xfffffff169873dd0 : 0xffffff800d03ffd6 mach_kernel : ZN9IOService8all_doneEv + 0x756 0xfffffff169873e40 : 0xffffff800d03ccd4 mach_kernel : ZN9IOService23actionPMWorkQueueInvokeEP11IOPMRequestP13IOPMWorkQueue + 0x8c4 0xfffffff169873e90 : 0xffffff800d03a190 mach_kernel : ZN13IOPMWorkQueue17checkRequestQueueEP11queue_entryPb + 0x90 0xfffffff169873ee0 : 0xffffff800d03a02a mach_kernel : ZN13IOPMWorkQueue12checkForWorkEv + 0xca 0xfffffff169873f20 : 0xffffff800d05756e mach_kernel : ZN10IOWorkLoop15runEventSourcesEv + 0x13e 0xfffffff169873f60 : 0xffffff800d056b97 mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x37 0xfffffff169873fa0 : 0xffffff800c82718e mach_kernel : _call_continuation + 0x2e

Process name corresponding to current thread (0xffffff95bc472000): kernel_task Boot args: -v keepsyms=1 debug=0x100 alcid=1 chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version: 21C52

Kernel version: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 Kernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881 KernelCache slide: 0x000000000c600000 KernelCache base: 0xffffff800c800000 Kernel slide: 0x000000000c610000 Kernel text base: 0xffffff800c810000 __HIB text base: 0xffffff800c700000 System model name: MacPro7,1 (Mac-27AD2F918AE68F61) System shutdown begun: NO Panic diags file available: YES (0x0) Hibernation exit count: 0

sushilei commented 2 years ago

I have the same issue ,when wake up. @vit9696

panic(cpu 0 caller 0xffffff80108b34e3): Non-monotonic time: invoke at 0x1fe1634e32bf, runnable at 0x1fe1b76b18c7 @sched_prim.c:2865 Panicked task 0xffffff90a724a670: 255 threads: pid 0: kernel_task Backtrace (CPU 0), panicked thread: 0xffffff9573c95aa0, Frame : Return Address 0xffffffd086e637b0 : 0xffffff8010887ddd mach_kernel : _handle_debugger_trap + 0x41d 0xffffffd086e63800 : 0xffffff80109e7d15 mach_kernel : _kdp_i386_trap + 0x145 0xffffffd086e63840 : 0xffffff80109d74e3 mach_kernel : _kernel_trap + 0x533 0xffffffd086e63890 : 0xffffff8010827a60 mach_kernel : _return_from_trap + 0xe0 0xffffffd086e638b0 : 0xffffff80108881ad mach_kernel : _DebuggerTrapWithState + 0xad 0xffffffd086e639d0 : 0xffffff8010887966 mach_kernel : _panic_trap_to_debugger + 0x2b6 0xffffffd086e63a30 : 0xffffff80111160b9 mach_kernel : _panic + 0x54 0xffffffd086e63aa0 : 0xffffff80108b34e3 mach_kernel : _thread_unstop + 0x2303 0xffffffd086e63b10 : 0xffffff80108b1137 mach_kernel : _thread_block_reason + 0xc7 0xffffffd086e63b60 : 0xffffff801087e5df mach_kernel : _ast_taken_kernel + 0x5f 0xffffffd086e63b70 : 0xffffff8010827d20 mach_kernel : _return_to_iret + 0x110 0xffffffd086e63c90 : 0xffffff80109bc62c mach_kernel : _cpu_start + 0x7c 0xffffffd086e63cb0 : 0xffffff80108a81ee mach_kernel : _processor_start + 0x1fe 0xffffffd086e63d00 : 0xffffff801107beee mach_kernel : Z16IOCPUSleepKernelv + 0x2de 0xffffffd086e63d50 : 0xffffff80110c7b86 mach_kernel : __ZN14IOPMrootDomain15powerChangeDoneEm + 0xb46 0xffffffd086e63dd0 : 0xffffff801103ffd6 mach_kernel : ZN9IOService8all_doneEv + 0x756 0xffffffd086e63e40 : 0xffffff801103ccd4 mach_kernel : ZN9IOService23actionPMWorkQueueInvokeEP11IOPMRequestP13IOPMWorkQueue + 0x8c4 0xffffffd086e63e90 : 0xffffff801103a190 mach_kernel : ZN13IOPMWorkQueue17checkRequestQueueEP11queue_entryPb + 0x90 0xffffffd086e63ee0 : 0xffffff801103a02a mach_kernel : ZN13IOPMWorkQueue12checkForWorkEv + 0xca 0xffffffd086e63f20 : 0xffffff801105756e mach_kernel : ZN10IOWorkLoop15runEventSourcesEv + 0x13e 0xffffffd086e63f60 : 0xffffff8011056b97 mach_kernel : __ZN10IOWorkLoop10threadMainEv + 0x37 0xffffffd086e63fa0 : 0xffffff801082718e mach_kernel : _call_continuation + 0x2e

Process name corresponding to current thread (0xffffff9573c95aa0): kernel_task Boot args: agdpmod=pikera alcid=11 keepsyms=1 debug=0x400 chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version: 21C52

Kernel version: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 Kernel UUID: E32C293C-7D8B-327C-A335-6AAD250A4881 KernelCache slide: 0x0000000010600000 KernelCache base: 0xffffff8010800000 Kernel slide: 0x0000000010610000 Kernel text base: 0xffffff8010810000 __HIB text base: 0xffffff8010700000 System model name: MacPro7,1 (Mac-27AD2F918AE68F61) System shutdown begun: NO Panic diags file available: YES (0x0) Hibernation exit count: 0

System uptime in nanoseconds: 35052894813008 Last Sleep: absolute base_tsc base_nano Uptime : 0x00001fe16357fdfa Sleep : 0x00001fe15551b9ee 0x00000001c668c2b6 0x00001fd3835c228d Wake : 0x00001fd38cef1cf3 0x00000001c256b53c 0x00001fe1618cb17a Zone info: Foreign : 0xffffff8028cb6000 - 0xffffff8028cc3000 Native : 0xffffff80a715c000 - 0xffffffa0a715c000 Readonly : 0xffffff8573e28000 - 0xffffff870d7bc000 Metadata : 0xfffffff0bb138000 - 0xfffffff0db91d000 Bitmaps : 0xfffffff0db91d000 - 0xfffffff0f391d000 last started kext at 34171227014251: @UVCService 1 (addr 0xffffff7fa9b68000, size 4096) last stopped kext at 1124005737006: >!AFIVRDriver 4.1.0 (addr 0xffffff7fa807f000, size 8192) loaded kexts: com.parallels.kext.usbconnect 17.1.1 51537 com.parallels.kext.netbridge 17.1.1 51537 com.parallels.kext.hypervisor 17.1.1 51537 com.parallels.kext.vnic 17.1.1 51537 com.intel.driver.EnergyDriver 3.7.0 as.acidanthera.mieze.!IMausi 1.0.7 as.vit9696.VirtualSMC 1.2.8 org.lvs1974.driver.CpuTscSync 1.0.5 as.vit9696.!AALC 1.6.7 as.vit9696.WhateverGreen 1.5.5 as.lvs1974.HibernationFixup 1.4.5 as.vit9696.Lilu 1.5.8 @UVCService 1 @filesystems.smbfs 4.0

AGPM 127 X86PlatformShim 1.0.0 !APlatformEnabler 2.7.0d0 @filesystems.autofs 3.0 AudioAUUC 1.70 @fileutil 20.036.15 !AUpstreamUserClient 3.6.8 !AMCCSControl 1.14 @kext.AMDRadeonX6000 4.0.7 !AHDA 283.15 @kext.AMDRadeonServiceManager 4.0.7 !AGFXHDA 100.1.434 !ALPC 3.1 !AGraphicsDevicePolicy 6.4.9 @AGDCPluginDisplayMetrics 6.4.9 pmtelemetry 1 |IOUserEthernet 1.0.1 usb.!UUserHCI 1 !A!IPCHPMC 2.0.1 !AHV 1 !ADiskImages2 126.60.3 !A!IMCEReporter 115 !A!ISlowAdaptiveClocking 4.0.0 !ATopCaseHIDEventDriver 5020.1 !UTopCaseDriver 5020.1 @filesystems.apfs 1933.61.1 !AFileSystemDriver 3.0.1 @filesystems.tmpfs 1 @filesystems.lifs 1 @filesystems.hfs.kext 582.60.2 @BootCache 40 @!AFSCompression.!AFSCompressionTypeZlib 1.0.0 @!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1 AirPort.BrcmNIC 1400.1.1 !AAHCIPort 351 @private.KextAudit 1.0 !AHPET 1.8 !ARTC 2.0.1 !AACPIButtons 6.1 !ASMBIOS 2.1 !AAPIC 1.7 @!ASystemPolicy 2.0.0 @nke.applicationfirewall 402 |IOKitRegistryCompatibility 1 |EndpointSecurity 1 @Dont_Steal_Mac_OS_X 7.0.0 @kec.!AEncryptedArchive 1 driverkit.serial 6.0.0 |IOSerial!F 11 |IOAVB!F 1010.2 @plugin.IOgPTPPlugin 1000.11 |IOEthernetAVB!C 1.1.0 @kext.triggers 1.0 |IOAccelerator!F2 462.4.1 DspFuncLib 283.15 @kext.OSvKernDSPLib 529 @kext.AMDRadeonX6000HWLibs 1.0 !UAudio 413.5 !AAudioClockLibs 100.9.1 @kext.AMDRadeonX6000HWServices 4.0.7 !ASMBus!C 1.0.18d1 |IOSMBus!F 1.1 !AHDA!C 283.15 |IOHDA!F 283.15 |IOAudio!F 300.10 @vecLib.kext 1.2.0 !ASMBusPCI 1.0.14d1 !AGraphicsControl 6.4.9 |IO!BSerialManager 9.0.0 |IO!BPacketLogger 9.0.0 |IO!BHost!CUSBTransport 9.0.0 |IO!BHost!CUARTTransport 9.0.0 |IO!BHost!CTransport 9.0.0 IO!BHost!CPCIeTransport 9.0.0 |CSR!BHost!CUSBTransport 9.0.0 |IONDRVSupport 593 @kext.AMDRadeonX6000Framebuffer 4.0.7 |Broadcom!BHost!CUSBTransport 9.0.0 |Broadcom!B20703USBTransport 9.0.0 @kext.AMDSupport 4.0.7 !AIPAppender 1.0 X86PlatformPlugin 1.0.0 IOPlatformPlugin!F 6.0.0d8 @!AGPUWrangler 6.4.9 @!AGraphicsDeviceControl 6.4.9 |IOGraphics!F 593 |IOSlowAdaptiveClocking!F 1.0.0 !AHS!BDriver 5020.1 IO!BHIDDriver 9.0.0 !AMultitouchDriver 5430.1 !AInputDeviceSupport 5400.30 !AHIDKeyboard 228 usb.IOUSBHostHIDDevice 1.2 usb.cdc 5.0.0 usb.networking 5.0.0 usb.!UHostCompositeDevice 1.2 usb.!UHub 1.2 !AXsanScheme 3 !ABSDKextStarter 3 |IOSurface 302.9 @filesystems.hfs.encodings.kext 1 |IONVMe!F 2.1.0 |IO80211!FLegacy 1200.12.2b1 |IOSkywalk!F 1.0 mDNSOffloadUserClient 1.0.1b8 corecapture 1.0.4 |IOAHCI!F 295 usb.!UXHCIPCI 1.2 usb.!UXHCI 1.2 usb.!UHostPacketFilter 1.0 |IOUSB!F 900.4.2 !AEFINVRAM 2.1 !AEFIRuntime 2.1 |IOHID!F 2.0.0 |IOTimeSync!F 1000.11 |IONetworking!F 3.4 DiskImages 493.0.0 |IO!B!F 9.0.0 |IOReport!F 47 $quarantine 4 $sandbox 300.0 @kext.!AMatch 1.0.0d1 |CoreAnalytics!F 1 !ASSE 1.0 !AKeyStore 2 !UTDM 532.40.7 |IOUSBMass!SDriver 209.40.6 |IOSCSIBlockCommandsDevice 452.60.2 |IO!S!F 2.1 |IOSCSIArchitectureModel!F 452.60.2 !AMobileFileIntegrity 1.0.5 $!AImage4 4.2.0 @kext.CoreTrust 1 !AFDEKeyStore 28.30 !AEffaceable!S 1.0 !ACredentialManager 1.0 KernelRelayHost 1 |IOUSBHost!F 1.2 !UHostMergeProperties 1.2 usb.!UCommon 1.0 !ABusPower!C 1.0 !ASEPManager 1.0.1 IOSlaveProcessor 1 !AACPIPlatform 6.1 !ASMC 3.1.9 |IOPCI!F 2.9 |IOACPI!F 1.4 watchdog 1 @kec.pthread 1 @kec.Libm 1 @kec.corecrypto 12.0

sushilei commented 2 years ago

so,is there a solution to this issue?

HeartAndSoul001 commented 2 years ago

do this quirk work? set property kernel-->Quirks-->ProvideCurrentCpuInfo to "TRUE"? My laptop had been degraded to Big Sur because of frequently hard resetting after panic(😭).So, I can not test it.

JunqiK commented 2 years ago

Will try this and report back. Thanks man

sushilei commented 2 years ago

do this quirk work? set property kernel-->Quirks-->ProvideCurrentCpuInfo to "TRUE"? My laptop had been degraded to Big Sur because of frequently hard resetting after panic(😭).So, I can not test it.

Although I haven't tested it, but I believe this doesn't work

sushilei commented 2 years ago

do this quirk work? set property kernel-->Quirks-->ProvideCurrentCpuInfo to "TRUE"? My laptop had been degraded to Big Sur because of frequently hard resetting after panic(😭).So, I can not test it.

I have tested it, but this doesn't work

HeartAndSoul001 commented 2 years ago

I guess if a bios updating can fix it ? my pc is Thinkpad x1 carbon 5th, and there is a bios update version about cpu on Thinkpad support which include: CHANGES IN THIS RELEASE Version 1.53 [Important updates]

[New functions or enhancements]

[Problem fixes]

I update my bios version and reinstall my macOS, and get well up to now. Also, macOS reinstalling involves a formatting of disk. if work, I have no idea that bios updating or disk formatting have fixed it.

JunqiK commented 2 years ago

I have a fresh installed Monterey, and also have this problem. Maybe it's bios related. Never encounter this in Bigsur wzq @.***>于2022年1月25日 周二15:18写道:

I guess if a bios updating can fix it ? my pc is Thinkpad x1 carbon 5th, and there is a bios update version about cpu on Thinkpad support which include: CHANGES IN THIS RELEASE Version 1.53 [Important updates]

  • Update includes a security fix.

[New functions or enhancements]

  • Updated the CPU microcode.

[Problem fixes]

  • Fixed an issue where device firmware update via Windows Update failed when OPAL management software is installed. I update my bios version and reinstall my macOS, and get well up to now. Also, macOS reinstalling involves a formatting of disk. if work, I have no idea that bios updating or disk formatting have fixed it.

— Reply to this email directly, view it on GitHub https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1020879614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXFDSHJWCJHZHK4KSGTLPGDUXZFE3ANCNFSM5KOMBSGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

HeartAndSoul001 commented 2 years ago

unfortunatly, the problem still happened, I have no idea

lvs1974 commented 2 years ago

Hi everybody, can somebody try the kext from my post wth boot-arg TSC_sync_margin=0?

gulios commented 2 years ago

Hi everybody, can somebody try the kext from my post wth boot-arg TSC_sync_margin=0?

testing

sushilei commented 2 years ago

Hi everybody, can somebody try the kext from my post wth boot-arg TSC_sync_margin=0?

it works.thanks

JunqiK commented 2 years ago

Wow, sound pleasing. Will try this

sushilei @.***>于2022年1月29日 周六20:28写道:

Hi everybody, can somebody try the kext from my post https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1004252763 wth boot-arg TSC_sync_margin=0?

it works.thanks

— Reply to this email directly, view it on GitHub https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1024902532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXFDSHIP65GXW4X3SDOGOILUYPMOBANCNFSM5KOMBSGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

s4069b commented 2 years ago

ok it should be ready/loaded


Steve Blencowe 0423 654 786

On 29 Jan 2022, at 10:51 pm, JunqiK @.***> wrote:

Wow, sound pleasing. Will try this

sushilei @.***>于2022年1月29日 周六20:28写道:

Hi everybody, can somebody try the kext from my post https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1004252763 wth boot-arg TSC_sync_margin=0?

it works.thanks

— Reply to this email directly, view it on GitHub https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1024902532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXFDSHIP65GXW4X3SDOGOILUYPMOBANCNFSM5KOMBSGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/acidanthera/bugtracker/issues/1900#issuecomment-1024906037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCAA5LGWRIPUDU5AZOSQ53UYPPGTANCNFSM5KOMBSGA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

HeartAndSoul001 commented 2 years ago

wow! what happened to the boot-arg TSC_sync_margin=0? It looks like the panic disappeared

gulios commented 2 years ago

ok, so far so good ;) 2 days without KP ;o)

lvs1974 commented 2 years ago

Everybody who has success with boot-arg TSC_sync_margin=0: Could you try this version without boot-arg TSC_sync_margin=0 (this kext sets this parameter to 0 automatically). CpuTscSync-1.0.6-DEBUG_TSC_sync_margin.zip

And would be great if more people could test it! Thank you for testing!

gulios commented 2 years ago

Everybody who has success with boot-arg TSC_sync_margin=0: Could you try this version without boot-arg TSC_sync_margin=0 (this kext sets this parameter to 0 automatically). CpuTscSync-1.0.6-DEBUG_TSC_sync_margin.zip

And would be great if more people could test it! Thank you for testing!

testing, thx!

sushilei commented 2 years ago

Everybody who has success with boot-arg TSC_sync_margin=0: Could you try this version without boot-arg TSC_sync_margin=0 (this kext sets this parameter to 0 automatically). CpuTscSync-1.0.6-DEBUG_TSC_sync_margin.zip

And would be great if more people could test it! Thank you for testing!

oh,NO! KP!

lvs1974 commented 2 years ago

@sushilei: have you seen the same KP as for previous versions of CpuTscSync? Could you add TSC_sync_margin=0 into boot-args and test again, please?

sushilei commented 2 years ago

@lvs1974 ye! The same KP as for previous versions of CpuTscSync. I'll test with TSC_sync_margin=0 again

sushilei commented 2 years ago

@lvs1974 ye! The same KP as for previous versions of CpuTscSync. I'll test with TSC_sync_margin=0 again

runs normally,@lvs1974

lvs1974 commented 2 years ago

@sushilei: in that case it means TSC_sync_margin=0 has to be set in boot-args. Probably, when CpuTscSync sets TSC_sync_margin to zero - it is too late.

gulios commented 2 years ago

ok, so it looks like everything is fine. No KP with that version. @lvs1974 can you release official version, please?

Thank you!!!

I think we can close that issue.

lvs1974 commented 2 years ago

This issue might be fixed in version 1.0.6. If kernel panic still occurs, please add TSC_sync_margin=0 into boot-args (kext does not do this since it can be too late).

Maoge-HUB commented 2 years ago

Yes, I had this problem on my LEGION Y7000-2019 laptop and it bothered me a lot ,but now it seems to be solved by adding boot-args: TSC_sync_margin=0 and CpuTscSync1.0.6, (now tested for 1 day of intense use without sleep crash). However, when I remove SSDT-AWAC and change the ACPI time and alarm device to Legacy RTC in BIOS advanced settings, this KP (Non-monotonic time) often appears. However, with SSDT-AWAC enabled, this KP rarely occurs, and I think it has only occurred once in my memory. I didn't know that this KP (Non-monotonic time) could be solved with TSC_sync_margin=0. And I only unlocked the BIOS advanced settings on 29 Nov 2021, I thought I could enable legacy RTC by modifying the advanced settings, but in fact it would often sleep crash, I was using Monterey instead of Big Sur at the time, so I don't know if this is normal on Big Sur. So I thought for a long time that this had something to do with my SSDT-AWAC (as I tested it a lot).

lvs1974 commented 2 years ago

Hello everybody! It seems I have found a better place in the macOS kernel to sync TSC. Could you be so kind guys and test attached version without boot-arg TSC_sync_margin=0? CpuTscSync-1.0.7-DEBUG.zip

sushilei commented 2 years ago

@lvs1974 I will test it. In the meantime, can you pay attention to this issue? #1944

gulios commented 2 years ago

testing

Maoge-HUB commented 2 years ago

Thanks, I'm using my laptop to test

jamescobalt commented 2 years ago

Hello everybody! It seems I have found a better place in the macOS kernel to sync TSC. Could you be so kind guys and test attached version without boot-arg TSC_sync_margin=0? CpuTscSync-1.0.7-DEBUG.zip

I'm on an ASRock X299 system so... pretty niche... and I was getting similar kernel panics in trying to update OpenCore for a working Catalina install (and then update that to Monterey). The 1.0.7 got me past the KP but when I'd get to the login screen, all my USB devices lost power (despite having a proper USB map and being initialized before the screen). Same thing when booting into an external Monterey installer; the system wasn't hung as there was animation on the screen telling me to connect a keyboard and trackpad.

Switching to 1.0.6 and using the boot arg, however, allowed me to boot with USB working.