1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>intel_runtime_pm_get_noresume</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="drmI915.html#idp1127683628" title="Runtime Power Management"><link rel="prev" href="API-intel-runtime-pm-get.html" title="intel_runtime_pm_get"><link rel="next" href="API-intel-runtime-pm-put.html" title="intel_runtime_pm_put"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">intel_runtime_pm_get_noresume</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-intel-runtime-pm-get.html">Prev</a> </td><th width="60%" align="center">Runtime Power Management</th><td width="20%" align="right"> <a accesskey="n" href="API-intel-runtime-pm-put.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-intel-runtime-pm-get-noresume"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>intel_runtime_pm_get_noresume — 2 grab a runtime pm reference 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">intel_runtime_pm_get_noresume </b>(</code></td><td>struct drm_i915_private * <var class="pdparam">dev_priv</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1127783020"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev_priv</code></em></span></dt><dd><p> 4 i915 device instance 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1127784636"></a><h2>Description</h2><p> 6 This function grabs a device-level runtime pm reference (mostly used for GEM 7 code to ensure the GTT or GT is on). 8 </p><p> 9 10 It will _not_ power up the device but instead only check that it's powered 11 on. Therefore it is only valid to call this functions from contexts where 12 the device is known to be powered up and where trying to power it up would 13 result in hilarity and deadlocks. That pretty much means only the system 14 suspend/resume code where this is used to grab runtime pm references for 15 delayed setup down in work items. 16 </p><p> 17 18 Any runtime pm reference obtained by this function must have a symmetric 19 call to <code class="function">intel_runtime_pm_put</code> to release the reference again. 20</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-intel-runtime-pm-get.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drmI915.html#idp1127683628">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-intel-runtime-pm-put.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">intel_runtime_pm_get</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">intel_runtime_pm_put</span></td></tr></table></div></body></html> 21