diff options
author | 2024-05-13 14:04:30 +0200 | |
---|---|---|
committer | 2024-05-15 07:42:29 +0200 | |
commit | cb323de31a0cbff3de5fc8608c2e2d6e2517f027 (patch) | |
tree | 3bebb71ef3b079a68fc644dae3aa7d3994da3c1c | |
parent | accel/ivpu: Configure fw logging using debugfs (diff) | |
download | wireguard-linux-cb323de31a0cbff3de5fc8608c2e2d6e2517f027.tar.xz wireguard-linux-cb323de31a0cbff3de5fc8608c2e2d6e2517f027.zip |
accel/ivpu: Increase reset counter when warm boot fails
Failed warm boot causes a cold boot that looses FW state and is
equivalent to a recovery or reset, so reset_counter should be
incremented in order for this failure to be detected by tests.
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240513120431.3187212-12-jacek.lawrynowicz@linux.intel.com
-rw-r--r-- | drivers/accel/ivpu/ivpu_pm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_pm.c b/drivers/accel/ivpu/ivpu_pm.c index 7b2aa205fdec..02b4eac13f8b 100644 --- a/drivers/accel/ivpu/ivpu_pm.c +++ b/drivers/accel/ivpu/ivpu_pm.c @@ -264,6 +264,7 @@ int ivpu_pm_runtime_suspend_cb(struct device *dev) if (!hw_is_idle) { ivpu_err(vdev, "NPU failed to enter idle, force suspended.\n"); + atomic_inc(&vdev->pm->reset_counter); ivpu_fw_log_dump(vdev); ivpu_pm_prepare_cold_boot(vdev); } else { |