Like enki said, your stft is going way out but i would check for a bad vacuum line. In most cases, the egr valve is stuck. Is your mazda showing the p0401 engine code
2012 Mazda Mazda3 - Wheel & Tire Sizes, PCD, Offset and Rims specs
😧 don't panic — this video will guide you through diagnosing and fixing the exhaust gas recirculation (egr) flow issue with simple, effective.
The p0401 code for mazda vehicles indicates that there is an insufficient flow of exhaust gas recirculation (egr) detected by the vehicle's computer system
My 2013 speed 3 with just over 70,000 miles went into limp mode this week, just lost power and then wouldn't go above 3000rpm Pretty unremarkable, happened under mild driving. The good news with p0401 in the mazda 3 is that it rarely ever costs much money to fix, and it is usually pretty easy to get the problem since it is right on top of the engine. How do i fix the p0401 code
To properly fix the p0401 trouble code, you must first know what’s wrong, which is why our helpful diagnostics. Code p0401 typically requires two consecutive drive cycles with insufficient egr flow before the pcm permanently stores the code and. The most common repairs that can fix the p0401 code are either cleaning the egr valve or replacing it