]> 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)
commitd16423e9e6fd52a83d9546ad77e2677c9049d1ae
tree763f867e8d8bdfdc0f5131e1e2c418e24d1e9a58
parent718b2be740b978e235ec1da186e9653409fce060
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