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 ModeTweeter Inspection
1. Disconnect the negative battery cable..
2. Remove the inner garnish..
3. Remove the tweeter..
4. Verify the resistance between tweeter terminals.
If not within the specification, replace the tweeter.
Resistance
Without Bose®: 3.4—4.6 ohms
With Bose®: 3 ...
Blind Spot Monitoring (Bsm) Control Module Removal/Installation
CAUTION:
If the BSM control modules are installed with the left and right modules
reversed, a DTC will be displayed and system will enter the fail-safe function.
Therefore, confirm that the left/right BSM control modules are installed correctly.
1. Disconnect the negative battery ...
Power Window Main Switch Inspection
1. Disconnect the negative battery cable.
2. Remove the inner garnish. (driver's side).
3. Remove the front door trim. (driver's side).
4. Remove the main switch panel. (driver's side).
5. Connect the power window main switch connector.
6. Connect the negative battery cable..
...