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 ModeSupplier Identification Procedure [Audio]
Identification Using the Label or Inscribed Lettering
1. Disconnect the negative battery cable..
2. Remove the center panel..
3. Remove the audio unit..
4. Verify the supplier by referring to the label attached to each unit.
Verify Using the Diagnostic Assist Function
Without display
...
Gps Antenna Feeder Inspection
With Audio Unit (Without Display)
1. Verify that the continuity is as indicated in the table.
If not as indicated in the table, replace the GPS antenna feeder.
With Audio Unit (With Display)
NOTE:
GPS antenna feeder is integrated with the antenna feeder No.4.
1. ...
Power Window Motor Removal/Installation
Front Power Window Motor
1. Fully lower the front door glass.
2. Disconnect the negative battery cable..
3. Remove the inner garnish..
4. Remove the front door trim..
5. Remove the front door speaker..
6. Remove the bolts.
7. Disconnect the front power window motor connector.
...