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

CpuTscSync Panic again with TSC_sync_margin=0 #1944

Closed
sushilei opened this issue Feb 5, 2022 · 6 comments
Closed

CpuTscSync Panic again with TSC_sync_margin=0 #1944

sushilei opened this issue Feb 5, 2022 · 6 comments

Comments

@sushilei
Copy link

sushilei commented Feb 5, 2022

today cputscSync panic again with TSC_sync_margin=0,cputscSync 1.0.6.

panic frequency decreased with TSC_sync_margin=0, but this time pc slept more than 24 hours,then panic.

this is log:

panic(cpu 0 caller 0xffffff8005cb34e3): Non-monotonic time: invoke at 0x17818df5c31e, runnable at 0x1781dc7c1b06 @sched_prim.c:2865
Panicked task 0xffffff8702b40670: 367 threads: pid 0: kernel_task
Backtrace (CPU 0), panicked thread: 0xffffff8bcf17d540, Frame : Return Address
0xffffffd0a77e3ba0 : 0xffffff8005c87ddd
0xffffffd0a77e3bf0 : 0xffffff8005de7d15
0xffffffd0a77e3c30 : 0xffffff8005dd74e3
0xffffffd0a77e3c80 : 0xffffff8005c27a60
0xffffffd0a77e3ca0 : 0xffffff8005c881ad
0xffffffd0a77e3dc0 : 0xffffff8005c87966
0xffffffd0a77e3e20 : 0xffffff80065160b9
0xffffffd0a77e3e90 : 0xffffff8005cb34e3
0xffffffd0a77e3f00 : 0xffffff8005cb1137
0xffffffd0a77e3f50 : 0xffffff8007438279
0xffffffd0a77e3fa0 : 0xffffff8005c2718e
Kernel Extensions in backtrace:
com.apple.driver.AppleSMC(3.1.9)[35AE3273-8BB5-3D86-B020-24794A7DFB99]@0xffffff8007429000->0xffffff8007441fff
dependency: com.apple.driver.watchdog(1)[3ED7E410-AB67-344C-BAAA-45D38F726761]@0xffffff8009100000->0xffffff8009102fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[B750EC9D-D224-309C-8C32-3F32C6257F1E]@0xffffff800833f000->0xffffff8008340fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[023CD3FF-4EFC-3455-89C2-FF8BD98013EB]@0xffffff80087e6000->0xffffff8008810fff

Process name corresponding to current thread (0xffffff8bcf17d540): kernel_task
Boot args: alcid=1 TSC_sync_margin=0 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: 0x0000000005a00000
KernelCache base: 0xffffff8005c00000
Kernel slide: 0x0000000005a10000
Kernel text base: 0xffffff8005c10000
__HIB text base: 0xffffff8005b00000
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: 25845199957369
Last Sleep: absolute base_tsc base_nano
Uptime : 0x000017818df6702a
Sleep : 0x00001781805f8018 0x00000001d3a35f5a 0x000017744f19519e
Wake : 0x0000177457e6dfa7 0x00000001c8e22d1a 0x000017818c7b854b
Zone info:
Foreign : 0xffffff801e0d2000 - 0xffffff801e0df000
Native : 0xffffff809c444000 - 0xffffffa09c444000
Readonly : 0xffffff8569110000 - 0xffffff8702aa4000
Metadata : 0xfffffff7f6f9e000 - 0xfffffff817782000
Bitmaps : 0xfffffff817782000 - 0xfffffff82f782000
last started kext at 6203554078597: >usb.cdc.acm 5.0.0 (addr 0xffffff7f9ea86000, size 12288)
loaded kexts:
com.intel.driver.EnergyDriver 3.7.0
as.acidanthera.mieze.!IMausi 1.0.7
ru.joedm.SMCSuperIO 1.2.8
as.vit9696.SMCProcessor 1.2.8
as.vit9696.VirtualSMC 1.2.8
org.lvs1974.driver.CpuTscSync 1.0.6
as.vit9696.!AALC 1.6.8
as.vit9696.Lilu 1.5.9

