drm/i915/gt: Prefer local path to runtime powermanagement
Subsystems (2)
PATCH 1/1 drm/i915/gt: Prefer local path to runtime powermanagement
Avoid going to the base i915 device when we already have a path from gt to the runtime powermanagement interface. The benefit is that it looks a bit more self-consistent to always be acquiring the gt->uncore->rpm for use with the gt->uncore.
--- drivers/gpu/drm/i915/gt/intel_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 2 +- drivers/gpu/drm/i915/gt/intel_gt.c | 7 +++---- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_hangcheck.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_reset.c | 6 +++--- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 8 ++++---- drivers/gpu/drm/i915/gt/selftest_workarounds.c | 4 ++-- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 3 +-- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 14 files changed, 28 insertions(+), 30 deletions(-)
drivers/gpu/drm/i915/gt/intel_context.c +1 -1
@@ -62,7 +62,7 @@ int __intel_context_do_pin(struct intel_context *ce) } err =0 ; -with_intel_runtime_pm (&ce->engine->i915->runtime_pm, wakeref) +with_intel_runtime_pm (ce->engine->gt->uncore->rpm, wakeref) err = ce->ops->pin(ce);if (err) goto err;
drivers/gpu/drm/i915/gt/intel_engine_cs.c +2 -2
@@ -1458,10 +1458,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,spin_unlock_irqrestore (&engine->active.lock, flags);drm_printf (m,"\tMMIO base: 0x%08x\n" , engine->mmio_base); - wakeref =intel_runtime_pm_get_if_in_use (&engine->i915->runtime_pm); + wakeref =intel_runtime_pm_get_if_in_use (engine->gt->uncore->rpm);if (wakeref) {intel_engine_print_registers (engine, m); -intel_runtime_pm_put (&engine->i915->runtime_pm, wakeref); +intel_runtime_pm_put (engine->gt->uncore->rpm, wakeref); }else {drm_printf (m,"\tDevice is asleep; skipping register dump\n" ); }
drivers/gpu/drm/i915/gt/intel_engine_pm.c +1 -1
@@ -185,7 +185,7 @@ static const struct intel_wakeref_ops wf_ops = {void intel_engine_init__pm (struct intel_engine_cs *engine) { -struct intel_runtime_pm *rpm = &engine->i915->runtime_pm; +struct intel_runtime_pm *rpm = engine->gt->uncore->rpm;intel_wakeref_init (&engine->wakeref, rpm, &wf_ops); }
drivers/gpu/drm/i915/gt/intel_gt.c +3 -4
@@ -273,7 +273,7 @@ void intel_gt_check_and_clear_faults(struct intel_gt *gt)void intel_gt_flush_ggtt_writes (struct intel_gt *gt) { -struct drm_i915_private *i915 = gt->i915; +struct intel_uncore *uncore = gt->uncore;intel_wakeref_t wakeref;/*
@@ -297,13 +297,12 @@ void intel_gt_flush_ggtt_writes(struct intel_gt *gt)wmb (); -if (INTEL_INFO (i915)->has_coherent_ggtt) +if (INTEL_INFO (gt->i915)->has_coherent_ggtt)return ;intel_gt_chipset_flush (gt); - with_intel_runtime_pm(&i915->runtime_pm, wakeref) { -struct intel_uncore *uncore = gt->uncore; + with_intel_runtime_pm(uncore->rpm, wakeref) {unsigned long flags;spin_lock_irqsave (&uncore->lock, flags);
drivers/gpu/drm/i915/gt/intel_gt_pm.c +2 -2
@@ -94,7 +94,7 @@ static const struct intel_wakeref_ops wf_ops = {void intel_gt_pm_init_early (struct intel_gt *gt) { -intel_wakeref_init (>->wakeref, >->i915->runtime_pm, &wf_ops); +intel_wakeref_init (>->wakeref, gt->uncore->rpm, &wf_ops);BLOCKING_INIT_NOTIFIER_HEAD (>->pm_notifications); }
@@ -222,7 +222,7 @@ void intel_gt_suspend(struct intel_gt *gt)/* We expect to be idle already; but also want to be independent */ wait_for_idle (gt); - with_intel_runtime_pm(>->i915->runtime_pm, wakeref) + with_intel_runtime_pm(gt->uncore->rpm, wakeref)intel_rc6_disable (>->rc6); }
drivers/gpu/drm/i915/gt/intel_hangcheck.c +2 -2
@@ -271,7 +271,7 @@ static void hangcheck_elapsed(struct work_struct *work)if (intel_gt_is_wedged (gt))return ; - wakeref =intel_runtime_pm_get_if_in_use (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get_if_in_use (gt->uncore->rpm);if (!wakeref)return ;
@@ -322,7 +322,7 @@ static void hangcheck_elapsed(struct work_struct *work)if (hung)hangcheck_declare_hang (gt, hung, stuck); -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);/* Reset timer in case GPU hangs without another request being added */ intel_gt_queue_hangcheck (gt);
drivers/gpu/drm/i915/gt/intel_reset.c +3 -3
@@ -811,7 +811,7 @@ void intel_gt_set_wedged(struct intel_gt *gt)intel_wakeref_t wakeref;mutex_lock (>->reset.mutex); - with_intel_runtime_pm(>->i915->runtime_pm, wakeref) + with_intel_runtime_pm(gt->uncore->rpm, wakeref)__intel_gt_set_wedged (gt);mutex_unlock (>->reset.mutex); }
@@ -1186,7 +1186,7 @@ void intel_gt_handle_error(struct intel_gt *gt,* isn't the case at least when we get here by doing a * simulated reset via debugfs, so get an RPM reference. */ - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); engine_mask &=INTEL_INFO (gt->i915)->engine_mask;
@@ -1246,7 +1246,7 @@ void intel_gt_handle_error(struct intel_gt *gt,wake_up_all (>->reset.queue); out: -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref); }int intel_gt_reset_trylock (struct intel_gt *gt,int *srcu)
drivers/gpu/drm/i915/gt/selftest_hangcheck.c +2 -2
@@ -1695,14 +1695,14 @@ int intel_hangcheck_live_selftests(struct drm_i915_private *i915)if (intel_gt_is_wedged (gt))return -EIO ;/* we're long past hope of a successful reset */ - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); saved_hangcheck =fetch_and_zero (&i915_modparams.enable_hangcheck);drain_delayed_work (>->hangcheck.work);/* flush param */ err =intel_gt_live_subtests (tests, gt); i915_modparams.enable_hangcheck = saved_hangcheck; -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);return err; }
drivers/gpu/drm/i915/gt/selftest_reset.c +4 -4
@@ -17,7 +17,7 @@ static int igt_global_reset(void *arg)/* Check that we can issue a global GPU reset */ igt_global_reset_lock (gt); - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); reset_count =i915_reset_count (>->i915->gpu_error);
@@ -28,7 +28,7 @@ static int igt_global_reset(void *arg) err = -EINVAL ; } -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);igt_global_reset_unlock (gt);if (intel_gt_is_wedged (gt))
@@ -45,14 +45,14 @@ static int igt_wedged_reset(void *arg)/* Check that we can recover a wedged device with a GPU reset */ igt_global_reset_lock (gt); - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm);intel_gt_set_wedged (gt);GEM_BUG_ON (!intel_gt_is_wedged (gt));intel_gt_reset (gt,ALL_ENGINES ,NULL ); -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);igt_global_reset_unlock (gt);return intel_gt_is_wedged (gt) ? -EIO :0 ;
drivers/gpu/drm/i915/gt/selftest_workarounds.c +2 -2
@@ -256,7 +256,7 @@ switch_to_scratch_context(struct intel_engine_cs *engine,GEM_BUG_ON (IS_ERR (ce)); rq =ERR_PTR (-ENODEV ); -with_intel_runtime_pm (&engine->i915->runtime_pm, wakeref) +with_intel_runtime_pm (engine->gt->uncore->rpm, wakeref) rq = igt_spinner_create_request(spin, ce, MI_NOOP);intel_context_put (ce);
@@ -313,7 +313,7 @@ static int check_whitelist_across_reset(struct intel_engine_cs *engine,if (err) goto out_spin; -with_intel_runtime_pm (&i915->runtime_pm, wakeref) +with_intel_runtime_pm (engine->gt->uncore->rpm, wakeref) err = reset(engine);igt_spinner_end (&spin);
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1 -2
@@ -607,7 +607,6 @@ int intel_guc_log_relay_open(struct intel_guc_log *log)void intel_guc_log_relay_flush (struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;intel_wakeref_t wakeref;/*
@@ -616,7 +615,7 @@ void intel_guc_log_relay_flush(struct intel_guc_log *log)*/ flush_work (&log->relay.flush_work); - with_intel_runtime_pm(&i915->runtime_pm, wakeref) + with_intel_runtime_pm(guc_to_gt(guc)->uncore->rpm, wakeref)guc_action_flush_log (guc);/* GuC would have updated log buffer by now, so capture it */
drivers/gpu/drm/i915/gt/uc/intel_huc.c +1 -1
@@ -185,7 +185,7 @@ int intel_huc_check_status(struct intel_huc *huc)if (!intel_huc_is_supported (huc))return -ENODEV ; -with_intel_runtime_pm (>->i915->runtime_pm, wakeref) +with_intel_runtime_pm (gt->uncore->rpm, wakeref) status = intel_uncore_read(gt->uncore, huc->status.reg);return (status & huc->status.mask) == huc->status.value;
drivers/gpu/drm/i915/gt/uc/intel_uc.c +1 -1
@@ -587,7 +587,7 @@ void intel_uc_suspend(struct intel_uc *uc)if (!intel_guc_is_running (guc))return ; - with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) + with_intel_runtime_pm(uc_to_gt(uc)->uncore->rpm, wakeref)intel_uc_runtime_suspend (uc); }
drivers/gpu/drm/i915/i915_irq.c +3 -3
@@ -412,7 +412,7 @@ void gen9_reset_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock);gen6_gt_pm_reset_iir (gt, gt->pm_guc_events);
@@ -423,7 +423,7 @@ void gen9_enable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock);if (!guc->interrupts.enabled) {
@@ -440,7 +440,7 @@ void gen9_disable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock); guc->interrupts.enabled = false;
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 325 lines · Chris Wilson
Avoid going to the base i915 device when we already have a path from gt to the runtime powermanagement interface. The benefit is that it looks a bit more self-consistent to always be acquiring the
gt->uncore->rpmfor use with thegt->uncore.Signed-off-by Chris Wilson <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Cc Tvrtko Ursulin <[email protected]>--- drivers/gpu/drm/i915/gt/intel_context.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 2 +- drivers/gpu/drm/i915/gt/intel_gt.c | 7 +++---- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_hangcheck.c | 4 ++-- drivers/gpu/drm/i915/gt/intel_reset.c | 6 +++--- drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_reset.c | 8 ++++---- drivers/gpu/drm/i915/gt/selftest_workarounds.c | 4 ++-- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 3 +-- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 2 +- drivers/gpu/drm/i915/i915_irq.c | 6 +++--- 14 files changed, 28 insertions(+), 30 deletions(-)drivers/gpu/drm/i915/gt/intel_context.c +1
-1@@ -62,7 +62,7 @@ int __intel_context_do_pin(struct intel_context *ce) } err =0 ; -with_intel_runtime_pm (&ce->engine->i915->runtime_pm, wakeref) +with_intel_runtime_pm (ce->engine->gt->uncore->rpm, wakeref) err = ce->ops->pin(ce);if (err) goto err;drivers/gpu/drm/i915/gt/intel_engine_cs.c +2
-2@@ -1458,10 +1458,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,spin_unlock_irqrestore (&engine->active.lock, flags);drm_printf (m,"\tMMIO base: 0x%08x\n" , engine->mmio_base); - wakeref =intel_runtime_pm_get_if_in_use (&engine->i915->runtime_pm); + wakeref =intel_runtime_pm_get_if_in_use (engine->gt->uncore->rpm);if (wakeref) {intel_engine_print_registers (engine, m); -intel_runtime_pm_put (&engine->i915->runtime_pm, wakeref); +intel_runtime_pm_put (engine->gt->uncore->rpm, wakeref); }else {drm_printf (m,"\tDevice is asleep; skipping register dump\n" ); }drivers/gpu/drm/i915/gt/intel_engine_pm.c +1
-1@@ -185,7 +185,7 @@ static const struct intel_wakeref_ops wf_ops = {void intel_engine_init__pm (struct intel_engine_cs *engine) { -struct intel_runtime_pm *rpm = &engine->i915->runtime_pm; +struct intel_runtime_pm *rpm = engine->gt->uncore->rpm;intel_wakeref_init (&engine->wakeref, rpm, &wf_ops); }drivers/gpu/drm/i915/gt/intel_gt.c +3
-4@@ -273,7 +273,7 @@ void intel_gt_check_and_clear_faults(struct intel_gt *gt)void intel_gt_flush_ggtt_writes (struct intel_gt *gt) { -struct drm_i915_private *i915 = gt->i915; +struct intel_uncore *uncore = gt->uncore;intel_wakeref_t wakeref;/* @@ -297,13 +297,12 @@ void intel_gt_flush_ggtt_writes(struct intel_gt *gt)wmb (); -if (INTEL_INFO (i915)->has_coherent_ggtt) +if (INTEL_INFO (gt->i915)->has_coherent_ggtt)return ;intel_gt_chipset_flush (gt); - with_intel_runtime_pm(&i915->runtime_pm, wakeref) { -struct intel_uncore *uncore = gt->uncore; + with_intel_runtime_pm(uncore->rpm, wakeref) {unsigned long flags;spin_lock_irqsave (&uncore->lock, flags);drivers/gpu/drm/i915/gt/intel_gt_pm.c +2
-2@@ -94,7 +94,7 @@ static const struct intel_wakeref_ops wf_ops = {void intel_gt_pm_init_early (struct intel_gt *gt) { -intel_wakeref_init (>->wakeref, >->i915->runtime_pm, &wf_ops); +intel_wakeref_init (>->wakeref, gt->uncore->rpm, &wf_ops);BLOCKING_INIT_NOTIFIER_HEAD (>->pm_notifications); }@@ -222,7 +222,7 @@ void intel_gt_suspend(struct intel_gt *gt)/* We expect to be idle already; but also want to be independent */ wait_for_idle (gt); - with_intel_runtime_pm(>->i915->runtime_pm, wakeref) + with_intel_runtime_pm(gt->uncore->rpm, wakeref)intel_rc6_disable (>->rc6); }drivers/gpu/drm/i915/gt/intel_hangcheck.c +2
-2@@ -271,7 +271,7 @@ static void hangcheck_elapsed(struct work_struct *work)if (intel_gt_is_wedged (gt))return ; - wakeref =intel_runtime_pm_get_if_in_use (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get_if_in_use (gt->uncore->rpm);if (!wakeref)return ;@@ -322,7 +322,7 @@ static void hangcheck_elapsed(struct work_struct *work)if (hung)hangcheck_declare_hang (gt, hung, stuck); -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);/* Reset timer in case GPU hangs without another request being added */ intel_gt_queue_hangcheck (gt);drivers/gpu/drm/i915/gt/intel_reset.c +3
-3@@ -811,7 +811,7 @@ void intel_gt_set_wedged(struct intel_gt *gt)intel_wakeref_t wakeref;mutex_lock (>->reset.mutex); - with_intel_runtime_pm(>->i915->runtime_pm, wakeref) + with_intel_runtime_pm(gt->uncore->rpm, wakeref)__intel_gt_set_wedged (gt);mutex_unlock (>->reset.mutex); }@@ -1186,7 +1186,7 @@ void intel_gt_handle_error(struct intel_gt *gt,* isn't the case at least when we get here by doing a * simulated reset via debugfs, so get an RPM reference. */ - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); engine_mask &=INTEL_INFO (gt->i915)->engine_mask;@@ -1246,7 +1246,7 @@ void intel_gt_handle_error(struct intel_gt *gt,wake_up_all (>->reset.queue); out: -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref); }int intel_gt_reset_trylock (struct intel_gt *gt,int *srcu)drivers/gpu/drm/i915/gt/selftest_hangcheck.c +2
-2@@ -1695,14 +1695,14 @@ int intel_hangcheck_live_selftests(struct drm_i915_private *i915)if (intel_gt_is_wedged (gt))return -EIO ;/* we're long past hope of a successful reset */ - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); saved_hangcheck =fetch_and_zero (&i915_modparams.enable_hangcheck);drain_delayed_work (>->hangcheck.work);/* flush param */ err =intel_gt_live_subtests (tests, gt); i915_modparams.enable_hangcheck = saved_hangcheck; -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);return err; }drivers/gpu/drm/i915/gt/selftest_reset.c +4
-4@@ -17,7 +17,7 @@ static int igt_global_reset(void *arg)/* Check that we can issue a global GPU reset */ igt_global_reset_lock (gt); - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm); reset_count =i915_reset_count (>->i915->gpu_error);@@ -28,7 +28,7 @@ static int igt_global_reset(void *arg) err = -EINVAL ; } -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);igt_global_reset_unlock (gt);if (intel_gt_is_wedged (gt))@@ -45,14 +45,14 @@ static int igt_wedged_reset(void *arg)/* Check that we can recover a wedged device with a GPU reset */ igt_global_reset_lock (gt); - wakeref =intel_runtime_pm_get (>->i915->runtime_pm); + wakeref =intel_runtime_pm_get (gt->uncore->rpm);intel_gt_set_wedged (gt);GEM_BUG_ON (!intel_gt_is_wedged (gt));intel_gt_reset (gt,ALL_ENGINES ,NULL ); -intel_runtime_pm_put (>->i915->runtime_pm, wakeref); +intel_runtime_pm_put (gt->uncore->rpm, wakeref);igt_global_reset_unlock (gt);return intel_gt_is_wedged (gt) ? -EIO :0 ;drivers/gpu/drm/i915/gt/selftest_workarounds.c +2
-2@@ -256,7 +256,7 @@ switch_to_scratch_context(struct intel_engine_cs *engine,GEM_BUG_ON (IS_ERR (ce)); rq =ERR_PTR (-ENODEV ); -with_intel_runtime_pm (&engine->i915->runtime_pm, wakeref) +with_intel_runtime_pm (engine->gt->uncore->rpm, wakeref) rq = igt_spinner_create_request(spin, ce, MI_NOOP);intel_context_put (ce);@@ -313,7 +313,7 @@ static int check_whitelist_across_reset(struct intel_engine_cs *engine,if (err) goto out_spin; -with_intel_runtime_pm (&i915->runtime_pm, wakeref) +with_intel_runtime_pm (engine->gt->uncore->rpm, wakeref) err = reset(engine);igt_spinner_end (&spin);drivers/gpu/drm/i915/gt/uc/intel_guc_log.c +1
-2@@ -607,7 +607,6 @@ int intel_guc_log_relay_open(struct intel_guc_log *log)void intel_guc_log_relay_flush (struct intel_guc_log *log) {struct intel_guc *guc =log_to_guc (log); -struct drm_i915_private *i915 =guc_to_gt (guc)->i915;intel_wakeref_t wakeref;/* @@ -616,7 +615,7 @@ void intel_guc_log_relay_flush(struct intel_guc_log *log)*/ flush_work (&log->relay.flush_work); - with_intel_runtime_pm(&i915->runtime_pm, wakeref) + with_intel_runtime_pm(guc_to_gt(guc)->uncore->rpm, wakeref)guc_action_flush_log (guc);/* GuC would have updated log buffer by now, so capture it */ drivers/gpu/drm/i915/gt/uc/intel_huc.c +1
-1@@ -185,7 +185,7 @@ int intel_huc_check_status(struct intel_huc *huc)if (!intel_huc_is_supported (huc))return -ENODEV ; -with_intel_runtime_pm (>->i915->runtime_pm, wakeref) +with_intel_runtime_pm (gt->uncore->rpm, wakeref) status = intel_uncore_read(gt->uncore, huc->status.reg);return (status & huc->status.mask) == huc->status.value;drivers/gpu/drm/i915/gt/uc/intel_uc.c +1
-1@@ -587,7 +587,7 @@ void intel_uc_suspend(struct intel_uc *uc)if (!intel_guc_is_running (guc))return ; - with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) + with_intel_runtime_pm(uc_to_gt(uc)->uncore->rpm, wakeref)intel_uc_runtime_suspend (uc); }drivers/gpu/drm/i915/i915_irq.c +2
-2@@ -412,7 +412,7 @@ void gen9_reset_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock);gen6_gt_pm_reset_iir (gt, gt->pm_guc_events);@@ -423,7 +423,7 @@ void gen9_enable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock);if (!guc->interrupts.enabled) {
drivers/gpu/drm/i915/i915_irq.c void gen9_disable_guc_interrupts(struct intel_guc *guc) · line 446
Quoted 8 lines
drivers/gpu/drm/i915/i915_irq.c +1
-1@@ -440,7 +440,7 @@ void gen9_disable_guc_interrupts(struct intel_guc *guc) {struct intel_gt *gt =guc_to_gt (guc); -assert_rpm_wakelock_held (>->i915->runtime_pm); +assert_rpm_wakelock_held (gt->uncore->rpm);spin_lock_irq (>->irq_lock); guc->interrupts.enabled = false;
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915/gt: Prefer local path to runtime powermanagement
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: drm/i915/gt: Prefer local path to runtime powermanagement
URL : https://patchwork.freedesktop.org/series/67696/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915/gt: Prefer local path to runtime powermanagement -O:drivers/gpu/drm/i915/gt/intel_reset.c:1252:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/intel_reset.c:1252:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/gt: Prefer local path to runtime powermanagement
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: drm/i915/gt: Prefer local path to runtime powermanagement
URL : https://patchwork.freedesktop.org/series/67696/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7024 -> Patchwork_14693
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_14693 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_14693, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14693/index.html
Known issues
------------
Here are the changes found in Patchwork_14693 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2] ([fdo#111045] / [fdo#111096])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7024/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14693/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@kms_chamelium@dp-edid-read:
- fi-kbl-7500u: [WARN][3] ([fdo#109483]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7024/fi-kbl-7500u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14693/fi-kbl-7500u/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381
Participating hosts (52 -> 22)
------------------------------
ERROR: It appears as if the changes made in Patchwork_14693 prevented too many machines from booting.
Missing (30): fi-kbl-soraka fi-bdw-gvtdvm fi-icl-u2 fi-skl-6260u fi-apl-guc fi-icl-u3 fi-icl-y fi-byt-n2820 fi-icl-guc fi-snb-2600 fi-cml-u2 fi-icl-u4 fi-tgl-u fi-bsw-n3050 fi-byt-j1900 fi-bwr-2160 fi-ilk-650 fi-skl-6700k2 fi-ilk-m540 fi-skl-guc fi-hsw-4200u fi-hsw-peppy fi-byt-squawks fi-bsw-cyan fi-cfl-guc fi-kbl-guc fi-skl-iommu fi-kbl-8809g fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7024 -> Patchwork_14693
CI-20190529: 20190529
CI_DRM_7024: b149aba92ace27b28e068c2541270653c23bca75 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5215: 880c8d3c9831349a269ac6822c8d44e80807089f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14693: f76add6fb61d064b3afa6fd0ea290084527f61b6 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
f76add6fb61d drm/i915/gt: Prefer local path to runtime powermanagement
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14693/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx