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 ModeVehicle Speed Sensor (VSS) Inspection [FS5 A EL]
On-Vehicle Inspection
1. Inspect the power supply circuit for the VSS.
a. Remove the insulator from the transaxle.
b. Disconnect the VSS connector.
c. Switch the ignition to ON (engine off).
d. Measure the voltage at VSS connector terminal A (harness-side).
If there is a ...
Clutch Release Cylinder Removal/Installation [C66 M R]
CAUTION:
Do not allow clutch fluid get on a painted surface. Clutch fluid contains
properties which can dissolve the paint. If clutch fluid gets on a painted surface,
wash it off with water immediately and wipe the area off completely.
1. Remove the aerodynamic under cover No.2.. ...
Initial Learning [Fw6 A EL]
Introduction
If the control valve body and oil pressure switch are replaced, always perform
the initial learning. If the initial learning is not completed, engine rev-up
may occur or shift shock may increase. DTC P06B8:00 is displayed while the initial
learning has not been implement ...