If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeTaking Action
Take the appropriate action and verify that the warning light turns off.
KEY Warning Light
Take the appropriate action and verify that the warning light turns off.
...
Oil Control Valve (OCV) Removal/Installation [Mzr 2.0, Mzr 2.5]
1. Remove the battery cover..
2. Disconnect the negative battery cable..
3. Remove the plug hole plate..
4. Disconnect the wiring harness.
5. Remove the ignition coils..
6. Remove the ventilation hose.
7. Remove the oil level gauge.
8. Remove the cylinder head cover..
9. Remove in th ...
High Beam Control System
(HBC)
The High Beam Control System (HBC) determines the conditions in front of the
vehicle
using the Forward Sensing Camera (FSC) while driving in darkness to
automatically switch
the headlights between high and low beams.
Refer to Warning/Indicator Lights on .
While driving the vehicle at a s ...