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 ModePower Brake Unit Inspection
NOTE:
The following inspection methods are simple inspection methods to judge the
function of the power brake unit.
If there is any malfunction in the power brake unit, replace the power brake
unit as a single unit.
Without Using SST
Operation inspection
1. With the eng ...
Input/Turbine Speed Sensor Inspection [FS5 A EL]
CAUTION:
Water or foreign objects entering the connector can cause a poor connection
or corrosion. Be sure not to drop water or foreign objects on the connector
when disconnecting it.
On-Vehicle Inspection
1. Perform the following procedures.
a. Remove the battery cover..
b. ...
Variable Intake Air Shutter Valve Actuator Inspection [Mzr 2.0, Mzr 2.5]
Operation Inspection
1. Remove the air hose..
2. Disconnect the vacuum hose from the variable intake air shutter valve actuator.
3. Connect a vacuum pump to the variable intake air shutter valve actuator.
NOTE:
Covered with a hood, the rod of the variable intake air shutter valv ...