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 ModePurge Solenoid Valve Inspection [Mzr 2.0, Mzr 2.5]
Airflow Inspection
1. Remove the battery cover..
2. Disconnect the negative battery cable..
3. Remove the purge solenoid valve..
4. Inspect airflow between the ports under the following conditions.
Measured condition
Continuity between A—B
...
Brake Hose (Rear) Removal/Installation [Mzr 2.0, Skyactiv G 2.0]
CAUTION:
If the brake hose is installed to the caliper on the vehicle, the tool cannot
be installed correctly resulting in brake fluid leakage due to improper installation.
Therefore, remove the caliper and brake hose as a single unit when removing
the brake hose, and tighten the br ...
Heater Core Inspection
1. Inspect the heater core for damage, cracks, and water leakage.
If there is any malfunction, replace the heater core.
2. Visually inspect the fins for bending.
If there is any bending, use the end of a flathead screwdriver to straighten
the fins.
3. Visually inspect ...