]> git.baikalelectronics.ru Git - kernel.git/commit
amd/amdgpu/sriov enable onevf mode for ARCTURUS VF
authorJack Zhang <Jack.Zhang1@amd.com>
Tue, 10 Dec 2019 02:51:01 +0000 (10:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:58:10 +0000 (11:58 -0500)
commit92a35865bbb2ee1c30090ce655ed9eab4bc0eb22
tree72fe3d8a3fd5493b29b825d0c8698ecec43e27e8
parente77050f297dd91c5d784402fcd39d0d74ee6180b
amd/amdgpu/sriov enable onevf mode for ARCTURUS VF

Before, initialization of smu ip block would be skipped
for sriov ASICs. But if there's only one VF being used,
guest driver should be able to dump some HW info such as
clks, temperature,etc.

To solve this, now after onevf mode is enabled, host
driver will notify guest. If it's onevf mode, guest will
do smu hw_init and skip some steps in normal smu hw_init
flow because host driver has already done it for smu.

With this fix, guest app can talk with smu and dump hw
information from smu.

v2: refine the logic for pm_enabled.Skip hw_init by not
changing pm_enabled.
v3: refine is_support_sw_smu and fix some indentation
issue.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c