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 ModeRear Wiper Arm And Blade Removal/Installation
1. Remove in the order indicated in the table.
1
Cap
2
Nut
3
Rear wiper arm
(See Rear Wiper Arm Installation Note.)
4
Rear wiper blade
5
Rubber brush
...
Neutral Switch Removal/Installation [G35 M R]
1. Remove the battery cover..
2. Disconnect the negative battery cable.
3. Remove the battery component. (ex: battery, battery tray and PCM component)(See
BATTERY REMOVAL/INSTALLATION [MZR 2.0, MZR 2.5].)
4. Remove the aerodynamic under cover No.2..
5. Drain the oil from the transaxle..
...
Electric Variable Valve Timing Motor/Driver Removal/Installation [Skyactiv G
2.0]
WARNING:
A hot engine can cause severe burns. Turn off the engine and wait until it
is cool before servicing.
CAUTION:
Applying excessive force (force of 100 N {10.2 kgf, 22.5 lbf} or more) to
the electric variable valve timing motor/driver may cause a malfunction. When
...