File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include "i915_drv.h"
13
13
14
- static bool switch_to_kernel_context_sync (struct intel_gt * gt )
15
- {
16
- bool result = !intel_gt_is_wedged (gt );
17
-
18
- if (intel_gt_wait_for_idle (gt , I915_GEM_IDLE_TIMEOUT ) == - ETIME ) {
19
- /* XXX hide warning from gem_eio */
20
- if (i915_modparams .reset ) {
21
- dev_err (gt -> i915 -> drm .dev ,
22
- "Failed to idle engines, declaring wedged!\n" );
23
- GEM_TRACE_DUMP ();
24
- }
25
-
26
- /*
27
- * Forcibly cancel outstanding work and leave
28
- * the gpu quiet.
29
- */
30
- intel_gt_set_wedged (gt );
31
- result = false;
32
- }
33
-
34
- if (intel_gt_pm_wait_for_idle (gt ))
35
- result = false;
36
-
37
- return result ;
38
- }
39
-
40
14
static void user_forcewake (struct intel_gt * gt , bool suspend )
41
15
{
42
16
int count = atomic_read (& gt -> user_wakeref );
@@ -158,10 +132,6 @@ void i915_gem_resume(struct drm_i915_private *i915)
158
132
if (intel_gt_resume (& i915 -> gt ))
159
133
goto err_wedged ;
160
134
161
- /* Always reload a context for powersaving. */
162
- if (!switch_to_kernel_context_sync (& i915 -> gt ))
163
- goto err_wedged ;
164
-
165
135
user_forcewake (& i915 -> gt , false);
166
136
167
137
out_unlock :
You can’t perform that action at this time.
0 commit comments