]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81f90e73f0ab9d70ec319b9224eb7b936331627a
tree1c1d577e45dd4f99147bc565d65d64ae7d126d39
parent32f7dda33bbf7ac08747916d6fc3d4c7cc704549
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