/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_engine_pm.h | 18 return intel_wakeref_is_active(&engine->wakeref); in intel_engine_pm_is_awake() 23 __intel_wakeref_get(&engine->wakeref); in __intel_engine_pm_get() 28 intel_wakeref_get(&engine->wakeref); in intel_engine_pm_get() 33 return intel_wakeref_get_if_active(&engine->wakeref); in intel_engine_pm_get_if_awake() 39 intel_wakeref_might_get(&engine->wakeref); in intel_engine_pm_might_get() 46 intel_wakeref_might_get(&tengine->wakeref); in intel_engine_pm_might_get() 53 intel_wakeref_put(&engine->wakeref); in intel_engine_pm_put() 58 intel_wakeref_put_async(&engine->wakeref); in intel_engine_pm_put_async() 64 intel_wakeref_put_delay(&engine->wakeref, delay); in intel_engine_pm_put_delay() 69 intel_wakeref_unlock_wait(&engine->wakeref); in intel_engine_pm_flush() [all …]
|
D | intel_gt_pm.h | 16 return intel_wakeref_is_active(>->wakeref); in intel_gt_pm_is_awake() 21 intel_wakeref_get(>->wakeref); in intel_gt_pm_get() 26 __intel_wakeref_get(>->wakeref); in __intel_gt_pm_get() 31 return intel_wakeref_get_if_active(>->wakeref); in intel_gt_pm_get_if_awake() 36 intel_wakeref_might_get(>->wakeref); in intel_gt_pm_might_get() 41 intel_wakeref_put(>->wakeref); in intel_gt_pm_put() 46 intel_wakeref_put_async(>->wakeref); in intel_gt_pm_put_async() 51 intel_wakeref_might_put(>->wakeref); in intel_gt_pm_might_put() 71 return intel_wakeref_wait_for_idle(>->wakeref); in intel_gt_pm_wait_for_idle()
|
D | intel_gt_pm.c | 37 GEM_BUG_ON(count > atomic_read(>->wakeref.count)); in user_forcewake() 38 atomic_sub(count, >->wakeref.count); in user_forcewake() 40 atomic_add(count, >->wakeref.count); in user_forcewake() 69 struct intel_gt *gt = container_of(wf, typeof(*gt), wakeref); in __gt_unpark() 101 struct intel_gt *gt = container_of(wf, typeof(*gt), wakeref); in __gt_park() 102 intel_wakeref_t wakeref = fetch_and_zero(>->awake); in __gt_park() local 120 GEM_BUG_ON(!wakeref); in __gt_park() 121 intel_display_power_put_async(i915, POWER_DOMAIN_GT_IRQ, wakeref); in __gt_park() 140 intel_wakeref_init(>->wakeref, gt->i915, &wf_ops); in intel_gt_pm_init_early() 141 seqcount_mutex_init(>->stats.lock, >->wakeref.mutex); in intel_gt_pm_init_early() [all …]
|
D | selftest_reset.c | 26 intel_wakeref_t wakeref; in __igt_reset_stolen() local 52 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in __igt_reset_stolen() 176 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in __igt_reset_stolen() 213 intel_wakeref_t wakeref; in igt_global_reset() local 219 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_global_reset() 230 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_global_reset() 242 intel_wakeref_t wakeref; in igt_wedged_reset() local 247 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_wedged_reset() 254 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_wedged_reset()
|
D | intel_gt_pm_debugfs.c | 318 intel_wakeref_t wakeref; in drpc_show() local 321 with_intel_runtime_pm(gt->uncore->rpm, wakeref) { in drpc_show() 341 intel_wakeref_t wakeref; in intel_gt_pm_frequency_dump() local 343 wakeref = intel_runtime_pm_get(uncore->rpm); in intel_gt_pm_frequency_dump() 400 intel_runtime_pm_put(uncore->rpm, wakeref); in intel_gt_pm_frequency_dump() 421 intel_wakeref_t wakeref; in llc_show() local 438 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in llc_show() 452 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in llc_show() 553 intel_wakeref_t wakeref; in perf_limit_reasons_get() local 555 with_intel_runtime_pm(gt->uncore->rpm, wakeref) in perf_limit_reasons_get() [all …]
|
D | selftest_llc.c | 13 intel_wakeref_t wakeref; in gen6_verify_ring_freq() local 17 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq() 63 intel_runtime_pm_put(llc_to_gt(llc)->uncore->rpm, wakeref); in gen6_verify_ring_freq()
|
D | intel_engine_pm.c | 61 container_of(wf, typeof(*engine), wakeref); in __engine_unpark() 145 __intel_wakeref_defer_park(&engine->wakeref); in __queue_and_release_pm() 260 container_of(wf, typeof(*engine), wakeref); in __engine_park() 299 intel_wakeref_init(&engine->wakeref, engine->i915, &wf_ops); in intel_engine_init__pm()
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | intel_wakeref.c | 15 wf->wakeref = intel_runtime_pm_get(&wf->i915->runtime_pm); in rpm_get() 20 intel_wakeref_t wakeref = fetch_and_zero(&wf->wakeref); in rpm_put() local 22 intel_runtime_pm_put(&wf->i915->runtime_pm, wakeref); in rpm_put() 23 INTEL_WAKEREF_BUG_ON(!wakeref); in rpm_put() 65 wake_up_var(&wf->wakeref); in ____intel_wakeref_put_last() 107 wf->wakeref = 0; in __intel_wakeref_init() 120 err = wait_var_event_killable(&wf->wakeref, in intel_wakeref_wait_for_idle() 132 intel_wakeref_t wakeref; in wakeref_auto_timeout() local 138 wakeref = fetch_and_zero(&wf->wakeref); in wakeref_auto_timeout() 141 intel_runtime_pm_put(&wf->i915->runtime_pm, wakeref); in wakeref_auto_timeout() [all …]
|
D | i915_hwmon.c | 73 intel_wakeref_t wakeref; in hwm_locked_with_pm_intel_uncore_rmw() local 77 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_locked_with_pm_intel_uncore_rmw() 93 intel_wakeref_t wakeref; in hwm_field_read_and_scale() local 96 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_field_read_and_scale() 130 intel_wakeref_t wakeref; in hwm_energy() local 141 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_energy() 161 intel_wakeref_t wakeref; in hwm_power1_max_interval_show() local 165 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_power1_max_interval_show() 319 intel_wakeref_t wakeref; in hwm_in_read() local 324 with_intel_runtime_pm(ddat->uncore->rpm, wakeref) in hwm_in_read() [all …]
|
D | intel_pcode.c | 247 intel_wakeref_t wakeref; in snb_pcode_read_p() local 255 with_intel_runtime_pm(uncore->rpm, wakeref) in snb_pcode_read_p() 263 intel_wakeref_t wakeref; in snb_pcode_write_p() local 271 with_intel_runtime_pm(uncore->rpm, wakeref) in snb_pcode_write_p()
|
D | intel_wakeref.h | 40 intel_wakeref_t wakeref; member 236 return READ_ONCE(wf->wakeref); in intel_wakeref_is_active() 267 intel_wakeref_t wakeref; member
|
/linux-6.6.21/drivers/gpu/drm/i915/pxp/ |
D | intel_pxp_session.c | 21 intel_wakeref_t wakeref; in intel_pxp_session_is_in_play() local 25 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) in intel_pxp_session_is_in_play() 34 intel_wakeref_t wakeref; in pxp_wait_for_session_state() local 39 wakeref = intel_runtime_pm_get_if_in_use(uncore->rpm); in pxp_wait_for_session_state() 40 if (!wakeref) in pxp_wait_for_session_state() 49 intel_runtime_pm_put(uncore->rpm, wakeref); in pxp_wait_for_session_state() 150 intel_wakeref_t wakeref; in pxp_session_work() local 167 wakeref = intel_runtime_pm_get_if_in_use(gt->uncore->rpm); in pxp_session_work() 168 if (!wakeref) in pxp_session_work() 179 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in pxp_session_work()
|
D | intel_pxp_tee.c | 159 intel_wakeref_t wakeref; in i915_pxp_tee_component_bind() local 174 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in i915_pxp_tee_component_bind() 183 wakeref = intel_runtime_pm_get_if_in_use(&i915->runtime_pm); in i915_pxp_tee_component_bind() 184 if (!wakeref) in i915_pxp_tee_component_bind() 191 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in i915_pxp_tee_component_bind() 201 intel_wakeref_t wakeref; in i915_pxp_tee_component_unbind() local 204 with_intel_runtime_pm_if_in_use(&i915->runtime_pm, wakeref) in i915_pxp_tee_component_unbind()
|
D | intel_pxp_pm.c | 26 intel_wakeref_t wakeref; in intel_pxp_suspend() local 31 with_intel_runtime_pm(&pxp->ctrl_gt->i915->runtime_pm, wakeref) { in intel_pxp_suspend()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_slpc.c | 215 intel_wakeref_t wakeref; in slpc_force_min_freq() local 231 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in slpc_force_min_freq() 410 intel_wakeref_t wakeref; in intel_guc_slpc_set_max_freq() local 418 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_set_max_freq() 447 intel_wakeref_t wakeref; in intel_guc_slpc_get_max_freq() local 450 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_get_max_freq() 464 intel_wakeref_t wakeref; in intel_guc_slpc_set_ignore_eff_freq() local 468 wakeref = intel_runtime_pm_get(&i915->runtime_pm); in intel_guc_slpc_set_ignore_eff_freq() 486 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in intel_guc_slpc_set_ignore_eff_freq() 504 intel_wakeref_t wakeref; in intel_guc_slpc_set_min_freq() local [all …]
|
D | selftest_guc.c | 55 intel_wakeref_t wakeref; in intel_guc_scrub_ctbs() local 62 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_scrub_ctbs() 126 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_scrub_ctbs() 149 intel_wakeref_t wakeref; in intel_guc_steal_guc_ids() local 162 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_steal_guc_ids() 282 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_steal_guc_ids()
|
D | intel_gsc_uc.c | 20 intel_wakeref_t wakeref; in gsc_work() local 24 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in gsc_work() 97 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in gsc_work() 324 intel_wakeref_t wakeref; in intel_gsc_uc_load_status() local 351 with_intel_runtime_pm(uncore->rpm, wakeref) { in intel_gsc_uc_load_status()
|
/linux-6.6.21/drivers/gpu/drm/i915/selftests/ |
D | i915_gem.c | 78 intel_wakeref_t wakeref; in simulate_hibernate() local 80 wakeref = intel_runtime_pm_get(&i915->runtime_pm); in simulate_hibernate() 91 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in simulate_hibernate() 103 intel_wakeref_t wakeref; in igt_pm_suspend() local 105 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_suspend() 113 intel_wakeref_t wakeref; in igt_pm_hibernate() local 115 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_hibernate() 125 intel_wakeref_t wakeref; in igt_pm_resume() local 131 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_resume()
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_display_power.h | 201 intel_wakeref_t wakeref, 207 intel_wakeref_t wakeref); 211 intel_wakeref_t wakeref) in intel_display_power_put_async() argument 213 __intel_display_power_put_async(i915, domain, wakeref, -1); in intel_display_power_put_async() 219 intel_wakeref_t wakeref, in intel_display_power_put_async_delay() argument 222 __intel_display_power_put_async(i915, domain, wakeref, delay_ms); in intel_display_power_put_async_delay() 231 intel_wakeref_t wakeref) in intel_display_power_put() argument 239 intel_wakeref_t wakeref) in intel_display_power_put_async() argument 247 intel_wakeref_t wakeref, in intel_display_power_put_async_delay() argument
|
D | intel_vga.c | 63 intel_wakeref_t wakeref; in intel_vga_redisable() local 74 wakeref = intel_display_power_get_if_enabled(i915, POWER_DOMAIN_VGA); in intel_vga_redisable() 75 if (!wakeref) in intel_vga_redisable() 80 intel_display_power_put(i915, POWER_DOMAIN_VGA, wakeref); in intel_vga_redisable()
|
D | intel_pps.c | 64 intel_wakeref_t wakeref; in intel_pps_lock() local 69 wakeref = intel_display_power_get(dev_priv, POWER_DOMAIN_DISPLAY_CORE); in intel_pps_lock() 72 return wakeref; in intel_pps_lock() 76 intel_wakeref_t wakeref) in intel_pps_unlock() argument 81 intel_display_power_put(dev_priv, POWER_DOMAIN_DISPLAY_CORE, wakeref); in intel_pps_unlock() 669 intel_wakeref_t wakeref; in intel_pps_wait_power_cycle() local 674 with_intel_pps_lock(intel_dp, wakeref) in intel_pps_wait_power_cycle() 781 intel_wakeref_t wakeref; in intel_pps_vdd_on() local 788 with_intel_pps_lock(intel_dp, wakeref) in intel_pps_vdd_on() 841 intel_wakeref_t wakeref; in intel_pps_vdd_off_sync() local [all …]
|
D | intel_tc.c | 196 intel_wakeref_t wakeref; in tc_cold_block() local 198 wakeref = __tc_cold_block(tc, &domain); in tc_cold_block() 202 return wakeref; in tc_cold_block() 207 intel_wakeref_t wakeref) in __tc_cold_unblock() argument 211 intel_display_power_put(i915, domain, wakeref); in __tc_cold_unblock() 215 tc_cold_unblock(struct intel_tc_port *tc, intel_wakeref_t wakeref) in tc_cold_unblock() argument 222 __tc_cold_unblock(tc, domain, wakeref); in tc_cold_unblock() 296 intel_wakeref_t wakeref; in mtl_tc_port_get_pin_assignment_mask() local 299 with_intel_display_power(i915, POWER_DOMAIN_DISPLAY_CORE, wakeref) in mtl_tc_port_get_pin_assignment_mask() 319 intel_wakeref_t wakeref; in intel_tc_port_fia_max_lane_count() local [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shrinker.c | 119 intel_wakeref_t wakeref = 0; in i915_gem_shrink() local 135 wakeref = intel_runtime_pm_get_if_in_use(&i915->runtime_pm); in i915_gem_shrink() 136 if (!wakeref) in i915_gem_shrink() 246 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in i915_gem_shrink() 272 intel_wakeref_t wakeref; in i915_gem_shrink_all() local 275 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in i915_gem_shrink_all() 328 intel_wakeref_t wakeref; in i915_gem_shrinker_scan() local 330 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in i915_gem_shrinker_scan() 351 intel_wakeref_t wakeref; in i915_gem_shrinker_oom() local 355 with_intel_runtime_pm(&i915->runtime_pm, wakeref) in i915_gem_shrinker_oom() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | aperture_gm.c | 171 intel_wakeref_t wakeref; in free_vgpu_fence() local 177 wakeref = intel_runtime_pm_get(uncore->rpm); in free_vgpu_fence() 188 intel_runtime_pm_put(uncore->rpm, wakeref); in free_vgpu_fence() 196 intel_wakeref_t wakeref; in alloc_vgpu_fence() local 199 wakeref = intel_runtime_pm_get(uncore->rpm); in alloc_vgpu_fence() 215 intel_runtime_pm_put(uncore->rpm, wakeref); in alloc_vgpu_fence() 324 intel_wakeref_t wakeref; in intel_vgpu_reset_resource() local 326 with_intel_runtime_pm(gvt->gt->uncore->rpm, wakeref) in intel_vgpu_reset_resource()
|
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_migrate.c | 320 intel_wakeref_t wakeref; in igt_lmem_pages_failsafe_migrate() local 340 wakeref = intel_runtime_pm_get(__gt->uncore->rpm); in igt_lmem_pages_failsafe_migrate() 344 intel_runtime_pm_put(__gt->uncore->rpm, wakeref); in igt_lmem_pages_failsafe_migrate() 475 intel_wakeref_t wakeref; in igt_lmem_async_migrate() local 495 wakeref = intel_runtime_pm_get(__gt->uncore->rpm); in igt_lmem_async_migrate() 499 intel_runtime_pm_put(__gt->uncore->rpm, wakeref); in igt_lmem_async_migrate()
|