|
@@ -1501,6 +1501,10 @@ static int intel_runtime_suspend(struct device *device)
|
|
|
|
|
|
enable_rpm_wakeref_asserts(dev_priv);
|
|
|
WARN_ON_ONCE(atomic_read(&dev_priv->pm.wakeref_count));
|
|
|
+
|
|
|
+ if (intel_uncore_unclaimed_mmio(dev_priv))
|
|
|
+ DRM_ERROR("Unclaimed access detected prior to suspending\n");
|
|
|
+
|
|
|
dev_priv->pm.suspended = true;
|
|
|
|
|
|
/*
|
|
@@ -1549,6 +1553,8 @@ static int intel_runtime_resume(struct device *device)
|
|
|
|
|
|
intel_opregion_notify_adapter(dev, PCI_D0);
|
|
|
dev_priv->pm.suspended = false;
|
|
|
+ if (intel_uncore_unclaimed_mmio(dev_priv))
|
|
|
+ DRM_DEBUG_DRIVER("Unclaimed access during suspend, bios?\n");
|
|
|
|
|
|
intel_guc_resume(dev);
|
|
|
|