There is a fairly common fault with the 300tdi whereby the small end bearing on the con rod breaks up causing a loud ticking/knocking, lots of smoke and loss of power. It usually happens on number 4 cylinder but has been known to happen on others. It could possibly be your culprit.