drm/amdgpu: cleanup some incorrect reg access for SRIOV
authorMonk Liu <Monk.Liu@amd.com>
Thu, 23 Jan 2020 09:25:38 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:01:25 +0000 (11:01 -0500)
commitf77a9c920aa2b103abe25b2a0294acbe8f2ba70f
tree763f867e8d8bdfdc0f5131e1e2c418e24d1e9a58
parent14008574a31bf9b62138fa2f56b86bb9cfd589b2
drm/amdgpu: cleanup some incorrect reg access for SRIOV

1)
we shouldn't load PSP kdb and sys/sos for VF, they are
supposed to be handled by hypervisor

2)
ih reroute doesn't work on VF thus we should avoid calling
it, besides VF should not use those PSP register sets for PF

3)
shouldn't load SMU ucode under SRIOV, otherwise PSP would report
error

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c