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
This commit is contained in:
parent
3f440e0b48
commit
86c1d13b8f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user