accel/ivpu: Fix S3 system suspend when not idle
authorJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Fri, 31 Mar 2023 11:36:03 +0000 (13:36 +0200)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Wed, 5 Apr 2023 07:07:26 +0000 (09:07 +0200)
commit0ec8671837a61d841462179686c5819d951d3b10
tree58ec965f692f767e000e24a9484b63d277c8a05a
parent774e7cb50359eff7e966f4e2e80c9486014d3a23
accel/ivpu: Fix S3 system suspend when not idle

Wait for VPU to be idle in ivpu_pm_suspend_cb() before powering off
the device, so jobs are not lost and TDRs are not triggered after
resume.

Fixes: 852be13f3bd3 ("accel/ivpu: Add PM support")
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230331113603.2802515-3-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_pm.c