drm/amdgpu/sriov: Add clear vf fw support
authorEmily Deng <Emily.Deng@amd.com>
Thu, 11 Jun 2020 03:36:04 +0000 (11:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:19 +0000 (01:59 -0400)
commit3bda8acd974e362069e291a78c59a10624debc6e
treeca482af73ace91f30795dca1b83c6c5ee1f5a820
parentb6df946ef4b5ae29183b2fdb2d12c381c757b3fb
drm/amdgpu/sriov: Add clear vf fw support

Guest VM issue the PSP clear_vf_fw command at 2 points:
1.On VF driver loading, after VF message PSP to setup rings,
the next command is “clear_vf_fw”
2.On VF driver unload before VF message to
destroy rings

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Ack-by: Monk.liu <monk.liu@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_gfx_if.h