1. Measure the gap and height between the front or rear door and the body.
2. If not as specified, loosen the front or rear door hinge installation bolts or the door lock striker installation screws, and reposition the door.
Clearance
a: 2.5-4.5 mm {0.10-0.18 in} b: -0.8-1.2 mm {-0.03-0.05 in} c: -0.3-1.7 mm {-0.01-0.07 in} d: -1.0-1.0 mm {-0.04-0.04 in} e: -0.5-1.5 mm {-0.02-0.06 in}

3. Tighten the bolts or screws.
Rear door removal/installation
Front door glass removal/installationMazda 6 Service Manual: Instrument cluster removal/installation
Caution
When replacing the instrument cluster, the configuration procedure must be
performed before removing the instrument cluster. If the configuration procedure
is not performed before removing the instrument cluster, it is possible that the
instrument cluster will not operate normally. ...
Mazda 6 Service Manual: Knock sensor inspection
Note
Perform the following test only when directed.
Resistance Inspection
1. Turn the ignition switch to LOCK.
2. Disconnect the knock sensor connector.
3. Measure the resistance between the knock sensor terminals A and B using an
ohmmeter.
If not as specified, replace the knock sens ...