Yifan Zha fa9b4155c3 drm/amdgpu: Revert programming GRBM_GFX_* in RLCG interface to support GFX9
[Why]
Regression of commit 72fef4980ddf ("drm/amdgpu: Remove writing GRBM_GFX_CNTL in RLCG interface under SRIOV") on GFX9.
According to GFX9 VF using different method to access GC registers including MMIO(direct) and RLCG(indirect),
removing GRBM_GFX_* writing would make PIPE/ME/VM/QUEUE selection chaos leading to some OCL benchmark failure.

For example,
using RLCG interface to program GRBM_GFX_CNTL/INDEX for selecting MEC(actually the value is only in scratch2/3),
then using MMIO directly program a MEC register in VF driver.
The register programming are invalid due to GC switched to incorrect ME.

[How]
With checking RLCG accessing flag, keep writing GRBM_GFX_* as a legacy way.
But it is still skipped on GFX10+ to avoid violation occurrence.

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>
2023-02-14 16:04:48 -05:00
..
2023-01-24 17:36:29 +01:00
2022-12-13 19:29:45 -08:00
2022-12-14 12:20:00 -08:00
2023-01-24 17:36:29 +01:00
2023-01-31 12:23:23 +01:00
2022-11-24 11:05:43 +10:00
2023-01-04 14:59:25 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2022-12-19 09:50:06 +01:00
2022-12-14 12:20:00 -08:00
2023-01-30 14:24:52 +10:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-12 17:02:20 -06:00
2022-11-16 07:17:32 +10:00
2023-01-04 14:59:25 +01:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2023-01-16 15:33:28 +10:00
2023-01-16 15:33:28 +10:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:54:54 -08:00
2023-01-13 09:44:53 +01:00
2023-01-24 17:36:29 +01:00