I would suggest to get an app to read the info from the CX-5 ECU to see what is happening. I have a CX-5 Sport with 6MT and use the android "Torque" app along with a OBD2 bluetooth adapter and can monitor all kinds of readings from the ECU. The app was about $5 and the adapter was about $15 on amazon. o2 sensor, a/f ratio, maf, throttle and timing advance readings could all be useful to see what is happening and the app can read all of these in real time and graph and log them also. The app can also check and clear any codes from the ECU.
From the description, it sounds like something is weird is happening and it may not be the kind of thing that Mazda can easily pull from the ECU when you bring it in. Intake air temp, MAF reading and O2 reading may give some clues when the problem is happening. Smartphone apps today can graph and log any data in the ECU so it might be best if people who are having the problem try to see if they can narrow the problem down a little.
From the description, it sounds like something is weird is happening and it may not be the kind of thing that Mazda can easily pull from the ECU when you bring it in. Intake air temp, MAF reading and O2 reading may give some clues when the problem is happening. Smartphone apps today can graph and log any data in the ECU so it might be best if people who are having the problem try to see if they can narrow the problem down a little.