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 ModeFront Seat Back Trim Removal/Installation
WARNING:
Handling a front seat (with built-in side air bag) improperly can accidentally
operate (deploy) the air bag, which may seriously injure you. Read the service
warnings before handling a front seat (with built-in side air bag)..
CAUTION:
After removing a front seat ...
i-ELOOP
On conventional vehicles, the kinetic energy that is generated when the
vehicle is
decelerated by applying the brakes or during engine braking ends up being
discarded as
heat. By utilizing this discarded kinetic energy to generate electricity and use
it to power the
vehicle's electrical dev ...
Back Up Light Switch Removal/Installation [A26 M R]
1. Disconnect the negative battery cable.
2. Disconnect the back-up light switch connector.
3. Remove the aerodynamic under cover No.2..
4. Remove the back-up light switch with the gasket.
5. Install a new gasket and the back-up light switch to the transaxle case.
Tightening torque ...