You are in limp mode. The engine won't rev beyond a certain point and performance is severely limited. It would be best to use a code reader to understand what the car thinks is wrong. However, to get rid of it, I hear you can pull the battery ground for 60 seconds and plug it back in.
09 Space Gray E90 M3 DCT: BPM (Stage 1, DCT and Servotronic) tune, Gintani Sport Exhaust, Dinan Intake