If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.
1. Remove the shift-lock override cover using a cloth-wrapped flat head screwdriver.
2. Insert a screwdriver and push it down.

3. Press and hold the lock-release button.
4. Move the selector lever.
Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Transaxle RangesMazda 6 Owners Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...
Mazda 6 Owners Manual: Sunroof motor inspection
Motor
1. Remove the sunroof motor.
2. Apply battery positive voltage to the sunroof motor terminals and inspect
the operation of the sunroof motor.
If not as specified, replace the sunroof motor.
Limit Switch
1. Remove the headliner. (See HEADLINER REMOVAL/INSTALLATION.)
2. Verify t ...