m28ew Posted November 14, 2013 Share Posted November 14, 2013 I got the same KP as aplIIc's UPDATE It seems that the KP happens only when running 32-bit apps (e.g. TextWrangler, CPU-X, etc) Running 64-bit apps results in no KP the dmesg doesn't report any opemu errors but I also find these errors: Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 Try kernel with new opemu from site. mach_rc7_new_opemu.zip @Bronzovka: wait a bit. I'm currently revising the new opemu.I've already implemented the 32-bit parts and sysexit. Wait a bit.. error message : "OPEMU : shortmode XMM modnot implemented "See post above.It's 32-bit part of fetchoperands not implemented. 3 Link to comment Share on other sites More sharing options...
m28ew Posted November 14, 2013 Share Posted November 14, 2013 but I also find these errors: UPDATE i've managed to get rid of the smcReadKeyAction ERROR by replacing the AppleSMC.kext with the old one no smcReadKeyAction ERROR AppleSMC.zip Link to comment Share on other sites More sharing options...
ADHDMedia Posted November 14, 2013 Share Posted November 14, 2013 UPDATE i've managed to get rid of the smcReadKeyAction ERROR by replacing the AppleSMC.kext with the old one no smcReadKeyAction ERROR Worked for me as well, thank you. Now if only we could get rid of these pink icons… just wish I had the knowledge to be able to contribute to the solutions around here lol Link to comment Share on other sites More sharing options...
Chris Etheridge Posted November 14, 2013 Share Posted November 14, 2013 I am getting tons of these errors: Chriss-iMac:~ Chris$ sudo dmesg Pt /Volumes/Transcend] disk2s1: media is not present. 0 [Level 3] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read] [PBlkNum 42944] [LBlkNum 5364] 0 [Level 3] [Facility com.apple.system.fs] [DevNode /dev/disk2s1] [MountPt /Volumes/Transcend] disk2s1: media is not present. 0 [Level 3] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read] [PBlkNum 42944] [LBlkNum 5364] 0 [Level 3] [Facility com.apple.system.fs] [DevNode /dev/disk2s1] [MountPt /Volumes/Transcend] disk2s1: media is not present. Transcend was the name of a hard drive I put into my computer about a day ago. Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 Ok, mostly rewritten. I still need to add some of my patches but Bronzovka, your diff is updated. I'll attach it soon. I used the new opemu with some additions. I fixed the 32-bit part, added sysenter 64-bit call in user space, added sysexit and lastly fixed up some cast alignment issues with the opemu. The patch set now builds without removing -Wcast-align and -Werror EDIT: still todo - add last SSE3 instruction and implement fetching and handling for SSE3. For SSSE3 emu we still need to implement mod32 disp and high reg SSE. 3 Link to comment Share on other sites More sharing options...
Bronya Posted November 14, 2013 Share Posted November 14, 2013 Ok, mostly rewritten. I still need to add some of my patches but Bronzovka, your diff is updated. I'll attach it soon. I used the new opemu with some additions. I fixed the 32-bit part, added sysenter 64-bit call in user space, added sysexit and lastly fixed up some cast alignment issues with the opemu. The patch set now builds without removing -Wcast-align and -Werror Ok ! Nice work 1 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 @Sinetek: the 11th (and last SSE3 instruction), is it fisttp? If so we can use fistp instead. It works just as good.. if we fully add SSE3 emu it will also work on very early Athlon64 (single core, gen 3 I believe) CPUs. Which may be a benefit to some users. 4 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 Ok ! Nice work Ok, this is your diff with the above mentioned changes and on some places I changed the string compare between the vendor and GenuineIntel to IsIntelCPU(). I also removed the old unneeded code (like the fatfile_getarch2 and the extra cs part and disasm.c also... as they where used in the on-the-fly binary patcher they where unused and unneeded...) @Rest: test it and let me know how it works... I'll continue my work and add my useful patches... (like pentium 4 support + Atom) EDIT: Oh yeah, Bronzovka. Little example of cast alignment fix: Old code in example: uint8_t resultA[32]; uint64_t testbufferA = 0x0fedcba987654321; uint64_t testbufferB = 0x12345678abcdef0; /* Bad... cast alignment issue */ ((uint64_t *)resultA)[0] = testbufferA; ((uint64_t *)resultA)[1] = testbufferA; ((uint64_t *)resultA)[2] = testbufferB; ((uint64_t *)resultA)[3] = testbufferB; /* Till here */ The fix: uint8_t resultA[32]; uint64_t testbufferA = 0x0fedcba987654321; uint64_t testbufferB = 0x12345678abcdef0; /* Fix casts */ // Because this is a character value of given width, get address and cast to biggest address value uint64_t tmpVal = (uint64_t)&resultA; // Next make it the target casted pointer uint64_t *tmpCast = (uint64_t *)tmpVal; // Use the pointer tmpCast[0] = testbufferA; tmpCast[1] = testbufferA; tmpCast[2] = testbufferB; tmpCast[3] = testbufferB; Which is in the style of something used in the opemu... The other fix: original = address = r64->isf.rip + *((int32_t*)&ModRM[consumed]); new = // Cast address to largest integer uint64_t ModRMVal = (uint64_t)&ModRM[consumed]; // Assign to pointer int32_t *ModRMCast = (int32_t *)ModRMVal; // Calculation with value of pointer address = r64->isf.rip + *ModRMCast; BRONYA_ANV_SINETEK_R1.diff.zip mach_kernel.zip 5 Link to comment Share on other sites More sharing options...
Sannti Posted November 14, 2013 Share Posted November 14, 2013 What about new iMovie video render. 1 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 What about new iMovie video render. Could you test it and give me an example? Link to comment Share on other sites More sharing options...
Shaneee Posted November 14, 2013 Share Posted November 14, 2013 Instant reboot on Athlon II X2 215 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 14, 2013 Share Posted November 14, 2013 Instant reboot on Athlon II X2 215 Ok, I'll try to find the issue... Instant reboot on Athlon II X2 215 Could you provide me with an output of sysctl -a | grep machdep.cpu ? Thanks 1 Link to comment Share on other sites More sharing options...
Bronya Posted November 14, 2013 Share Posted November 14, 2013 @AnV ! You read in PM , i write to you why "instant reboot" ))) Link to comment Share on other sites More sharing options...
Mohamed Khairy Posted November 14, 2013 Share Posted November 14, 2013 tested the same pink icons shodows artifacts same imove problem 11/14/13 6:17:24.565 PM iMovie[425]: An instance 0x61000011ee70 of class FFBackgroundTaskQueue was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info: <NSKeyValueObservationInfo 0x618000459e30> ( <NSKeyValueObservance 0x6100006cf490: Observer: 0x105088ce0, Key path: inLowOverheadMode, Options: <New: NO, Old: NO, Prior: NO> Context: 0x104a87c21, Property: 0x610000e48370> ) 11/14/13 6:17:46.960 PM librariand[199]: ubiquity account is not configured (or is disabled for this client), not creating collection 11/14/13 6:17:46.960 PM librariand[199]: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection. 11/14/13 6:17:46.960 PM librariand[199]: error in check_request_path: LibrarianErrorDomain/2/request does not include 'Path' key 11/14/13 6:18:14.653 PM iMovie[475]: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces. and this on system log hope if it helps machdep.cpu.max_basic: 5 machdep.cpu.max_ext: 2147483675 machdep.cpu.vendor: AuthenticAMD machdep.cpu.brand_string: AMD Phenom(tm) II X4 955 Processor machdep.cpu.family: 16 machdep.cpu.model: 4 machdep.cpu.extmodel: 0 machdep.cpu.extfamily: 1 machdep.cpu.stepping: 2 machdep.cpu.feature_bits: 395049983 8397321 machdep.cpu.extfeature_bits: 4023647231 538623 machdep.cpu.signature: 1052482 machdep.cpu.brand: 0 machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 MON SSSE3 CX16 POPCNT machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI machdep.cpu.logical_per_package: 4 machdep.cpu.cores_per_package: 4 machdep.cpu.microcode_version: 21 machdep.cpu.processor_flag: 1 machdep.cpu.mwait.linesize_min: 64 machdep.cpu.mwait.linesize_max: 64 machdep.cpu.mwait.extensions: 3 machdep.cpu.mwait.sub_Cstates: 0 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 1 machdep.cpu.cache.size: 524288 machdep.cpu.tlb.inst.small: 32 machdep.cpu.tlb.inst.large: 16 machdep.cpu.tlb.data.small: 48 machdep.cpu.tlb.data.small_level1: 512 machdep.cpu.tlb.data.large: 48 machdep.cpu.tlb.data.large_level1: 128 machdep.cpu.address_bits.physical: 48 machdep.cpu.address_bits.virtual: 48 machdep.cpu.core_count: 4 machdep.cpu.thread_count: 4 Link to comment Share on other sites More sharing options...
Shaneee Posted November 14, 2013 Share Posted November 14, 2013 Ok, I'll try to find the issue... Could you provide me with an output of sysctl -a | grep machdep.cpu ? Thanks Using your REL2 kernel, machdep.cpu.max_basic: 5 machdep.cpu.max_ext: 2147483675 machdep.cpu.vendor: GenuineIntel machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU E7600 @ 3.06GHz machdep.cpu.family: 16 machdep.cpu.model: 6 machdep.cpu.extmodel: 1 machdep.cpu.extfamily: 0 machdep.cpu.stepping: 10 machdep.cpu.feature_bits: 395049983 8397321 machdep.cpu.extfeature_bits: 4022598655 14335 machdep.cpu.signature: 67194 machdep.cpu.brand: 0 machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 MON SSSE3 CX16 POPCNT machdep.cpu.extfeatures: SYSCALL 1GBPAGE EM64T LAHF RDTSCP TSCI machdep.cpu.logical_per_package: 2 machdep.cpu.cores_per_package: 2 machdep.cpu.microcode_version: 21 machdep.cpu.processor_flag: 1 machdep.cpu.mwait.linesize_min: 64 machdep.cpu.mwait.linesize_max: 64 machdep.cpu.mwait.extensions: 3 machdep.cpu.mwait.sub_Cstates: 0 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 16 machdep.cpu.cache.size: 524288 machdep.cpu.address_bits.physical: 48 machdep.cpu.address_bits.virtual: 48 machdep.cpu.core_count: 2 machdep.cpu.thread_count: 2 Link to comment Share on other sites More sharing options...
amiga23 Posted November 14, 2013 Share Posted November 14, 2013 @Andy for me only your kernel from "AMD_Kernel_And_PM_REL2.zip" works. All other kernels stop after mounting root_device. Link to comment Share on other sites More sharing options...
Chris Etheridge Posted November 14, 2013 Share Posted November 14, 2013 I get a panic too (Sorry for upside down picture, postimg is messing around today) Chriss-iMac:~ Chris$ sysctl -a | grep machdep.cpu machdep.cpu.max_basic: 5 machdep.cpu.max_ext: 2147483675 machdep.cpu.vendor: GenuineIntel machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU E7600 @ 3.06GHz machdep.cpu.family: 16 machdep.cpu.model: 6 machdep.cpu.extmodel: 1 machdep.cpu.extfamily: 0 machdep.cpu.stepping: 10 machdep.cpu.feature_bits: 395049983 8397321 machdep.cpu.extfeature_bits: 4022598655 14335 machdep.cpu.signature: 67194 machdep.cpu.brand: 0 machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 MON SSSE3 CX16 POPCNT machdep.cpu.extfeatures: SYSCALL 1GBPAGE EM64T LAHF RDTSCP TSCI machdep.cpu.logical_per_package: 2 machdep.cpu.cores_per_package: 2 machdep.cpu.microcode_version: 21 machdep.cpu.processor_flag: 1 machdep.cpu.mwait.linesize_min: 64 machdep.cpu.mwait.linesize_max: 64 machdep.cpu.mwait.extensions: 3 machdep.cpu.mwait.sub_Cstates: 0 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 16 machdep.cpu.cache.size: 1048576 machdep.cpu.address_bits.physical: 48 machdep.cpu.address_bits.virtual: 48 machdep.cpu.core_count: 2 machdep.cpu.thread_count: 2 Link to comment Share on other sites More sharing options...
Bronya Posted November 14, 2013 Share Posted November 14, 2013 @Andy for me only your kernel from "AMD_Kernel_And_PM_REL2.zip" works. All other kernels stop after mounting root_device what it is root_device ? Link to comment Share on other sites More sharing options...
m28ew Posted November 14, 2013 Share Posted November 14, 2013 Attached Files BRONYA_ANV_SINETEK_R1.diff.zip 30.59KB 9 downloads mach_kernel.zip 3.33MB 20 downloads Youtube randomly crashes on both firefox & safari (with h/w acceleration enabled) Yes! I said randomly coz sometimes it can be played properly on those 2 browsers And when it crashes, the dmesg reports these errors (invalid user opcode) Chrome seems to be able to play youtube properly (no errors found) UPDATE Youtube also randomly crashes on firefox even when the h/w acceleration has been disabled Link to comment Share on other sites More sharing options...
Bronya Posted November 14, 2013 Share Posted November 14, 2013 Chris Etheridge, please picture . I know it is . Shaneee , no problem . i can fix and create kernel . 1 Link to comment Share on other sites More sharing options...
aplIIc Posted November 14, 2013 Share Posted November 14, 2013 Nothing going, either KP or halt: Link to comment Share on other sites More sharing options...
Skunk.34 Posted November 14, 2013 Share Posted November 14, 2013 (edited) Work fine... this MachDep with OverClock @3.95Ghz Edit: I do not have a good performance with this kernel ... GeekBench 7940 against 9081 with the latest Kernel Bronya ... Last login: Thu Nov 14 18:10:53 on console localhost:~ DoudMacPc$ uname -a Darwin localhost 13.0.0 Darwin Kernel Version 13.0.0: do 14 nov 2013 13:15:45 CET; andyvand:xnu-2422.1.72-AMD/BUILD/obj/RELEASE_X86_64 x86_64 localhost:~ DoudMacPc$ sysctl machdep machdep.cpu.max_basic: 5 machdep.cpu.max_ext: 2147483675 machdep.cpu.vendor: AuthenticAMD machdep.cpu.brand_string: AMD Phenom(tm) II X4 965 Processor machdep.cpu.family: 16 machdep.cpu.model: 4 machdep.cpu.extmodel: 0 machdep.cpu.extfamily: 1 machdep.cpu.stepping: 3 machdep.cpu.feature_bits: 395049983 8397321 machdep.cpu.extfeature_bits: 4023647231 538623 machdep.cpu.signature: 1052483 machdep.cpu.brand: 0 machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 MON SSSE3 CX16 POPCNT machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI machdep.cpu.logical_per_package: 4 machdep.cpu.cores_per_package: 4 machdep.cpu.microcode_version: 21 machdep.cpu.processor_flag: 1 machdep.cpu.mwait.linesize_min: 64 machdep.cpu.mwait.linesize_max: 64 machdep.cpu.mwait.extensions: 3 machdep.cpu.mwait.sub_Cstates: 0 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 1 machdep.cpu.cache.size: 524288 machdep.cpu.tlb.inst.small: 32 machdep.cpu.tlb.inst.large: 16 machdep.cpu.tlb.data.small: 48 machdep.cpu.tlb.data.small_level1: 512 machdep.cpu.tlb.data.large: 48 machdep.cpu.tlb.data.large_level1: 128 machdep.cpu.address_bits.physical: 48 machdep.cpu.address_bits.virtual: 48 machdep.cpu.core_count: 4 machdep.cpu.thread_count: 4 machdep.vectors.timer: 221 machdep.vectors.IPI: 222 machdep.pmap.hashwalks: 87752 machdep.pmap.hashcnts: 332589 machdep.pmap.hashmax: 49 machdep.pmap.kernel_text_ps: 2097152 machdep.pmap.kern_pv_reserve: 8000 machdep.memmap.Conventional: 8550547456 machdep.memmap.RuntimeServices: 0 machdep.memmap.ACPIReclaim: 36864 machdep.memmap.ACPINVS: 2535424 machdep.memmap.PalCode: 0 machdep.memmap.Reserved: 19914752 machdep.memmap.Unusable: 0 machdep.memmap.Other: 0 machdep.tsc.frequency: 3928295391 machdep.tsc.deep_idle_rebase: 1 machdep.tsc.nanotime.tsc_base: 486298006643 machdep.tsc.nanotime.ns_base: 0 machdep.tsc.nanotime.scale: 1093341225 machdep.tsc.nanotime.shift: 0 machdep.tsc.nanotime.generation: 2 machdep.misc.panic_restart_timeout: 1266874889 machdep.misc.interrupt_latency_max: 0x0 0xde 0x188401 machdep.misc.machine_check_panic: machdep.misc.timer_queue_trace: machdep.misc.nmis: 0 machdep.eager_timer_evaluations: 26 machdep.eager_timer_evaluation_max: 112159 machdep.user_idle_level: 0 localhost:~ DoudMacPc$ Edited November 14, 2013 by Skunk.34 Link to comment Share on other sites More sharing options...
Skunk.34 Posted November 14, 2013 Share Posted November 14, 2013 with this kernel 9081 on GeekBench... Last login: Thu Nov 14 18:46:42 on console localhost:~ DoudMacPc$ uname -a Darwin localhost 13.0.0 Darwin Kernel Version 13.0.0: среда, 13 ноября 2013 г. 20:40:55 (MSK); root:xnu-2422.1.72_by_bronya_sinetek_anv_rc7/BUILD/obj/RELEASE_X86_64 x86_64 localhost:~ DoudMacPc$ sysctl machdep machdep.cpu.max_basic: 5 machdep.cpu.max_ext: 2147483675 machdep.cpu.vendor: AuthenticAMD machdep.cpu.brand_string: AMD Phenom(tm) II X4 965 Processor machdep.cpu.family: 16 machdep.cpu.model: 4 machdep.cpu.extmodel: 0 machdep.cpu.extfamily: 1 machdep.cpu.stepping: 3 machdep.cpu.feature_bits: 395049983 8397321 machdep.cpu.extfeature_bits: 4023647231 538623 machdep.cpu.signature: 1052483 machdep.cpu.brand: 0 machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH MMX FXSR SSE SSE2 HTT SSE3 MON SSSE3 CX16 POPCNT machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF RDTSCP TSCI machdep.cpu.logical_per_package: 4 machdep.cpu.cores_per_package: 4 machdep.cpu.microcode_version: 21 machdep.cpu.processor_flag: 1 machdep.cpu.mwait.linesize_min: 64 machdep.cpu.mwait.linesize_max: 64 machdep.cpu.mwait.extensions: 3 machdep.cpu.mwait.sub_Cstates: 0 machdep.cpu.cache.linesize: 64 machdep.cpu.cache.L2_associativity: 1 machdep.cpu.cache.size: 524288 machdep.cpu.tlb.inst.small: 32 machdep.cpu.tlb.inst.large: 16 machdep.cpu.tlb.data.small: 48 machdep.cpu.tlb.data.small_level1: 512 machdep.cpu.tlb.data.large: 48 machdep.cpu.tlb.data.large_level1: 128 machdep.cpu.address_bits.physical: 48 machdep.cpu.address_bits.virtual: 48 machdep.cpu.core_count: 4 machdep.cpu.thread_count: 4 machdep.vectors.timer: 221 machdep.vectors.IPI: 222 machdep.pmap.hashwalks: 136408 machdep.pmap.hashcnts: 401574 machdep.pmap.hashmax: 42 machdep.pmap.kernel_text_ps: 2097152 machdep.pmap.kern_pv_reserve: 8000 machdep.memmap.Conventional: 8550547456 machdep.memmap.RuntimeServices: 0 machdep.memmap.ACPIReclaim: 36864 machdep.memmap.ACPINVS: 2535424 machdep.memmap.PalCode: 0 machdep.memmap.Reserved: 19914752 machdep.memmap.Unusable: 0 machdep.memmap.Other: 0 machdep.tsc.frequency: 3928281483 machdep.tsc.deep_idle_rebase: 1 machdep.tsc.nanotime.tsc_base: 1046707999631 machdep.tsc.nanotime.ns_base: 0 machdep.tsc.nanotime.scale: 1093345096 machdep.tsc.nanotime.shift: 0 machdep.tsc.nanotime.generation: 2 machdep.misc.panic_restart_timeout: 1266874889 machdep.misc.interrupt_latency_max: 0x1 0xde 0x18749c machdep.misc.machine_check_panic: machdep.misc.timer_queue_trace: machdep.misc.nmis: 0 machdep.eager_timer_evaluations: 48 machdep.eager_timer_evaluation_max: 155511 machdep.user_idle_level: 0 localhost:~ DoudMacPc$ Link to comment Share on other sites More sharing options...
Bronya Posted November 14, 2013 Share Posted November 14, 2013 Work fine... this MachDep with OverClock @3.95Ghz Edit: I do not have a good performance with this kernel ... GeekBench 7940 against 9081 with the latest Kernel Bronya ... maybe because problem opemu ... it beta version . Link to comment Share on other sites More sharing options...
Recommended Posts