In all, more than two dozen cities experienced racially diverse protests, many peaceful but some violent.