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 ModeOuter Mirror Glass Inspection
Vehicles With Heated Outer Mirror
1. Disconnect the negative battery cable..
2. Remove the outer mirror glass..
3. Verify that the resistance is as indicated in the table.
If not as indicated in the table, or if the resistance is not within the
specification, replace the outer mi ...
Air Intake Actuator Removal/Installation [Full Auto Air Conditioner]
1. Set the air intake mode to FRESH.
2. Disconnect the negative battery cable..
3. Remove the following parts:
a. Front scuff plate (Passenger-side).
b. Front side trim (Passenger-side).
c. Dashboard under cover.
d. Glove compartment.
e. Lower panel (Passenger-side).
f. Shower duct ( ...
Fuel Filler Lid Opener Cable Removal/Installation
4SD
1. Disconnect the negative battery cable..
2. Remove the following parts:
a. Front seat (LH).
b. Front scuff plate (LH).
c. Rear scuff plate.
d. B-pillar lower trim.
e. Rear seat cushion.
f. Rear seat back.
g. Tire house trim.
h. Trunk end trim.
i. Trunk side trim (RH).
j. ...