drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9
authorYuBiao Wang <YuBiao.Wang@amd.com>
Thu, 4 Nov 2021 02:50:41 +0000 (10:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:11:20 +0000 (14:11 -0400)
commitc4fc13b5818f6e55ca86672dfddd9ea3a4fed470
tree1ec148ec7d703f8d8e848ab6920486cb1b827bf6
parente9c76719c1e99caf95e70de74170291b9457bbc1
drm/amd/amdgpu: Avoid writing GMC registers under sriov in gmc9

[Why]
For Vega10, disabling gart of gfxhub could mess up KIQ and PSP
under sriov mode, and lead to DMAR on host side.

[How]
Skip writing GMC registers under sriov.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c