drm/amdgpu: Use RLCG to program GRBM_GFX_CNTL during full access time
authorYifan Zha <Yifan.Zha@amd.com>
Wed, 17 Aug 2022 09:25:15 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:50 +0000 (15:11 -0400)
commitbbb860d46fcbde5881c93ed549445a85f2434a64
treecb8c54c9a3b31b37c3bdebd1c633ddec9f4d0a6b
parent08c8442c4a032194d6956a266810bf109cdfc138
drm/amdgpu: Use RLCG to program GRBM_GFX_CNTL during full access time

[Why]
KIQ register init requires GRBM_GFX_CNTL to select KIQ.

[How]
As RLCG accessing registers will save the data of GRBM_GFX_CNTL and restore it.
Use RLCG indirect accessing register method to select grbm instead of mmio directly access.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Yifan Zha <Yifan.Zha@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c