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 ModeJoint Shaft Removal/Installation [Skyactiv G 2.0]
CAUTION:
Performing the following procedures without first removing the ABS wheel-speed
sensor may possibly cause an open circuit in the wiring harness if it is pulled
by mistake. Before performing the following procedures, remove the ABS wheel-speed
sensor connector (axle side) and ...
ALL AUTO (ECO) control
In the Subaru Solterra, the ALL AUTO (ECO) control intelligently
manages interior comfort by automatically adjusting seat heaters/radiant heaters*,
seat ventilators*, and the heated steering wheel* based on the selected climate
settings, as well as real-time cabin and outside temperature condi ...
Windshield Wiper Arm And Blade Adjustment
1. Operate the windshield wipers, and then turn off the windshield wiper motor
to set the wipers in the auto stop position.
2. Slide the serrated connecting part and adjust the windshield wiper arm and
blade so that its end is aligned with the hollowed mark in the ceramic coating.
NOTE: ...