InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   Leopard 10.5 (http://infinitemac.com/forumdisplay.php?f=85)
-   -   [Solved] AMD Dual Core Timing Issue AKA Mouse Bug (http://infinitemac.com/showthread.php?t=734)

naquaada 06-20-2008 02:33 PM

Firefox 2 quits several times this is true. Preview exits if I use the 'Undo' function too often (Alt-Z/Option-Z).

I just tested something with CPU load: A Logic 8 project with 69-tracks, 5.1 surround realtime mixing with fullscreen video and playing a DivX movie (widescreen but full screen width) with Quicktime simultaneously. I could move the windows around VERY fast and smooth, no problems at all. Each CPU needed about 70-80%.

R0GUE 06-20-2008 02:44 PM

@naquuada; you are running Leo4All correct?

naquaada 06-20-2008 02:47 PM

Yes. Leo4All+ 10.5.3 AMD Update. But I also had no problems with Zephyroth 10.5.1 RC2. I now will install a new 10.5.1 RC2 plus a full patching to 10.5.3 with the combined Apple Software update using Zephyroth's Updater. I must check why Xcode crashes during installation.

R0GUE 06-20-2008 02:51 PM

I'm running on an upgraded Zeph 10.5.2 RC1

naquaada 06-20-2008 02:58 PM

Only to compare: I'm using a Socket 939 CPU with nForce 4 SLI chipset. Are you guys using AM2 and a nForce 5xx chipset?

Puttabong 06-20-2008 02:59 PM

DFI UT nF4 Ultra-D (nForce 4) & Socket 939.

R0GUE 06-20-2008 03:00 PM

AM2 nForce 570 MCP

naquaada 06-20-2008 03:00 PM

Ahaa. Have you checked your CPU and bus speed now in System Profiler?

R0GUE 06-20-2008 03:02 PM

I can't right now as I'm at work, but why do you ask?

naquaada 06-20-2008 03:05 PM

Only for comparison. Maybe I can try the same settings, but I presume your total CPU frquency (bus*multiplier) is higher than I can set mine.

Wow, Zephyroth's Updater found 132 cpuids in the combined 10.5.3 update. It's 549 MB in size.

R0GUE 06-20-2008 03:15 PM

iirc the system profiler does not correctly report the Bus Speed correctly. It states mine as being 200Mhz when in fact it should be 2Ghz (2 x 1000Mhz).

edit: Maybe I am wrong about the Bus Speed reading - I'm probably getting confused with the HT speed. :\

http://www.xbitlabs.com/images/cpu/a...0/cpu-3014.png

naquaada 06-20-2008 03:25 PM

No, the update from 10.5.1 -> 10.5.3 was not working. I have always errors on loginwindow, atsserver and mds.

R0GUE 06-20-2008 05:59 PM

22 hours of up time using CPUS=1 boot flag and my machine is still rock solid. I've spent some time in Photoshop creating artwork and applying filters with no visible sign of performance degradation.

Any Leo4All users experiencing this bug or is it just those of us using Zeph?

For now I can live with one core @3Ghz (though not ideal) until either A) I install Leo4All or B) my Intel kit arrives.

naquaada 06-20-2008 06:12 PM

Can you reduce the CPU clock speed in the BIOS? As I o'clocked my system to 3.06 GHz (on 10.5.2) it crashed, couldn't boot anymore. On 10.5.3 I can't have to stay beneath 3 GHz. The actual Macs also only have 3.06 Ghz max, could the high cpu speed be the problem?

R0GUE 06-20-2008 08:58 PM

@naquaada: I'll take a look at my bios settings in due course, but I first want to test this machine thoroughly before rebooting. So far it has been up for over 24 hours and I've hammered it without so much as a hitch. It's definitely a Dual Core problem as far as I am concerned.

StealthMode 06-20-2008 11:59 PM

It has to be, before I upgraded my A64 3200+ to my Opteron 165 x2 I didn't have this problem.

R0GUE 06-21-2008 12:22 AM

I've been speaking with JaS about this and he's convinced that this is a TSC timing issue. He's kindly going to find out about getting a patch to fix the timing issue. I'll keep you all posted.

http://developer.amd.com/assets/TSC_Dual-Core_Utility.pdf

Voyn1x 06-21-2008 12:18 PM

That's really good news! Rogue, after reading that pdf you linked, this would also explain those strange time correction entries in the console when running both cores. eg.

