[PATCH 3/9] drm/i915: Extend rpm in intel_guc_global_policies_update
Anshuman Gupta
anshuman.gupta at intel.com
Wed Aug 3 15:46:49 UTC 2022
From: Tilak Tangudu <tilak.tangudu at intel.com>
intel_guc_is_ready need to be guarded with rpm
helpers as it needs guc interaction.
Signed-off-by: Tilak Tangudu <tilak.tangudu at intel.com>
---
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c
index 74cbe8eaf531..640d66038aa5 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c
@@ -195,11 +195,14 @@ int intel_guc_global_policies_update(struct intel_guc *guc)
guc_policies_init(guc);
- if (!intel_guc_is_ready(guc))
+ wakeref = intel_runtime_pm_get(>->i915->runtime_pm);
+ if (!intel_guc_is_ready(guc)) {
+ intel_runtime_pm_put(>->i915->runtime_pm, wakeref);
return 0;
+ }
- with_intel_runtime_pm(>->i915->runtime_pm, wakeref)
- ret = guc_action_policies_update(guc, scheduler_policies);
+ ret = guc_action_policies_update(guc, scheduler_policies);
+ intel_runtime_pm_put(>->i915->runtime_pm, wakeref);
return ret;
}
--
2.26.2
More information about the Intel-gfx-trybot
mailing list