Is the EGR system hooked up?
If it didn't have an EGR system, was the computer used from a non-EGR vehicle?
Spark timing curves are different for EGR and non-EGR engines.
"pinging", which sounds like the diesel noise, is when there are two ignitions in a cylinder at "almost" the same time, the noise is the two explosive wave fronts meeting.
When an engine is under load the cylinders heat up, 87 octane fuel can self ignite if cylinder temp gets to hot.
The pinging also makes the cylinder even hotter, so once it starts it will continue until load is removed and cylinder cools a bit.
Pinging can also be caused by a lean fuel/air mix, rich(normal) mix cools cylinder temp as it enters cylinder, lean mix doesn't and lean mix burns hotter.
The perfect fuel/air mix will melt pistons and valves, so engines are run as lean as possible but not to the point of over heating a cylinder.
If MAF, O2, computer, fuel pressure or injectors are malfunctioning fuel mix under load might be too lean.
EGR systems allow exhaust gases into intake and then cylinders, this cools cylinder temps, as funny as that sounds, when engine is under load.
The Cam position sensor(CPS)(if you have one) takes over spark timing at higher RPMs, advancing it for best performance, without a Knock(ping) sensor it won't retard the timing to prevent pinging.
If spark timing is too advanced the 87 octane fuel has a chance to self ignite before spark plug fires.
As far as I know there is no "user" adjustment of spark advance.