drm/amdgpu: Skip specific mmhub and sdma registers accessing under sriov
authorYifan Zha <Yifan.Zha@amd.com>
Wed, 11 Jan 2023 06:59:39 +0000 (14:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jan 2023 19:59:32 +0000 (14:59 -0500)
commit60b73429745e94957cbebe407b072d1c972ea537
tree86571ff180d4bd0581a0d5874ab9f303dc83cae0
parent51097df1b2d041b74653b37475becb80adcd37ea
drm/amdgpu: Skip specific mmhub and sdma registers accessing under sriov

[Why]
SDMA0_CNTL and MMHUB system aperture related registers are blocked by L1 Policy.
Therefore, they cannot be accessed by VF and loged in violation.

[How]
For MMHUB registers, they will be programmed by PF. So VF will skip to program them in mmhubv3_0.
For SDMA0_CNTL which is a PF_only register, VF don't need to program it in sdma_v6_0.

Signed-off-by: Yifan Zha <Yifan.Zha@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c