drm/amdgpu: condense mqd programming sequence
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 24 Feb 2017 20:28:43 +0000 (15:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 20:48:59 +0000 (16:48 -0400)
commit894700f3b7e01e87954a94be6508205c7f024386
tree1c1d577e45dd4f99147bc565d65d64ae7d126d39
parent0a281f5a2cba94a574167edadca88a3130a88612
drm/amdgpu: condense mqd programming sequence

The MQD structure matches the reg layout. Take advantage of this to
simplify HQD programming.

Note that the ACTIVE field still needs to be programmed last.

Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c