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 ModeSide Air Bag Sensor Removal/Installation [Standard Deployment Control System]
WARNING:
Handling the side air bag sensor improperly can accidentally operate (deploy)
the air bag module, which may seriously injure you. Read the air bag system
service warnings and cautions before handling the side air bag sensor..
1. Switch the ignition to off.
2. Disconnec ...
Transaxle Oil Replacement [A26 M R]
1. Park the vehicle on level ground.
2. Remove the aerodynamic under cover No.2..
3. Remove the drain plug and gasket.
4. Drain the oil into a suitable container.
5. Install a new gasket and the drain plug.
Tightening torque
28—51 N·m {2.9—5.2 kgf·m, 21—37 ft·lbf}
...
Solenoid Valve 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.
Primary Control Valve Body
On-vehicle inspection
1. Perform the following procedures.
a. Rem ...