]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44b6ff7b2543d0c0cea9a65cbeb7885ee024fd62
tree763f867e8d8bdfdc0f5131e1e2c418e24d1e9a58
parentc0f20a09e23a3825a82c0f3dec3aff31fd114a6d
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