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 ModePrecaution
Intermittent Concern Troubleshooting
Vibration method
If a malfunction occurs or becomes worse while driving on a rough road or
when the engine is vibrating, perform the following steps.
NOTE:
There are several reasons why vehicle or engine vibration could cause an
electr ...
ABS HU/CM Inspection
1. Disconnect the ABS HU/CM connector..
2. Connect the negative battery cable..
3. Attach the tester lead to the ABS HU/CM wiring harness-side connector and
inspect the voltage, continuity, or resistance according to the standard (reference
value) in the table below.
Standard (reference)
...
Trunk Lid Removal/Installation
WARNING:
Removing the trunk lid stay damper without supporting the trunk lid can be
dangerous. The trunk lid may fall and injure you. Be sure to open the trunk
lid completely and support it securely before removing the trunk lid stay damper.
1. Disconnect the negative battery cab ...