1. Disconnect the negative battery cable.
2. Turn the seaming welt and weatherstrip over.
3. Remove the sunroof seaming welt. (vehicles with sunroof only)
4. Remove the A-pillar trims.
5. Remove the B-pillar upper trims.
6. Remove the C-pillar trims.
7. Remove the front and rear map light. (See FRONT MAP LIGHT REMOVAL/INSTALLATION.) (See REAR MAP LIGHT REMOVAL/INSTALLATION.)
8. Remove the sunvisors.
9. Remove the assist handle.
10. Disconnect the roof harness connector, remove the clip, and remove the connector.
11. Remove the fasteners.
12. Disconnect the front and rear drain hose.
13. Disconnect the rear washer hose (5HB).
14. Remove the hook holding the roof panel and remove the headliner.

15. Take the headliner off from the passenger-side door opening.
16. Install in the reverse order of removal.
Headliner
Shock absorbing pad removal/installationMazda 6 Service Manual: Smart City Brake Support (SCBS)
The Smart City Brake Support (SCBS) system alerts the driver of a possible collision
using an indication in the display and a warning sound when the Forward Sensing
Camera (FSC) detects a vehicle ahead and determines that a collision with a vehicle
ahead is unavoidable while the vehicle is bei ...
Mazda 6 Service Manual: Instrument cluster configuration
1. Connect the SST (WDS or equivalent) to the DLC-2.
2. Input vehicle information following the directions on the screen.
3. Select Module programming.
4. Select Programmable module installation.
5. Select the following items and perform procedures according to directions
on the screen.
...