DETROIT — General Motors awarded CEO Mary Barra $29.1 million in total compensation last year, up 23 percent from 2020.