Cx-5 vehicle experienced a dangerous loss of engine/transmission power shortly after accelerating from a full stop at a stoplight. several console warning lights illuminated including at, tpms, cel, & tcs. another accelerating vehicle directly behind cx-5 narrowly avoided rear ending the cx-5. cx-5 slowed down to low gears/rpms and came to a full stop. driver turned off the vehicle, and then re-started it. only warning light remained illuminated was the cel. vehicle engine/transmission would not shift past low speed gears. vehicle was towed to mazda dealership where cel codes indicated shift malfunction and shift time errors. mazda authorized repair procedure included replacing valve body and resetting adaptive driving system computer. *tr