Xiaomi posted an operating loss of CNY300 million (USD41.8 million) for its smart EV and AI segment for the second quarter, even as revenue from the unit more than tripled year on year to CNY21.3 billion (USD3 billion), with EVs contributing 97% of the total.