summaryrefslogtreecommitdiff
path: root/drivers/accel
diff options
context:
space:
mode:
authorJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2024-06-11 15:04:28 +0300
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2024-06-14 10:14:41 +0300
commit86c1d13b8fb6cc63def27abd90a22fb1683eb67d (patch)
treefb16848fa35f7f333e45245faf6d79124b83b5ac /drivers/accel
parent3f440e0b4852288268df4f0757c53ad3031df80c (diff)
downloadlinux-86c1d13b8fb6cc63def27abd90a22fb1683eb67d.tar.xz
accel/ivpu: Disable MMU before checking for idle
Disable MMU communication before checking if NPU is idle. NPU may otherwise be woken up when adding/removing contexts. Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by: Wachowski, Karol <karol.wachowski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240611120433.1012423-12-jacek.lawrynowicz@linux.intel.com
Diffstat (limited to 'drivers/accel')
-rw-r--r--drivers/accel/ivpu/ivpu_pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_pm.c b/drivers/accel/ivpu/ivpu_pm.c
index 602fa4e65c22..e7aed16b1a36 100644
--- a/drivers/accel/ivpu/ivpu_pm.c
+++ b/drivers/accel/ivpu/ivpu_pm.c
@@ -245,6 +245,8 @@ int ivpu_pm_runtime_suspend_cb(struct device *dev)
ivpu_dbg(vdev, PM, "Runtime suspend..\n");
+ ivpu_mmu_disable(vdev);
+
is_idle = ivpu_hw_is_idle(vdev) || vdev->pm->dct_active_percent;
if (!is_idle)
ivpu_err(vdev, "NPU is not idle before autosuspend\n");