Lines Matching +full:gpu +full:- +full:id

2  * SPDX-License-Identifier: MIT
28 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_suspend()
30 intel_wakeref_auto(&i915->runtime_pm.userfault_wakeref, 0); in i915_gem_suspend()
31 flush_workqueue(i915->wq); in i915_gem_suspend()
37 * leaves the i915->kernel_context still active when in i915_gem_suspend()
38 * we actually suspend, and its image in memory may not match the GPU in i915_gem_suspend()
51 int ret = 0, id; in lmem_restore() local
53 for_each_memory_region(mr, i915, id) { in lmem_restore()
54 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_restore()
67 int ret = 0, id; in lmem_suspend() local
69 for_each_memory_region(mr, i915, id) { in lmem_suspend()
70 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_suspend()
83 int id; in lmem_recover() local
85 for_each_memory_region(mr, i915, id) in lmem_recover()
86 if (mr->type == INTEL_MEMORY_LOCAL) in lmem_recover()
107 * page-tables for the migrate context. in i915_gem_backup_suspend()
134 &i915->mm.shrink_list, in i915_gem_suspend_late()
135 &i915->mm.purge_list, in i915_gem_suspend_late()
146 * so we need to reset the GPU back to legacy mode. And the only in i915_gem_suspend_late()
147 * known way to disable logical contexts is through a GPU reset. in i915_gem_suspend_late()
150 * always reset the GPU upon unload and suspend. Afterwards we then in i915_gem_suspend_late()
154 * Note that is of the upmost importance that the GPU is idle and in i915_gem_suspend_late()
158 * However, since we are uncertain that resetting the GPU on older in i915_gem_suspend_late()
159 * machines is a good idea, we don't - just in case it leaves the in i915_gem_suspend_late()
166 spin_lock_irqsave(&i915->mm.obj_lock, flags); in i915_gem_suspend_late()
169 if (!(obj->cache_coherent & I915_BO_CACHE_COHERENT_FOR_READ)) in i915_gem_suspend_late()
170 flush |= (obj->read_domains & I915_GEM_DOMAIN_CPU) == 0; in i915_gem_suspend_late()
171 __start_cpu_write(obj); /* presume auto-hibernate */ in i915_gem_suspend_late()
174 spin_unlock_irqrestore(&i915->mm.obj_lock, flags); in i915_gem_suspend_late()
209 with_intel_runtime_pm(&i915->runtime_pm, wakeref) in i915_gem_freeze_late()
210 i915_gem_shrink(NULL, i915, -1UL, NULL, ~0); in i915_gem_freeze_late()
214 list_for_each_entry(obj, &i915->mm.shrink_list, mm.link) in i915_gem_freeze_late()
225 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_resume()
247 dev_err(i915->drm.dev, in i915_gem_resume()
248 "Failed to re-initialize GPU[%u], declaring it wedged!\n", in i915_gem_resume()