Maverick Viñales took his fourth pole of 2017 ahead of Dovizioso and Marquez, with the latter crashing at the end of Q2