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 No. 2 Removal/Installation [Two Step 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 Fluid Temperature (Tft) 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. ...
Relay Block Removal/Installation [With Advanced Keyless Entry And Push Button
Start System]
1. Disconnect the negative battery cable..
2. Remove the following parts:
a. Driver-side front scuff plate.
b. Driver-side front side trim.
c. Hood release lever.
d. Upper panel.
e. Shift knob (MTX)(See MANUAL TRANSAXLE SHIFT MECHANISM REMOVAL/INSTALLATION
[G66M-R].)(See MANUAL TRANSAX ...