/linux/drivers/gpu/drm/i915/gt/ |
A 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() 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() 75 intel_wakeref_might_put(&engine->wakeref); in intel_engine_pm_might_put() [all …]
|
A 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() 60 return intel_wakeref_wait_for_idle(>->wakeref); in intel_gt_pm_wait_for_idle()
|
A D | intel_gt_pm.c | 35 GEM_BUG_ON(count > atomic_read(>->wakeref.count)); in user_forcewake() 36 atomic_sub(count, >->wakeref.count); in user_forcewake() 38 atomic_add(count, >->wakeref.count); in user_forcewake() 99 intel_wakeref_t wakeref = fetch_and_zero(>->awake); in __gt_park() local 116 GEM_BUG_ON(!wakeref); in __gt_park() 130 seqcount_mutex_init(>->stats.lock, >->wakeref.mutex); in intel_gt_pm_init_early() 156 intel_wakeref_t wakeref; in gt_sanitize() local 161 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in gt_sanitize() 199 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in gt_sanitize() 318 intel_wakeref_t wakeref; in intel_gt_suspend_late() local [all …]
|
A 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() 172 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in __igt_reset_stolen() 209 intel_wakeref_t wakeref; in igt_global_reset() local 215 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_global_reset() 226 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_global_reset() 238 intel_wakeref_t wakeref; in igt_wedged_reset() local 243 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in igt_wedged_reset() 250 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in igt_wedged_reset()
|
A D | selftest_llc.c | 14 intel_wakeref_t wakeref; in gen6_verify_ring_freq() local 18 wakeref = intel_runtime_pm_get(llc_to_gt(llc)->uncore->rpm); in gen6_verify_ring_freq() 65 intel_runtime_pm_put(llc_to_gt(llc)->uncore->rpm, wakeref); in gen6_verify_ring_freq()
|
A D | intel_gt_pm_debugfs.c | 87 intel_wakeref_t wakeref; in print_rc6_res() local 89 with_intel_runtime_pm(gt->uncore->rpm, wakeref) in print_rc6_res() 268 intel_wakeref_t wakeref; in drpc_show() local 271 with_intel_runtime_pm(gt->uncore->rpm, wakeref) { in drpc_show() 289 intel_wakeref_t wakeref; in intel_gt_pm_frequency_dump() local 291 wakeref = intel_runtime_pm_get(uncore->rpm); in intel_gt_pm_frequency_dump() 519 intel_runtime_pm_put(uncore->rpm, wakeref); in intel_gt_pm_frequency_dump() 540 intel_wakeref_t wakeref; in llc_show() local 557 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in llc_show() 572 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in llc_show()
|
A D | intel_engine_pm.c | 45 container_of(wf, typeof(*engine), wakeref); in __engine_unpark() 153 __intel_wakeref_defer_park(&engine->wakeref); in __queue_and_release_pm() 269 container_of(wf, typeof(*engine), wakeref); in __engine_park() 310 intel_wakeref_init(&engine->wakeref, rpm, &wf_ops); in intel_engine_init__pm()
|
/linux/drivers/gpu/drm/i915/ |
A D | intel_wakeref.c | 14 wf->wakeref = intel_runtime_pm_get(wf->rpm); in rpm_get() 19 intel_wakeref_t wakeref = fetch_and_zero(&wf->wakeref); in rpm_put() local 21 intel_runtime_pm_put(wf->rpm, wakeref); in rpm_put() 22 INTEL_WAKEREF_BUG_ON(!wakeref); in rpm_put() 64 wake_up_var(&wf->wakeref); in ____intel_wakeref_put_last() 106 wf->wakeref = 0; in __intel_wakeref_init() 131 intel_wakeref_t wakeref; in wakeref_auto_timeout() local 137 wakeref = fetch_and_zero(&wf->wakeref); in wakeref_auto_timeout() 149 wf->wakeref = 0; in intel_wakeref_auto_init() 169 INTEL_WAKEREF_BUG_ON(wf->wakeref); in intel_wakeref_auto() [all …]
|
A D | i915_debugfs.c | 292 intel_wakeref_t wakeref; in i915_gpu_info_open() local 295 with_intel_runtime_pm(&i915->runtime_pm, wakeref) in i915_gpu_info_open() 390 intel_wakeref_t wakeref; in i915_swizzle_info() local 404 wakeref = intel_runtime_pm_get(&dev_priv->runtime_pm); in i915_swizzle_info() 434 intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); in i915_swizzle_info() 505 intel_wakeref_t wakeref; in i915_engine_info() local 508 wakeref = intel_runtime_pm_get(&i915->runtime_pm); in i915_engine_info() 512 atomic_read(&i915->gt.wakeref.count), in i915_engine_info() 524 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in i915_engine_info()
|
A D | intel_wakeref.h | 40 intel_wakeref_t wakeref; member 237 return READ_ONCE(wf->wakeref); in intel_wakeref_is_active() 268 intel_wakeref_t wakeref; member
|
/linux/drivers/gpu/drm/i915/pxp/ |
A D | intel_pxp_session.c | 25 intel_wakeref_t wakeref; in intel_pxp_session_is_in_play() local 29 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) in intel_pxp_session_is_in_play() 38 intel_wakeref_t wakeref; in pxp_wait_for_session_state() local 43 wakeref = intel_runtime_pm_get_if_in_use(uncore->rpm); in pxp_wait_for_session_state() 44 if (!wakeref) in pxp_wait_for_session_state() 53 intel_runtime_pm_put(uncore->rpm, wakeref); in pxp_wait_for_session_state() 145 intel_wakeref_t wakeref; in intel_pxp_session_work() local 162 wakeref = intel_runtime_pm_get_if_in_use(gt->uncore->rpm); in intel_pxp_session_work() 163 if (!wakeref) in intel_pxp_session_work() 174 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_pxp_session_work()
|
A D | intel_pxp_tee.c | 83 intel_wakeref_t wakeref; in i915_pxp_tee_component_bind() local 91 wakeref = intel_runtime_pm_get_if_in_use(&i915->runtime_pm); in i915_pxp_tee_component_bind() 92 if (!wakeref) in i915_pxp_tee_component_bind() 98 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in i915_pxp_tee_component_bind()
|
A D | intel_pxp_pm.c | 24 intel_wakeref_t wakeref; in intel_pxp_suspend() local 29 with_intel_runtime_pm(&pxp_to_gt(pxp)->i915->runtime_pm, wakeref) { in intel_pxp_suspend()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_gem.c | 74 intel_wakeref_t wakeref; in simulate_hibernate() local 76 wakeref = intel_runtime_pm_get(&i915->runtime_pm); in simulate_hibernate() 87 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in simulate_hibernate() 99 intel_wakeref_t wakeref; in igt_pm_suspend() local 101 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_suspend() 109 intel_wakeref_t wakeref; in igt_pm_hibernate() local 111 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_hibernate() 121 intel_wakeref_t wakeref; in igt_pm_resume() local 127 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in igt_pm_resume()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_shrinker.c | 118 intel_wakeref_t wakeref = 0; in i915_gem_shrink() local 135 if (!wakeref) in i915_gem_shrink() 249 intel_runtime_pm_put(&i915->runtime_pm, wakeref); in i915_gem_shrink() 275 intel_wakeref_t wakeref; in i915_gem_shrink_all() local 278 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in i915_gem_shrink_all() 331 intel_wakeref_t wakeref; in i915_gem_shrinker_scan() local 333 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in i915_gem_shrinker_scan() 354 intel_wakeref_t wakeref; in i915_gem_shrinker_oom() local 358 with_intel_runtime_pm(&i915->runtime_pm, wakeref) in i915_gem_shrinker_oom() 394 intel_wakeref_t wakeref; in i915_gem_shrinker_vmap() local [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_pps.c | 24 intel_wakeref_t wakeref; in intel_pps_lock() local 32 return wakeref; in intel_pps_lock() 36 intel_wakeref_t wakeref) in intel_pps_unlock() argument 527 intel_wakeref_t wakeref; in intel_pps_wait_power_cycle() local 636 intel_wakeref_t wakeref; in intel_pps_vdd_on() local 693 intel_wakeref_t wakeref; in intel_pps_vdd_off_sync() local 712 intel_wakeref_t wakeref; in edp_panel_vdd_work() local 810 intel_wakeref_t wakeref; in intel_pps_on() local 862 intel_wakeref_t wakeref; in intel_pps_off() local 875 intel_wakeref_t wakeref; in intel_pps_backlight_on() local [all …]
|
A D | intel_vga.c | 60 intel_wakeref_t wakeref; in intel_vga_redisable() local 71 wakeref = intel_display_power_get_if_enabled(i915, POWER_DOMAIN_VGA); in intel_vga_redisable() 72 if (!wakeref) in intel_vga_redisable() 77 intel_display_power_put(i915, POWER_DOMAIN_VGA, wakeref); in intel_vga_redisable()
|
A D | intel_display_power.h | 338 intel_wakeref_t wakeref); 343 intel_wakeref_t wakeref); 347 intel_wakeref_t wakeref) in intel_display_power_put_async() argument 349 __intel_display_power_put_async(i915, domain, wakeref); in intel_display_power_put_async() 358 intel_wakeref_t wakeref) in intel_display_power_put() argument 366 intel_wakeref_t wakeref) in intel_display_power_put_async() argument
|
A D | intel_dpll_mgr.c | 409 intel_wakeref_t wakeref; in ibx_pch_dpll_get_hw_state() local 414 if (!wakeref) in ibx_pch_dpll_get_hw_state() 610 if (!wakeref) in hsw_ddi_wrpll_get_hw_state() 630 if (!wakeref) in hsw_ddi_spll_get_hw_state() 1231 if (!wakeref) in skl_ddi_pll_get_hw_state() 1268 if (!wakeref) in skl_ddi_dpll0_get_hw_state() 1988 if (!wakeref) in bxt_ddi_pll_get_hw_state() 3318 if (!wakeref) in mg_pll_get_hw_state() 3382 if (!wakeref) in dkl_pll_get_hw_state() 3456 if (!wakeref) in icl_pll_get_hw_state() [all …]
|
A D | intel_crt.c | 97 intel_wakeref_t wakeref; in intel_crt_get_hw_state() local 100 wakeref = intel_display_power_get_if_enabled(dev_priv, in intel_crt_get_hw_state() 102 if (!wakeref) in intel_crt_get_hw_state() 107 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_crt_get_hw_state() 832 intel_wakeref_t wakeref; in intel_crt_detect() local 844 wakeref = intel_display_power_get(dev_priv, in intel_crt_detect() 853 wakeref = intel_display_power_get(dev_priv, in intel_crt_detect() 911 intel_display_power_put(dev_priv, intel_encoder->power_domain, wakeref); in intel_crt_detect() 928 intel_wakeref_t wakeref; in intel_crt_get_modes() local 932 wakeref = intel_display_power_get(dev_priv, in intel_crt_get_modes() [all …]
|
A D | intel_display_debugfs.c | 47 intel_wakeref_t wakeref; in i915_fbc_status() local 52 wakeref = intel_runtime_pm_get(&dev_priv->runtime_pm); in i915_fbc_status() 79 intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); in i915_fbc_status() 123 intel_wakeref_t wakeref; in i915_ips_status() local 150 intel_wakeref_t wakeref; in i915_sr_status() local 336 intel_wakeref_t wakeref; in intel_psr_status() local 458 intel_wakeref_t wakeref; in i915_edp_psr_debug_set() local 535 intel_wakeref_t wakeref; in i915_dmc_info() local 1061 intel_wakeref_t wakeref; in i915_display_info() local 1165 intel_wakeref_t wakeref; in i915_ipc_status_write() local [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
A D | intel_guc_slpc.c | 324 intel_wakeref_t wakeref; in intel_guc_slpc_set_max_freq() local 332 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_set_max_freq() 361 intel_wakeref_t wakeref; in intel_guc_slpc_get_max_freq() local 364 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_get_max_freq() 388 intel_wakeref_t wakeref; in intel_guc_slpc_set_min_freq() local 396 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_set_min_freq() 425 intel_wakeref_t wakeref; in intel_guc_slpc_get_min_freq() local 428 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_get_min_freq() 596 intel_wakeref_t wakeref; in intel_guc_slpc_print_info() local 601 with_intel_runtime_pm(&i915->runtime_pm, wakeref) { in intel_guc_slpc_print_info()
|
A D | selftest_guc.c | 40 intel_wakeref_t wakeref; in intel_guc_scrub_ctbs() local 44 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in intel_guc_scrub_ctbs() 108 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in intel_guc_scrub_ctbs()
|
A D | intel_huc.c | 224 intel_wakeref_t wakeref; in intel_huc_check_status() local 240 with_intel_runtime_pm(gt->uncore->rpm, wakeref) in intel_huc_check_status() 256 intel_wakeref_t wakeref; in intel_huc_load_status() local 270 with_intel_runtime_pm(gt->uncore->rpm, wakeref) in intel_huc_load_status()
|
/linux/drivers/gpu/drm/i915/gvt/ |
A D | aperture_gm.c | 170 intel_wakeref_t wakeref; in free_vgpu_fence() local 176 wakeref = intel_runtime_pm_get(uncore->rpm); in free_vgpu_fence() 187 intel_runtime_pm_put(uncore->rpm, wakeref); in free_vgpu_fence() 195 intel_wakeref_t wakeref; in alloc_vgpu_fence() local 198 wakeref = intel_runtime_pm_get(uncore->rpm); in alloc_vgpu_fence() 214 intel_runtime_pm_put(uncore->rpm, wakeref); in alloc_vgpu_fence() 323 intel_wakeref_t wakeref; in intel_vgpu_reset_resource() local 325 with_intel_runtime_pm(gvt->gt->uncore->rpm, wakeref) in intel_vgpu_reset_resource()
|