3/18/08 8:41:32 AM mDNSResponder[17] mDNSPlatformRawTime went backwards by 4 ticks; setting correction factor to 206737245

naquaada 06-21-2008 12:28 PM

Vony1x: You also have a Socket AM2 board I presume. Could this be a problem, maybe because of the DDR2 RAM? Puttabong and me have Socket 939 and it's working fine here. Have you disabled Cool'n'Quiet in the BIOS? I have it enabled.

Voyn1x 06-21-2008 12:31 PM

nope socket 939... Cool'n'Quiet not sure if i have an option for that, i'll have a look

Voyn1x 06-22-2008 06:20 PM

after a bit of research (ie. Google), it seems there's no way to disable Cool'n'Quiet on my mobo :(

@ Rogue, do you have an option for CnQ in yours, If so is it enabled?

naquaada 06-22-2008 06:48 PM

What kind of motherboard do you have?

EDIT: Found it in your account infos. Which version is it? there are three different.

EDIT2: Here is the manual for the version GA-K8NF-9-RH. I presume the BIOS versions are rather similar.

EDIT3: I Checked the BIOS setting and the complete manual, not a word about Cool'n'Quiet. This is crazy.

Have you tried to disable all unneccessary devices? Today this could be Floppy controller, LAN Boot ROM (is your onboard LAN working?), Parallel Port, Modem Port, Gameport, MIDI Port. If you use a PS/2 mouse and keyboard, I would set all three Legacy USB options to 'disabled'. In the 'MB Intelligent Tewaker' settings must be an option 'CPU Spread Spectrum', disable it.

R0GUE 06-22-2008 07:47 PM

Quote:

[cite] Voyn1x:[/cite]after a bit of research (ie. Google), it seems there's no way to disable Cool'n'Quiet on my mobo :(

@ Rogue, do you have an option for CnQ in yours, If so is it enabled?
C'n'Q is located in the Cell menu on my motherboard. Mine is enabled because I don't want my system running at full CPU when in an idle state or merely just chatting and surfing.

Voyn1x 06-22-2008 07:51 PM

mines the Rev 1, onboard lan is disabled... In theory most of the options you've suggested shouldn't make a difference if they're enabled or not since the machine is fine running cpus=1. I'll give disabling the spread spectrum a go to see if that helps at all though.

R0GUE 06-22-2008 07:59 PM

Voyn1x, on your mobo under M.I.T. you have an option named 'K8 CPU Clock Ratio', if that is set to Auto then C'n'Q is enabled, if you've changed it then it's disabled.

StealthMode 06-23-2008 04:28 AM

With idlehalt=0 and cpus=1 I am still having the mouse stuttering bug, more so when Transmission is checking data on an existing torrent. Large file transfers seem to be smoother though.. Still, the mouse movement still stutters. This is in Leo4Allv3 10.5.3.

snyder9 06-23-2008 10:05 AM

3 days 12 hours uptime with cpus=1.

Stable as a rock for me. Using Leo4allv3 10.5.3.

naquaada 06-23-2008 10:14 AM

can't understand it, it works great on my Opteron. Have you tried boot option -legacy? This are my com.apple.boot.plist settings:

<plist version="1.0">
<dict>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>-legacy</string>
<key>Timeout</key>
<string>3</string>
</dict>
</plist>

I deleted ALF.kext on my system, also all other gfx drivers which I don't need for my own card (Radeon X1000 series).

Voyn1x 06-23-2008 01:29 PM

Quote:

[cite] StealthMode:[/cite]With idlehalt=0 and cpus=1 I am still having the mouse stuttering bug, more so when Transmission is checking data on an existing torrent. Large file transfers seem to be smoother though.. Still, the mouse movement still stutters. This is in Leo4Allv3 10.5.3.
I think you've got a different issue there, could be something to with your hard disk/network drivers. Do you have any other symptoms? Apps quitting etc..?

StealthMode 06-23-2008 03:47 PM

I get the 1080 error in Zephs after awhile, iChat crahses a lot. Leo4Allv3 seems pretty stable app wise, but the mouse bug is worse I think.
I have a Buffalo WLI-12 wireless nic (broadcom chipset), I did not install the forcedeath kext for the nforce LAN, and I have the marvel LAN installed. (DFI Ultra-D mobo) The bug never shows up till torrents are being checked or I am transferring large files. I'm confused.

Voyn1x 06-23-2008 06:50 PM

Right, this morning(7hrs ago) I disabled the spread spectrum in my bios and booted with the -legacy flag.

