Hey everyone.
I have the same issue, it started with ML.
Relevent information:
iMac 27" 2011 model, i7-2600, 2x2GB Apple-provided RAM + 2x4GB third-party RAM installed, 2TB HDD, 6970M 2GB. Other than the RAM, it's exactly the same hardware-wise as when it left the factory. It's currently running 10.8.2.
I do have a rather large amount of third-party applications and kernel extensions installed, which is what I had focused my initial troubleshooting efforts on. However, this attempt has been fruitless.
I see sound stuttering and mouse at seemingly random times, typically at night. I also get kernel panics, but less frequently as the sound isses. I'd estimate my iMac has experienced no more than a half-dozen of these kernel panics, but countless instances with sound/mouse issues.
Latest kernel panic log: http://pastebin.com/JFNChUhX
The most interesting parts are posted below:
Panic(CPU 0): NMIPI for spinlock acquisition timeout, spinlock: 0xffffff801fe4c510, spinlock owner: 0xffffff8020239aa0, current_thread: 0xffffff8020239aa0, spinlock_owner_cpu: 0x0
Kernel Extensions in backtrace:
com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f81bc0000->0xffffff7f81be4fff
com.apple.driver.AppleACPIPlatform(1.6)[4F08531B-7E5A-3604-924A-8769CF53458B]@0xffffff7f83346000->0xffffff7f8339cfff
dependency: com.apple.iokit.IOACPIFamily(1.4)[A35915E8-C1B0-3C0F-81DF-5515BC9002FC]@0xffffff7f82253000
dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f81bc0000
Kernel Extensions in backtrace:
com.apple.kext.AMD6000Controller(8.0)[B8119AB9-CAB3-374E-917D-294D7365F60A]@0xffffff7f82d0c000->0xffffff7f82d51fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[A35915E8-C1B0-3C0F-81DF-5515BC9002FC]@0xffffff7f82253000
dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffffff7f81bc0000
dependency: com.apple.kext.AMDSupport(8.0.0)[7B2EC6D1-101A-3928-919E-337D6724752A]@0xffffff7f82b07000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0xffffff7f822e4000
I have seen the exact same error messages for all but one or two of the kernel panics I've experienced.
What I have tried: Verifying permissions, repairing permissions, verifying drive, repairing drive, checking the SMART status, running every Onyx utility, running memtester overnight (1 and a bit complete passes with no errors), running the Apple hardware test, running the extended Apple hardware text, rebuilding the Spotlight cache, deleting the Spotlight cache entirely, quitting various third-party apps, resetting PRAM, resetting the SMC, and a few more things.
None of the above things have helped.
Right now, I'm suspecting either a faulty graphics card or a 10.8 issue. Considering that everyone else here is having a similar issue (and that 10.7 didn't cause any issues for me), I'm going to assume this is caused by 10.8.
I'm pretty annoyed at Apple right now. First I get grey smudges inside my iMac's LCD, now I get kernel panics and issues with the mouse/audio. Not too happy...