EGR Valve
WARNING: This page does not describe the selected car, but rather 234 other vehicles, including the 2018 Mazda 6, 2017 Mazda CX-9, 2014 Mazda MX-5 Miata, 2014 Mazda 6, and 2014 Mazda 5. However, it is still accessible from the selected car via links, so may be relevant.
Warm engine to normal operating temperature and operate at idle. Disconnect and plug vacuum hose at EGR control valve. Connect vacuum pump to EGR control valve, and apply 1.5-3.5 in. Hg vacuum. Engine should run rough or stall. If engine does not operate as specified, clean or replace EGR control valve.