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

KP on 10.10.5, sandy bridge CPU. #15

Open
Lord-Kamina opened this issue Oct 18, 2016 · 8 comments
Open

KP on 10.10.5, sandy bridge CPU. #15

Lord-Kamina opened this issue Oct 18, 2016 · 8 comments

Comments

@Lord-Kamina
Copy link

Because I recently installed a new GPU (Maxwell) and it was giving me various issues, I began putting a closer eye on various things in my setup and realized PM isn't working as I had expected... for whatever reason, I was only getting 2 p-states (Maybe it's the SMBIOS? Does this ACTUALLY have anything to do with the number of pstates?)

So, I downloaded and compiled your kext, fixed permissions and owner, but whenever I try to load it with kextload the computer just freezes and I need to perform a hard reboot.

I'm using an i5-2300, Max ratio set to 33 (max turbo) for all 4 cores, and the CPU is almost always at x33; only very occasionally at x16.
My SMBIOS is iMac12,2; I ask about this because I've seen other people having issues with iMac12 SMBIOSes but I'd always thought this didn't really matter much other than cosmetically. Also, using SSDT generated with ssdtPRGen, which has steps all the way from 16 to 33.

@Piker-Alpha
Copy link
Owner

I'll see if I can dig up an old Sandy Bridge processor tomorrow and test the kext myself. Hopefully to find the problem pronto.

@Lord-Kamina
Copy link
Author

Thank you very much! I'd love to provide debugging info but sadly I'm not
really getting any output because it's literally a screen freeze.

On October 21, 2016 at 18:03:01, Pike R. Alpha ([email protected])
wrote:

I'll see if I can dig up an old Sandy Bridge processor tomorrow and test
the kext myself. Hopefully to find the problem pronto.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGJfLEzIRND-NodRGwWLBfWg4K6qUochks5q2SiFgaJpZM4KaZJq
.

@anayw2001
Copy link

I get a KP on kextload on a Core 2 Quad Q8200, 10.9.5

@kevin335200
Copy link

kevin335200 commented Jan 29, 2017

I'm using sandy bridge CPU e5-2670,and get a KP,either. OS 10.12.2
Anonymous UUID: 6FE26B1B-B58C-51AB-5B25-EE3A315C42E6

Mon Jan 30 00:04:05 2017

*** Panic Report ***
panic(cpu 4 caller 0xffffff8000405ead): Kernel trap at 0xffffff7f837dc15c, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x0000000104200000, CR3: 0x0000000016486000, CR4: 0x00000000000626e0
RAX: 0xffffff806a20f9f8, RBX: 0x0000000000001083, RCX: 0x000000000000064c, RDX: 0x0000000000000100
RSP: 0xffffff93b6e7a4a4, RBP: 0xffffff93b6e7a4b0, RSI: 0x0000000000000000, RDI: 0x000000000000064c
R8: 0xffffff806a20f9f8, R9: 0x0000000000000000, R10: 0x000000000000097a, R11: 0x0000000000000038
R12: 0xffffff804cf55f00, R13: 0xffffff8068b15c00, R14: 0x0000000000000000, R15: 0x0000000000000000
RFL: 0x0000000000010292, RIP: 0xffffff7f837dc15c, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000104200000, Error code: 0x0000000000000000, Fault CPU: 0x4, PL: 0, VF: 0

Backtrace (CPU 4), Frame : Return Address
0xffffff838904ddf0 : 0xffffff80002f211c
0xffffff838904de70 : 0xffffff8000405ead
0xffffff838904e050 : 0xffffff80002a3743
0xffffff838904e070 : 0xffffff7f837dc15c
0xffffff93b6e7a4b0 : 0xffffff7f837e3527
0xffffff93b6e7bb40 : 0xffffff7f837e72f5
0xffffff93b6e7be40 : 0xffffff800089949d
0xffffff93b6e7be80 : 0xffffff80008991ee
0xffffff93b6e7bf10 : 0xffffff80008987a6
0xffffff93b6e7bf60 : 0xffffff800089a1be
0xffffff93b6e7bfb0 : 0xffffff80002a0af7
Kernel Extensions in backtrace:
com.pikeralpha.driver.AppleIntelInfo(1.9)[802D3B16-3C49-3D16-8371-F5CED4C2103F]@0xffffff7f837da000->0xffffff7f837effff

BSD process name corresponding to current thread: kernel_task
Boot args: -v dart=0 darkwake=0 npci=0x2000 slide=0

Mac OS version:
16C67

Kernel version:
Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64
Kernel UUID: 8DF81F81-019F-348E-B47E-40A4484B9E21
__HIB text base: 0xffffff8000100000
System model name: MacPro6,1 (Mac-F60DEB81FF30ACF6)

