Home
last modified time | relevance | path

Searched refs:wakeref (Results 1 – 25 of 116) sorted by relevance

12345

/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_engine_pm.h18 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 …]
Dintel_gt_pm.h16 return intel_wakeref_is_active(&gt->wakeref); in intel_gt_pm_is_awake()
21 intel_wakeref_get(&gt->wakeref); in intel_gt_pm_get()
26 __intel_wakeref_get(&gt->wakeref); in __intel_gt_pm_get()
31 return intel_wakeref_get_if_active(&gt->wakeref); in intel_gt_pm_get_if_awake()
36 intel_wakeref_might_get(&gt->wakeref); in intel_gt_pm_might_get()
41 intel_wakeref_put(&gt->wakeref); in intel_gt_pm_put()
46 intel_wakeref_put_async(&gt->wakeref); in intel_gt_pm_put_async()
51 intel_wakeref_might_put(&gt->wakeref); in intel_gt_pm_might_put()
71 return intel_wakeref_wait_for_idle(&gt->wakeref); in intel_gt_pm_wait_for_idle()
Dintel_gt_pm.c37 GEM_BUG_ON(count > atomic_read(&gt->wakeref.count)); in user_forcewake()
38 atomic_sub(count, &gt->wakeref.count); in user_forcewake()
40 atomic_add(count, &gt->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(&gt->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(&gt->wakeref, gt->i915, &wf_ops); in intel_gt_pm_init_early()
141 seqcount_mutex_init(&gt->stats.lock, &gt->wakeref.mutex); in intel_gt_pm_init_early()
[all …]
Dselftest_reset.c26 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()
Dintel_gt_pm_debugfs.c318 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 …]
Dselftest_llc.c13 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()
Dintel_engine_pm.c61 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/
Dintel_wakeref.c15 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 …]
Di915_hwmon.c73 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 …]
Dintel_pcode.c247 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()
Dintel_wakeref.h40 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/
Dintel_pxp_session.c21 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()
Dintel_pxp_tee.c159 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()
Dintel_pxp_pm.c26 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/
Dintel_guc_slpc.c215 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 …]
Dselftest_guc.c55 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()
Dintel_gsc_uc.c20 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/
Di915_gem.c78 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/
Dintel_display_power.h201 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
Dintel_vga.c63 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()
Dintel_pps.c64 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 …]
Dintel_tc.c196 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/
Di915_gem_shrinker.c119 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/
Daperture_gm.c171 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/
Di915_gem_migrate.c320 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()

12345