Mrs2-mediated mitochondrial magnesium uptake is essential for the regulation of MCU-mediated mitochondrial Ca2+ uptake and viability.