System uptime in nanoseconds: 11900798662496
last loaded kext at 11900002582065: com.pikeralpha.driver.AppleIntelInfo 1.9 (addr 0xffffff7f837da000, size 90112)
last unloaded kext at 225097368622: com.apple.driver.usb.AppleUSBXHCI 1.1 (addr 0xffffff7f81aed000, size 290816)
loaded kexts:
com.pikeralpha.driver.AppleIntelInfo 1.9
com.nvidia.web.GeForceWeb 10.1.5
com.nvidia.web.NVDAGM100HalWeb 10.1.5
com.nvidia.web.NVDAResmanWeb 10.1.5
com.Cycling74.driver.Soundflower 1.0
at.obdev.nke.LittleSnitch 4718
net.osx86.kexts.GenericUSBXHCI 1.2.11
com.insanelymac.driver.AppleIntelE1000e 3.3.5
org.netkas.FakeSMC 3.4.0
org.voodoo.driver.VoodooTSCSync 1.1
org.tgwbd.driver.NullCPUPowerManagement 1.0.0d2
as.vit9696.AppleALC 1.0.15
com.apple.nke.rvi 2.0.0
com.apple.filesystems.msdosfs 1.10
com.apple.filesystems.ntfs 3.13
com.apple.iokit.IOBluetoothSerialManager 5.0.2f4
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleUpstreamUserClient 3.6.4
com.apple.driver.AppleMCCSControl 1.2.15
com.apple.driver.AudioAUUC 1.70
com.apple.driver.AppleHDA 278.56
com.apple.driver.pmtelemetry 1
com.apple.iokit.IOUserEthernet 1.0.1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleHV 1
com.apple.driver.AppleOSXWatchdog 1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 5.0.2f4
com.apple.driver.AppleLPC 3.1
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.Apple16X50ACPI 3.2
com.apple.driver.AppleIntelMCEReporter 107
com.apple.driver.AppleUSBLegacyHub 900.4.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 40
com.apple.filesystems.hfs.kext 366.30.3
com.apple.driver.AirPort.Brcm4360 1130.3.1a4
com.apple.iokit.IOAHCIBlockStorage 295.20.1
com.apple.driver.AppleAHCIPort 326
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleACPIButtons 5.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleAPIC 1.7
com.apple.nke.applicationfirewall 172
com.apple.security.quarantine 3
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 219.0.0
com.apple.driver.AppleXsanScheme 3
com.apple.driver.AppleUSBMergeNub 900.4.1
com.apple.kext.triggers 1.0
com.apple.driver.AppleSMBusController 1.0.14d1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IOAcceleratorFamily2 289.27
com.apple.AppleGraphicsDeviceControl 3.13.78
com.apple.driver.DspFuncLib 278.56
com.apple.kext.OSvKernDSPLib 525
com.apple.iokit.IOSurface 153.3
com.apple.driver.AppleSSE 1.0
com.apple.iokit.IONDRVSupport 513.1
com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport 5.0.2f4
com.apple.iokit.IOBluetoothHostControllerTransport 5.0.2f4
com.apple.iokit.IOBluetoothFamily 5.0.2f4
com.apple.driver.AppleHDAController 278.56
com.apple.iokit.IOGraphicsFamily 513.1
com.apple.iokit.IOHDAFamily 278.56
com.apple.iokit.IOAudioFamily 205.11
com.apple.vecLib.kext 1.2.0
com.apple.driver.AppleSMC 3.1.9
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.driver.Apple16X50Serial 3.2
com.apple.iokit.IOSerialFamily 11
com.apple.iokit.IOSCSIArchitectureModelFamily 394.30.2
com.apple.iokit.IOUSBHIDDriver 900.4.1
com.apple.driver.AppleUSBComposite 900.4.1
com.apple.driver.usb.networking 5.0.0
com.apple.driver.AppleUSBHostMergeProperties 1.1
com.apple.driver.usb.AppleUSBHub 1.1
com.apple.filesystems.hfs.encodings.kext 1
com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
com.apple.iokit.IO80211Family 1200.12.2
com.apple.driver.mDNSOffloadUserClient 1.0.1b8
com.apple.driver.corecapture 1.0.4
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IONetworkingFamily 3.2
com.apple.iokit.IOAHCIFamily 288
com.apple.driver.usb.AppleUSBEHCIPCI 1.1
com.apple.driver.usb.AppleUSBEHCI 1.1
com.apple.driver.AppleEFINVRAM 2.1
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.security.sandbox 300.0
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.AppleKeyStore 2
com.apple.driver.AppleMobileFileIntegrity 1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost 1
com.apple.iokit.IOUSBHostFamily 1.1
com.apple.driver.AppleBusPowerController 1.0
com.apple.driver.DiskImages 444.30.5
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily 31
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleACPIPlatform 5.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.pthread 1
com.apple.kec.corecrypto 1.0
com.apple.kec.Libm 1
Model: MacPro6,1, BootROM MP61.0116.B04, 16 processors, 2.6 GHz, 32 GB, SMC 1.30f3
Graphics: NVIDIA GeForce GTX 950, NVIDIA GeForce GTX 950, PCIe, 2047 MB
Memory Module: DIMM1, 8 GB, DDR3, 1333 MHz, Samsung, M393B1K73DH0-CK
Memory Module: DIMM2, 8 GB, DDR3, 1333 MHz, Samsung, M393B1K73DH0-CK
Memory Module: DIMM5, 8 GB, DDR3, 1333 MHz, Samsung, M393B1K73DH0-CK
Memory Module: DIMM6, 8 GB, DDR3, 1333 MHz, Samsung, M393B1K73DH0-CK
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.21.171.68.1a4)
Bluetooth: Version 5.0.2f4, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en2
PCI Card: NVIDIA GeForce GTX 950, Display Controller, PCI Slot 0
Serial ATA Device: Samsung SSD 850 EVO 500GB, 500.11 GB
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB 2.0 Bus
USB Device: Hub
Thunderbolt Bus:

@kevin335200
Copy link

PS: version 1.4 works.
AppleIntelInfo.kext v1.4 Copyright © 2012-2015 Pike R. Alpha. All rights reserved

Settings:

logMSRs............................: 1
logIGPU............................: 0
logIntelRegs.......................: 1
logCStates.........................: 1
logIPGStyle........................: 1
InitialTSC.........................: 0x28f11d22e8ca
MWAIT C-States.....................: 135456

Model Specific Regiters

MSR_CORE_THREAD_COUNT......(0x35) : 0x80010
MSR_PLATFORM_INFO..........(0xCE) : 0xC0064011A00
MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E000403
MSR_PMG_IO_CAPTURE_BASE....(0xE4) : 0x414
IA32_MPERF.................(0xE7) : 0xF644B0882
IA32_APERF.................(0xE8) : 0x29DA51F777
MSR_FLEX_RATIO.............(0x194) : 0x0
MSR_IA32_PERF_STATUS.......(0x198) : 0x22E800001A00
MSR_IA32_PERF_CONTROL......(0x199) : 0x1A00
IA32_CLOCK_MODULATION......(0x19A) : 0x0
IA32_THERM_STATUS..........(0x19C) : 0x88480000
IA32_MISC_ENABLES..........(0x1A0) : 0x850089
MSR_MISC_PWR_MGMT..........(0x1AA) : 0x400000
MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x1E1E1F1F20202121
IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x0
MSR_POWER_CTL..............(0x1FC) : 0x2504005B
MSR_RAPL_POWER_UNIT........(0x606) : 0xA1003
MSR_PKG_POWER_LIMIT........(0x610) : 0x68450005A8398
MSR_PKG_ENERGY_STATUS......(0x611) : 0x7F453101
MSR_PKG_POWER_INFO.........(0x614) : 0x2F05A001980398
MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x141494800007F8
MSR_PP0_POWER_LIMIT........(0x638) : 0x0
MSR_PP0_ENERGY_STATUS......(0x639) : 0x3E17097E
MSR_PP0_POLICY.............(0x63a) : 0x0
MSR_PKGC6_IRTL.............(0x60b) : 0x0
MSR_PKGC7_IRTL.............(0x60c) : 0x0
MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x0
MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x0
MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0
MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0
IA32_TSC_DEADLINE..........(0x6E0) : 0x28F11F611C74
PCH device.................: 0x1D418086

CPU Ratio Info:

CPU Low Frequency Mode.............: 1200 MHz
CPU Maximum non-Turbo Frequency....: 2600 MHz
CPU Maximum Turbo Frequency........: 3300 MHz
CPU P-States [ (12) 25 26 ]
CPU P-States [ (12) 24 25 26 ]
CPU P-States [ (12) 21 24 25 26 ]

CPU P-States [ 12 21 23 24 25 (26) ]
CPU P-States [ (12) 21 22 23 24 25 26 ]
CPU P-States [ (12) 18 21 22 23 24 25 26 ]
CPU P-States [ (12) 18 19 21 22 23 24 25 26 ]
CPU P-States [ (12) 18 19 20 21 22 23 24 25 26 ]

But i'm still using Nullcpupowermanagement for my desktop,looking for a better way.

@anayw2001
Copy link

use an SSDT

@Lord-Kamina
Copy link
Author

Lord-Kamina commented Jan 30, 2017 via email

@Piker-Alpha
Copy link
Owner

Piker-Alpha commented Feb 22, 2017

@1kevin335200,

Please, do not load the kext from /S*/L*/E* or /L*/E* but load it dynamically from a terminal window.

Also. What do you get from:

sysctl -x machdep.cpu.model

I think that the RAPL MSR's are causing you troubles. I added checks for this in v2.3 and hope that you would be willing to give it a go.

Edit: Ok. Got it. Seem like I forgot to remove MSR(0x64C) and that causes the crash on Sandy Bridge processors. AppleIntelInfo.kext v2.4 works here on a i5-2500K and i7-2500K.

I even compiled it on 10.9.5 with Xcode 6 so backward compatibility is also no longer an issue.

Please confirm and close this issue. Thank you.

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

No branches or pull requests

4 participants