Also see post #5 & 8 in this thread:
s80 (2007) d5 Check Engine Help! Admittedly it's a P3 but similar engine.
As Simmy says ensure the all important oil level is correct before going forward. Then carry out another diagnostics, delete all DTCs and see which, if any, come back. Work from there.
I read of one chap, with a 185bhp unit, who had an intermittent "drop in power" issue (I can't find the thread now) that resulted in the car going into limp mode. I think he resolved it by cleaning/replacing the
two MAP sensors on the intercooler.