!ATopCaseHIDEventDriver 5020.1
@filesystems.autofs 3.0
@fileUtil 20.036.15
AudioAUUC 1.70
!AUpstreamUserClient 3.6.8
!AMCCSControl 1.14
!AHDAHardwareConfigDriver 283.15
!AHDA 283.15
@kext.AMDRadeonX6000 4.0.7
!APlatformEnabler 2.7.0d0
@kext.AMDRadeonServiceManager 4.0.7
X86PlatformShim 1.0.0
AGPM 127
!AGFXHDA 100.1.434
!ALPC 3.1
!AGraphicsDevicePolicy 6.4.9
@AGDCPluginDisplayMetrics 6.4.9
pmtelemetry 1
|IOUserEthernet 1.0.1
usb.!UUserHCI 1
!AHV 1
!ADiskImages2 126.60.3
!A!IPCHPMC 2.0.1
!A!IMCEReporter 115
@UVCService 1
!AFIVRDriver 4.1.0
!A!ISlowAdaptiveClocking 4.0.0
ACPI_SMC_PlatformPlugin 1.0.0
!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
@filesystems.apfs 1933.61.1
@private.KextAudit 1.0
AirPort.BrcmNIC 1400.1.1
!AAHCIPort 351
!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
usb.cdc.acm 5.0.0
usb.serial 6.0.0
driverkit.serial 6.0.0
|IOSerial!F 11
!AHIDKeyboard 228
!AMultitouchDriver 5430.1
!AInputDeviceSupport 5400.30
!AHS!BDriver 5020.1
IO!BHIDDriver 9.0.0
@kext.triggers 1.0
|IOAVB!F 1010.2
@plugin.IOgPTPPlugin 1000.11
|IOEthernetAVB!C 1.1.0
DspFuncLib 283.15
@kext.OSvKernDSPLib 529
@kext.AMDRadeonX6000HWLibs 1.0
|IOAccelerator!F2 462.4.1
@kext.AMDRadeonX6000HWServices 4.0.7
!ASMBus!C 1.0.18d1
|IOSMBus!F 1.1
!UAudio 413.5
!AAudioClockLibs 100.9.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
|IONDRVSupport 593
@kext.AMDRadeonX6000Framebuffer 4.0.7
@kext.AMDSupport 4.0.7
|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
|Broadcom!BHost!CUSBTransport 9.0.0
|Broadcom!B20703USBTransport 9.0.0
!AIPAppender 1.0
!UMergeNub 900.4.2
@!AGPUWrangler 6.4.9
@!AGraphicsDeviceControl 6.4.9
|IOGraphics!F 593
|IOSlowAdaptiveClocking!F 1.0.0
IOPlatformPluginLegacy 1.0.0
X86PlatformPlugin 1.0.0
IOPlatformPlugin!F 6.0.0d8
usb.cdc.ecm 5.0.0
usb.cdc.ncm 5.0.0
usb.IOUSBHostHIDDevice 1.2
usb.cdc 5.0.0
usb.networking 5.0.0
usb.!UHostCompositeDevice 1.2
usb.!UHub 1.2
!ABSDKextStarter 3
|IOSurface 302.9
@filesystems.hfs.encodings.kext 1
!AXsanScheme 3
usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
!AEFINVRAM 2.1
|IO80211!FLegacy 1200.12.2b1
|IOSkywalk!F 1.0
mDNSOffloadUserClient 1.0.1b8
corecapture 1.0.4
|IONVMe!F 2.1.0
|IOAHCI!F 295
usb.!UXHCIPCI 1.2
usb.!UXHCI 1.2
!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

@HeartAndSoul001
Copy link

#I don't know if something else bring this panic. I met this in Monterey too, and now degrade to Big Sur without any problem. Then, I read the latest issues and found that some issues happened just in Monterey other than Big Sur or older version, for example #1895 . my point is that may be there is another reason for this panic.

@HeartAndSoul001
Copy link

And I found that most happened on laptop which has more parts need to be modified, other than desktop.

@sushilei
Copy link
Author

panic again.And this time pc slept less than 6 hours

@JunqiK
Copy link

JunqiK commented Feb 10, 2022

Yes. Panic again with TSC_sync_margin=0 cputscSync 1.0.6. The args does reduce the frequency and possibility of panic. BUT, it still panic randomly.

@lvs1974
Copy link

lvs1974 commented Feb 11, 2022

I have found a better place to sync TSC in the kernel, please try attached version without boot-arg TSC_sync_margin=0.
CpuTscSync-1.0.7-DEBUG.zip

@lvs1974
Copy link

lvs1974 commented Feb 15, 2022

Must be fixed in version 1.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants