Jump to content

Mavericks kernel testing on AMD (formerly Mountain Lion kernel testing on AMD)


theconnactic
 Share

6,414 posts in this topic

Recommended Posts

I got the same KP as aplIIc's

 

 

Screen_Shot_2013_11_14_at_1_54_33_PM.png

 

 

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

 

Screen_Shot_2013_11_14_at_12_54_02_AM.pn

 

 

 

the  dmesg doesn't report any opemu errors

 

Screen_Shot_2013_11_14_at_12_55_25_AM.pn

 

 

 

but I also find these errors:

 

Screen_Shot_2013_11_14_at_12_56_03_AM.pn

Link to comment
Share on other sites

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.

  • Like 3
Link to comment
Share on other sites

UPDATE

 

 

i've managed to get rid of the smcReadKeyAction ERROR

by replacing the AppleSMC.kext with the old one

 

 

no smcReadKeyAction ERROR

Screen_Shot_2013_11_14_at_3_49_59_PM.png

 

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

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

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.

  • Like 3
Link to comment
Share on other sites

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 ;)

  • Like 1
Link to comment
Share on other sites

@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.

  • Like 4
Link to comment
Share on other sites

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;

;):D

BRONYA_ANV_SINETEK_R1.diff.zip

mach_kernel.zip

  • Like 5
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

tested

the same pink icons

shodows artifacts

 

same imove problem

 

post-378955-0-08935800-1384445780_thumb.png


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

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

I get a panic too

 

Photo_2013_11_14_6_31_45_PM.jpg
 

(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

 

 

Attached Files

 

 

 

 

Youtube randomly crashes on both firefox & safari (with h/w acceleration enabled)

 

Screen_Shot_2013_11_14_at_11_39_07_PM.pn

 

 

 

 

Yes! I said randomly coz sometimes it can be played properly on those 2 browsers

 

 

Screen_Shot_2013_11_14_at_11_47_11_PM.pn

 

 

 

 

And when it crashes, 

the dmesg reports these errors (invalid user opcode)

 

Screen_Shot_2013_11_14_at_11_46_25_PM.pn

 

 

 

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

 

 

Screen_Shot_2013_11_15_at_12_29_56_AM.pn

 

Link to comment
Share on other sites

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 by Skunk.34
Link to comment
Share on other sites

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

 Share

×
×
  • Create New...