To test I opened Firefox, every CS3 application and started playing a 4.3gb wmv-hd file.

I've just got home and all apps had quit on me. I had to logout and back in again because I was getting the -10810 error. Oh well back to the drawing board....

Days logs are below:

Code:

23/06/2008 10:15:46 com.apple.launchd[147] ([0x0-0x19019].org.mozilla.firefox[208]) Exited with exit code: 3
23/06/2008 10:17:42 com.apple.launchd[147] ([0x0-0x1b01b].com.adobe.illustrator[212]) Exited abnormally: Floating point exception
23/06/2008 10:17:51 com.apple.launchd[147] (com.apple.ReportCrash[995]) Exited abnormally: Floating point exception
23/06/2008 10:17:56 com.apple.launchd[147] ([0x0-0x24024].com.apple.quicktimeplayer[399]) Exited abnormally: Floating point exception
23/06/2008 10:19:01 com.apple.launchd[147] ([0x0-0x1d01d].com.adobe.InDesign[214]) Exited: Terminated
23/06/2008 10:19:30 com.apple.launchd[147] ([0x0-0x1a01a].com.adobe.dreamweaver-9.0[211]) Exited: Terminated
23/06/2008 10:20:09 com.apple.launchd[1] (com.apple.UserNotificationCenter[999]) Exited abnormally: Floating point exception
23/06/2008 10:25:31 Adobe Crash Reporter[1057] Process Id: 
23/06/2008 10:25:31 Adobe Crash Reporter[1057] 213
23/06/2008 10:25:31 [0x0-0x1c01c].com.adobe.Photoshop[213] 2008-06-23 10:25:31.523 Adobe Crash Reporter[1057:10b] Process Id: 
23/06/2008 10:25:31 [0x0-0x1c01c].com.adobe.Photoshop[213] 2008-06-23 10:25:31.525 Adobe Crash Reporter[1057:10b] 213
23/06/2008 10:25:41 com.apple.launchd[147] ([0x0-0x1c01c].com.adobe.Photoshop[213]) Exited abnormally: Bus error
23/06/2008 10:26:27 com.apple.launchd[1] (com.apple.UserNotificationCenter[1060]) Exited abnormally: Floating point exception
23/06/2008 10:33:28 com.apple.launchd[147] ([0x0-0xa00a].com.apple.systemuiserver[162]) Exited abnormally: Floating point exception
23/06/2008 10:46:33 com.apple.launchd[147] ([0x0-0x39039].com.apple.systemuiserver[1075]) Exited abnormally: Floating point exception
23/06/2008 10:54:49 com.apple.launchd[147] ([0x0-0x3a03a].com.apple.systemuiserver[1081]) Exited abnormally: Floating point exception
23/06/2008 11:41:17 com.apple.launchd[147] ([0x0-0x3c03c].com.apple.systemuiserver[1088]) Exited abnormally: Floating point exception
23/06/2008 12:17:59 com.apple.launchd[147] ([0x0-0x41041].com.apple.systemuiserver[1114]) Exited abnormally: Floating point exception
23/06/2008 12:57:43 com.apple.launchd[147] ([0x0-0x43043].com.apple.systemuiserver[1130]) Exited abnormally: Floating point exception
23/06/2008 13:00:53 com.apple.launchd[147] ([0x0-0x48048].com.apple.systemuiserver[1151]) Exited abnormally: Floating point exception
23/06/2008 13:01:30 com.apple.launchd[147] ([0x0-0x4a04a].com.apple.systemuiserver[1157]) Exited abnormally: Floating point exception
23/06/2008 17:49:15 com.apple.launchd[147] ([0x0-0x4b04b].com.apple.systemuiserver[1159]) Exited abnormally: Floating point exception
23/06/2008 17:53:10 com.apple.launchd[1] (com.apple.launchd.peruser.501[147]) Exited abnormally: Floating point exception
23/06/2008 17:53:13 com.apple.loginwindow[53] LSOpenApplication returned error -10810, path=/System/Library/CoreServices/SystemUIServer.app
23/06/2008 18:28:48 UserEventAgent[156] CalAlarmAgent :: WARNING: could not launch iCal Helper
23/06/2008 18:38:44 Dock[161] [QL ERROR] Can't get server port for <QLClient com.apple.quicklook>: (ipc/send) invalid destination port
23/06/2008 18:38:44 com.apple.loginwindow[53] LSOpenApplication returned error -10810, path=/System/Library/CoreServices/Dock.app


