Andy Vandijck Posted November 6, 2013 Share Posted November 6, 2013 comment peut-on savoir s'il fonctionne en mode 64 bit et au pire peut-on bloquer syscall pour forcer sysenter à fonctionner et observer la réaction du noyau ? how can we know if it works in 64 bit mode and at worst may be blocking syscall sysenter force to operate and observe the reaction kernel? In summary do work as a core2duo is not syscall. These days we do it differently. The opemu gets invoked when an invalid operand is encountered. So when SYSENTER gets run on x86_64 these days it causes an T_INVALID_OPCODE (which gets passed into the kernel trap). The trap then invokes the opemu and the opemu checks the instructions. This sees it is in fact a SYSENTER and invokes the emulator to emulate a proper syscall (mach syscall / unix syscall). This way it will work when it encounters it in both 32 and 64 bit mode. 2 Link to comment Share on other sites More sharing options...
xwxw Posted November 7, 2013 Share Posted November 7, 2013 Hi, guys! I found that my computer became very slow about ten minutes after I logged in Maverick. But at the beginning it was very smooth. If I reboot, it was very smooth at first, and then became very slow again. And I can not run Cinebench R11.5. My cpu is Athlon 7450, video card is hd 6450. And use the RC5. Thank you! Link to comment Share on other sites More sharing options...
Sinetek Posted November 7, 2013 Share Posted November 7, 2013 @devsI still think it might be a problem with the cache. #commpage.c switch (cpu_info.cache_line_size) { case 128: bits |= kCache128; break; case 64: bits |= kCache64; break; case 32: bits |= kCache32; break; default: break; } maybe try forcing 128B cacheline size? or maybe even disabling all caches to test (machine will be VERY SLOW) 2 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 7, 2013 Share Posted November 7, 2013 @devs I still think it might be a problem with the cache. #commpage.c switch (cpu_info.cache_line_size) { case 128: bits |= kCache128; break; case 64: bits |= kCache64; break; case 32: bits |= kCache32; break; default: break; } maybe try forcing 128B cacheline size?or maybe even disabling all caches to test (machine will be VERY SLOW) We could test it...Not sure if it will help though but worth a shot Link to comment Share on other sites More sharing options...
ameris_cyning Posted November 7, 2013 Share Posted November 7, 2013 These days we do it differently. The opemu gets invoked when an invalid operand is encountered. So when SYSENTER gets run on x86_64 these days it causes an T_INVALID_OPCODE (which gets passed into the kernel trap). The trap then invokes the opemu and the opemu checks the instructions. This sees it is in fact a SYSENTER and invokes the emulator to emulate a proper syscall (mach syscall / unix syscall). This way it will work when it encounters it in both 32 and 64 bit mode. We got a nerd up here How in the blue hell did you figure that out? Link to comment Share on other sites More sharing options...
Sinetek Posted November 7, 2013 Share Posted November 7, 2013 We got a nerd up here How in the blue hell did you figure that out? I got the idea from a paper published by Maxxus/Voodoo Team, if that's your question? 3 Link to comment Share on other sites More sharing options...
Sinetek Posted November 7, 2013 Share Posted November 7, 2013 so i managed to disable the caches completely. the computer is very slow lol @anv this might not do what you intended it to uint64_t misc_enable = 0; if (IsIntelCPU()) { uint64_t misc_enable = rdmsr64(MSR_IA32_MISC_ENABLE); } Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 7, 2013 Share Posted November 7, 2013 so i managed to disable the caches completely. the computer is very slow lol @anv this might not do what you intended it to uint64_t misc_enable = 0; if (IsIntelCPU()) { uint64_t misc_enable = rdmsr64(MSR_IA32_MISC_ENABLE); } I know.I fixed it in the latest diff. (The PM pack contains this) I forgot to remove the uint64_t in that diff. Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 Get this KP every time I close CleanMyMac. Never had the problem before. opemu? Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 7, 2013 Share Posted November 7, 2013 Get this KP every time I close CleanMyMac. Never had the problem before. opemu? WP_20131107_001.jpg Which kernel is it?Could you test with the kernel in the PM pack? I'll try to trace it down. Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 Which kernel is it? Could you test with the kernel in the PM pack? I'll try to trace it down. Do I need the system.kext as well if I'm not using the app? Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 7, 2013 Share Posted November 7, 2013 Do I need the system.kext as well if I'm not using the app?You need the System.kext for VoodooPState.kext to work... Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 You need the System.kext for VoodooPState.kext to work... Works fine with the kernel in the PM pack. Not using the system.kext as I don't use VoodooPState. Edit: After running a full clean my whole PC froze upon closing it. No HDD activity just froze. No log for it 1 Link to comment Share on other sites More sharing options...
Mohamed Khairy Posted November 7, 2013 Share Posted November 7, 2013 all kernels here freeze during installing osx trough clover uefi they freeze on update dlyid shared cache when there is 3 min to complete setup and what about this idea about loop on kernel to consume fixed percentage from cpu ? i am always on this state with this load to make mac usable Screen Shot 2013-11-04 at 2.15.57 AM.png my pc needs even 1 % cpu load but continuous load for this percentage can you make a loop on kernel that make it use small load on cpu like 1 or 2 % but continuous use of this precintage i think may this help ! Link to comment Share on other sites More sharing options...
aziiz3 Posted November 7, 2013 Share Posted November 7, 2013 Works fine with the kernel in the PM pack. Not using the system.kext as I don't use VoodooPState. Edit: After running a full clean my whole PC froze upon closing it. No HDD activity just froze. No log for it me too, im only using the kernel without system.kext and voodooPstates.kext tried once using the system.kext and voodooPstates, my computer ran so slow, is it because the cpu speed limit to 1GHz ? or can we change the limit ? and btw, i dont have any problem when using cleanmymac Link to comment Share on other sites More sharing options...
denisrus Posted November 7, 2013 Share Posted November 7, 2013 Using latest Bronya kernel I have issues with text in Safari, Appstore and other apps. This bug is also in photo preview. I read a lot information (in this topic and many others) but I didn't find answer why it's appearing. Changing AMD framebuffers in clover didn't helped. Injecting my graphic card id also didn't help. But QE/CI and OpenGL are working. So is it a kernel bug or wrong framebuffer? Or something else? Or may be modding a vbios to support uefi gop will help? I attach a crash log file that was generated when I opened a photo in stock preview app (in .zip file .crash file (when uploading .crash file I've got a message that uploading this type of file isn't permitted)). Hardware: Motherboard: ASRock 970 Extreme 3 CPU: AMD FX-8320 VIDEO: Sapphire AMD HD Radeon 7870 Dual-X (HDMI connection to monitor) RAM: Corsair XMS3 4GB (1ps) Preview Crash File.zip Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 me too, im only using the kernel without system.kext and voodooPstates.kext tried once using the system.kext and voodooPstates, my computer ran so slow, is it because the cpu speed limit to 1GHz ? or can we change the limit ? and btw, i dont have any problem when using cleanmymac Limited my CPU to 1.6 GHz. What version are you using? I've got 2.0.3 Link to comment Share on other sites More sharing options...
aziiz3 Posted November 7, 2013 Share Posted November 7, 2013 Limited my CPU to 1.6 GHz. What version are you using? I've got 2.0.3 mine is 2.1.0 Link to comment Share on other sites More sharing options...
Andy Vandijck Posted November 7, 2013 Share Posted November 7, 2013 mine is 2.1.0The version in the PM pack is custom.Proper version: 1.0.5 for both kext and app Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 The version in the PM pack is custom. Proper version: 1.0.5 for both kext and app CleanMyMac version Link to comment Share on other sites More sharing options...
Sinetek Posted November 7, 2013 Share Posted November 7, 2013 yeah, I confirm the graphics problems are due to caching issues. on AMD there are a few more MSR's controlling caching and so on, SYSCFG TOP_MEM2TOP_MEM1unfortunately I haven't found the right combination yet, but disabling the caches entirely, the nvidia driver works. 7 Link to comment Share on other sites More sharing options...
theconnactic Posted November 7, 2013 Author Share Posted November 7, 2013 That explains why the dumps from previous sessions when trying to boot to nVidia (and sometimes ATI, at least when WindowServer initializes) yeah, I confirm the graphics problems are due to caching issues. on AMD there are a few more MSR's controlling caching and so on, SYSCFG TOP_MEM2TOP_MEM1unfortunately I haven't found the right combination yet, but disabling the caches entirely, the nvidia driver works. under ML or Mavericks. P.S.: deleted support request post from another user: this topic is not the appropriate place. Link to comment Share on other sites More sharing options...
Mohamed Khairy Posted November 7, 2013 Share Posted November 7, 2013 yeah, I confirm the graphics problems are due to caching issues. on AMD there are a few more MSR's controlling caching and so on, SYSCFG TOP_MEM2 TOP_MEM1 unfortunately I haven't found the right combination yet, but disabling the caches entirely, the nvidia driver works. wow does it work without any artefacts or glitch and is opengl above 1.5 works ? ---- really i have a final exam after tomorrow and can't stop me from following development here Link to comment Share on other sites More sharing options...
Sinetek Posted November 7, 2013 Share Posted November 7, 2013 WOOOOOOOOOOOOOOOOOOOOOOOTTTTTTT stay tuned!!! doing a little happy dance 7 Link to comment Share on other sites More sharing options...
Shaneee Posted November 7, 2013 Share Posted November 7, 2013 WOOOOOOOOOOOOOOOOOOOOOOOTTTTTTT stay tuned!!! doing a little happy dance Do you practice magic? Link to comment Share on other sites More sharing options...
Recommended Posts