]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add amdgpu suspend-resume code path under SRIOV
authorBokun Zhang <Bokun.Zhang@amd.com>
Tue, 27 Sep 2022 16:30:04 +0000 (00:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2022 22:03:36 +0000 (18:03 -0400)
commitd71dfc1c2407990e0f07263f80b57c3a2592127c
tree7bf5f687a801980a777419990e14a8037874a840
parent3094637ad75fb36b0cde4b3210b5a649d31291f4
drm/amdgpu: Add amdgpu suspend-resume code path under SRIOV

- Under SRIOV, we need to send REQ_GPU_FINI to the hypervisor
  during the suspend time. Furthermore, we cannot request a
  mode 1 reset under SRIOV as VF. Therefore, we will skip it
  as it is called in suspend_noirq() function.

- In the resume code path, we need to send REQ_GPU_INIT to the
  hypervisor and also resume PSP IP block under SRIOV.

Signed-off-by: Bokun Zhang <Bokun.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c