[PATCH 10/10] hmm

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 10 19:39:13 UTC 2018


---
 drivers/gpu/drm/i915/intel_runtime_pm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index ce7f42c443a5..c8980208ff5c 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -4291,6 +4291,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *i915)
 	 * intel_power_domains_fini().
 	 */
 	pm_runtime_put_autosuspend(kdev);
+	pm_runtime_allow(kdev);
 }
 
 void intel_runtime_pm_disable(struct drm_i915_private *i915)
@@ -4298,6 +4299,7 @@ void intel_runtime_pm_disable(struct drm_i915_private *i915)
 	struct pci_dev *pdev = i915->drm.pdev;
 	struct device *kdev = &pdev->dev;
 
+	pm_runtime_forbid(kdev);
 	pm_runtime_dont_use_autosuspend(kdev);
 
 	/*
-- 
2.18.0



More information about the Intel-gfx-trybot mailing list