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 ModeDown Switch Inspection [FS5 A EL]
1. Perform the following procedures.
a. Remove the battery cover..
b. Disconnect the negative battery cable.
c. Remove the console..
d. Disconnect the selector lever component connector.
2. Inspect the continuity between the selector lever component terminals C and
H.
If ...
Engine Tune Up [Skyactiv G 2.0]
Engine Tune-up Preparation
NOTE:
If the accelerator pedal is depressed continuously for a specified time,
the engine speed may decrease to the idle speed. This is due to the fuel cut
control operation, which prevents overheating, and it does not indicate a malfunction.
The engine s ...
Body And Accessories
ABBREVIATIONS
ACC
Accessories
AUX
Auxiliary jack
CAN
Controller Area Network
DLC
Data Link Connector
GND
Ground
LH
Left Hand
...