]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: enable one vf mode on sienna cichlid vf
authorHorace Chen <horace.chen@amd.com>
Thu, 25 Feb 2021 07:22:51 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Mar 2021 20:10:35 +0000 (15:10 -0500)
commit194ede6fc42d5ae6d6c5b8ad37da33bcaf5a5d0b
tree28109210c42d729b123307bcf2ce3d085758a348
parent7db21281fb9530db690657a7563f55eb82c1d745
drm/amdgpu: enable one vf mode on sienna cichlid vf

sienna cichlid needs one vf mode which allows vf to set and get
clock status from guest vm. So now expose the required interface
and allow some smu request on VF mode. Also since this asic blocked
direct MMIO access, use KIQ to send SMU request under sriov vf.

OD use same command as getting pp table which is not allowed for
 sienna cichlid, so remove OD feature under sriov vf.

Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed-by: Monk Liu<monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c