I just started experiencing detonation in my 2.0L Subaru turbo. It's high mileage (over 200K), so it's probably trying to make diamonds with all the carbon buildup in the combustion chamber. That's probably what's causing my pre-ignition/detonation ping sounds. It wasn't bad enough to make the CEL illuminate, but it definitely was audible.
My mechanic co-worker who ran a repair shop for over 30 years said it was most likely pre-ignition from the carbon buildup in the combustion chamber and/or valve faces. Happens on tired engines at this mileage he said. I believe it, because after that began occurring, he said to try higher octane fuel, which just became available in town. Problem is, it's $8 per 9/10gal.! I put half a tank of 100 Octane in the car, and filled it up with 91 (manufacture recommended). Pinging is gone. Carbon is still there, and isn't going anywhere unless it's removed manually (read: nearly impossible without breaking things further), so a solution was found. Higher octane also helps with high mileage pinging issues.
Pinging in any vehicle will begin to destroy the piston's ring land areas, so you want to mitigate it as quick as possible. My mechanic buddy also has a 67 mustang GT fastback (390 FE engine with an aggressive cam/compression ratio), and he has it detuned quite a bit because he cannot run it on pump gas. It just won't shut off if he leaves it tuned the way it want's to run while trying to use pump gas. He also has a 62 corvette he's had since he was much younger (built it up over the years) and it's got a blower on it, high compression etc. He has issues running that car on pump gas as well. He currently has to mix aviation fuel (when he can get it) and drives it on cruise nights and special occasions, but it's a PIA to get fuel that will run correctly without dieseling and running like crap.
Recently he found a lucas oil product that raises the octane "3 points" (it claimed), and gave it a try. He said it smelled like race fuel when he mixed up some of it for his cars and it ran fine in the corvette. So that product worked. We started looking online at a bunch of products that specifically gave numerical claims on octane boost; actual point increases. We found a product made in the mid-west (Wisconsin or something) where it's illegal to transport large amounts of racing fuel (which this manufacture claims was for track purposes). So they (the manufacture of this product) said they had a problem that needed to be solved.
They were not a big company trying to sell some half-baked marketing driven product to turn a big profit, they were trying to solve this fuel transportation issue, not to mention the issue of questionable fuel quality sold at tracks which destroys cars tuned for higher octane by not delivering on the label's race fuel octane promises. Anyhow, he started a company to develop an additive they could carry in small quantities that was able to raise the octane of normal pump gas to levels needed at the track. They developed a product so concentrated that instead of emptying a 20-30 dollar bottle of octane booster from the local auto parts store into your tank, you could simply add a couple ounces of his additive to 91 octane and get 94-112 octane. I found that with my pinging issue, 2 oz in my 13 gal tank is what it took at each fill up. The math equated out to about $2 or so per fill-up. Much better than half a tank of 100 octane at $8 a gal to get similar or even worse octane mix compared to 2 oz of this product.
We were skeptical at first, so we read as many comments and reviews on the product as we could. This was starting to sound too good to be true. But nobody we found had anything bad to say (for the most part, you can't please everyone). But we bought some, and it's working for me! He just got his in the mail recently, and since he doesn't drive these particular cars as often, he hasn't had a chance to give this additive a try yet, but he's convinced it will work for him too.
It's called "Race Gas". Simple.