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 ModeOil Seal (Differential) Replacement [A26 M R]
1. On level ground, jack up the vehicle and support it evenly on safety stands.
2. Drain the oil from the transaxle..
3. Remove the front tires..
4. Remove the splash shield..
5. Remove the aerodynamic under cover No.2..
6. Separate the drive shaft and joint shaft from the transaxle..
7 ...
Oil Control Valve (OCV) Removal/Installation [Mzr 2.3 Disi Turbo]
1. Remove the battery cover..
2. Disconnect the negative battery cable..
3. Remove the charge air cooler..
4. Remove the ignition coils..
5. Disconnect the ventilation hose from the cylinder head cover..
6. Remove the cylinder head cover..
7. Remove in the order indicated in the table.
...
Sunroof Motor Inspection
1. Disconnect the negative battery cable..
2. Remove the rain sensor cover. (Vehicles with auto light/wiper system).
3. Disconnect the rain sensor connector. (Vehicles with auto light/wiper system)
4. Partially peel back the seaming welts.
5. Remove the following parts:
a. Sunroof seaming ...