naquaada 06-23-2008 08:08 PM

Have you tested a second time? I'm not sure that these erros are because of the BIOS setting and the -legacy flag. Man, I'm working with Logic and it works! Only Firefox seems to crash the system sometimes.

Voyn1x 06-23-2008 08:47 PM

No these are the errors I get normally when running both cores - basically there was no change after making the amends to the com.apple.boot.plist and bios. I really think changing my mobo is the only solution for the time being (or sticking with cpus=1).

R0GUE 06-23-2008 11:19 PM

Even after two hours of uptime with the -legacy flag I got the dreaded -10810 error. Back to cpus=1 ...

naquaada 06-24-2008 12:09 AM

when do you get this error?

ClawHammer 06-24-2008 09:57 PM

Hi All

I was having the mouse bug and random crashes particularly with transmission but also Quicktime and Safari and also apparently I was getting random restarts as well. I tried a few different things but the kernel flags notsc=1 and nohpet=1 seem to be doing the trick. My system has been stable now for 2 days with only 1 safari crash. Before I was lucky to get 3 hours out of it. The cpus=1 did the trick as well, but if I can be stable and dual-core, I'll take it.

Specs:
Athlon 64 X2 6000+
3GB DDR2 667
Geforce 7900 GS
Apple USB Keyboard
Logitech MX400 mouse
OS X 10.5.3 (Leo4Allv3 updated)

StealthMode 06-24-2008 11:56 PM

What do those kernel flags do?

ClawHammer 06-25-2008 02:08 AM

It is my understanding that notsc flag keeps the kernel from checking the time stamp counters on the cores of the cpu. AMD time stamp counters have a tendency to drift apart from one another, so it can cause strange crashes. I did the nohpet flag because I wasn't sure if I had hpet.

ClawHammer 06-25-2008 06:36 AM

uptime just passed 62 hours, stable as a rock w/ dual core enabled. I think we may have a winner.

Puttabong 06-25-2008 08:34 AM

Amazing News!
I can't wait for Voyn1x and Rogue to confirm that it works - I hope.

Thanks ClawHammer. :-)

Voyn1x 06-25-2008 08:49 AM

I can't believe it, light at the end of the tunnel at last!! Must say I've never heard of these flags until now.

Clawhammer, If this works you're a star... :)

* Adds kernel flags and restarts hack *

R0GUE 06-25-2008 10:14 AM

Thanks ClawHammer! I'm going to try and confirm this when I get back home.

StealthMode 06-26-2008 12:22 AM

I think it fixed my mouse lag when transferring large files across hd's and such. I only used the notsc flag so far. Does this mean I might actually be able to start using Leo full time?!


Edit: maybe not... Might have to add the other kernel flag. Maybe I am having other issues.....
Well, I just realized that my music stutters too when I have the mouse stutter bug (while transferring large files).. Both kernel flags are added, am I having issues with the ATA kext?

pmcnano 06-26-2008 06:34 AM

I couldnt read all the stuff written, its too much, but im having the same problem. My hardware:

GA-K8NXP-SLI
A64 3800+ X2 2ghz @ 2.6ghz (260fsb)
4gb DDR 333mhz @ 420mhz

bla bla....

anyway, i opened all the aplications i had and nothing happened, i do think its something related to the net. Anyway ill wait to see your results with the kernel flag and then ill try ^^! ;)

R0GUE 06-26-2008 08:45 AM

I added four flags to my com.apple.boot.plist and left the machine running over night with several apps running plus a download. In this time frame there have been no 'unexpected quits', -10810 errors or stuttering/lag. I'll keep you all posted.

Code:

<key>Kernel Flags</key>
<string>apicpmtimer=1 notsc=1 nohpet=1 cpus=2</string>


naquaada 06-26-2008 11:19 AM

Do you always use the flag cpus=2 ? I don't use it. Is your system gettin slower by disabling HPET ?

R0GUE 06-26-2008 11:57 AM

I don't always use the cpus=2 flag, this is just a test. HPET is just another timing method, and no, it's not got any slower.

naquaada 06-26-2008 12:14 PM

I presume it's for HyPEThreading. But the option notsc ? I have no idea for this.

R0GUE 06-26-2008 12:20 PM

HPET stands for High Precision Event Timer. TSC is Time Stamp Counter.

naquaada 06-26-2008 12:24 PM

Ah!