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 ModeIon Sensor Inspection [Skyactiv G 2.0]
DTC Inspection
NOTE:
Because the ion sensor is integrated in the ignition coil, replacing the
ion sensor includes replacement of the ignition coil/ion sensor.
1. Connect the M-MDS to the DLC-2.
2. Perform the DTC inspection using the M-MDS..
If any DTC related to the ...
Engine Coolant Protection Inspection [Mzr 2.0, Mzr 2.5]
1. Measure the engine coolant temperature and specific gravity using a thermometer
and a hydrometer.
CAUTION:
Use engine coolant at a concentration that meets the environmental conditions
in which the vehicle is driven, otherwise engine damage could occur.
The engine has alumi ...
Brake Hose (Rear) Removal/Installation [Mzr 2.5, Mzr 2.3 Disi Turbo]
1. Remove in the order indicated in the table.
2. Install in the reverse order of removal.
3. Add brake fluid, bleed the brakes, and inspect for leakage after the installation
has been completed..
1
Brake pipe
(See Clip and Brake Pipe Installation Note.)
...