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 ModeOil 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 ...
Trunk Lid Opener Switch Inspection
1. Disconnect the negative battery cable..
2. Remove the trunk lid trim..
3. Remove the high-mount brake light..
4. Remove the trunk lid opener switch..
5. Verify the continuity of trunk lid opener switch terminals A and B.
6. Verify that the continuity is as indicated in the table.
...
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 ...