While browsing on web, I stumbled on "Openpilot". There are few vehicles that are supported here but not mazda
https://github.com/commaai/openpilot#
CX-9 has required basic gizmos to make it lane centering and do level 2 automation and I wonder why Mazda did not do it? Perhaps, better processor...