]> 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)
commit3f76998a5d4c753eb7483cb4e819e8224670d329
tree1c1d577e45dd4f99147bc565d65d64ae7d126d39
parent916bf257b14dad9136540fac0a5b6acd0696a38c
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