drm/admgpu: Skip CG/PG on SOC21 under SRIOV VF
authorYifan Zha <Yifan.Zha@amd.com>
Fri, 19 Aug 2022 03:02:19 +0000 (11:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:54 +0000 (15:11 -0400)
commit828418259254863e0af5805bd712284e2bd88e3b
treeb50fd4834a034e8b2a0dfecc806237e64dceda60
parentbbb860d46fcbde5881c93ed549445a85f2434a64
drm/admgpu: Skip CG/PG on SOC21 under SRIOV VF

[Why]
There is no CG(Clock Gating)/PG(Power Gating) requirement on SRIOV VF.
For multi VF, VF should not enable any CG/PG features.
For one VF, PF will program CG/PG related registers.

[How]
Do not set any cg/pg flag bit at early init under sriov.

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