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()
38 flush_workqueue(i915->wq); in i915_gem_suspend()
44 * leaves the i915->kernel_context still active when in i915_gem_suspend()
45 * we actually suspend, and its image in memory may not match the GPU in i915_gem_suspend()
58 int ret = 0, id; in lmem_restore() local
60 for_each_memory_region(mr, i915, id) { in lmem_restore()
61 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_restore()
74 int ret = 0, id; in lmem_suspend() local
76 for_each_memory_region(mr, i915, id) { in lmem_suspend()
77 if (mr->type == INTEL_MEMORY_LOCAL) { in lmem_suspend()
90 int id; in lmem_recover() local
92 for_each_memory_region(mr, i915, id) in lmem_recover()
93 if (mr->type == INTEL_MEMORY_LOCAL) in lmem_recover()
114 * page-tables for the migrate context. in i915_gem_backup_suspend()
141 &i915->mm.shrink_list, in i915_gem_suspend_late()
142 &i915->mm.purge_list, in i915_gem_suspend_late()
153 * so we need to reset the GPU back to legacy mode. And the only in i915_gem_suspend_late()
154 * known way to disable logical contexts is through a GPU reset. in i915_gem_suspend_late()
157 * always reset the GPU upon unload and suspend. Afterwards we then in i915_gem_suspend_late()
161 * Note that is of the upmost importance that the GPU is idle and in i915_gem_suspend_late()
165 * However, since we are uncertain that resetting the GPU on older in i915_gem_suspend_late()
166 * machines is a good idea, we don't - just in case it leaves the in i915_gem_suspend_late()
176 spin_lock_irqsave(&i915->mm.obj_lock, flags); in i915_gem_suspend_late()
179 if (!(obj->cache_coherent & I915_BO_CACHE_COHERENT_FOR_READ)) in i915_gem_suspend_late()
180 flush |= (obj->read_domains & I915_GEM_DOMAIN_CPU) == 0; in i915_gem_suspend_late()
181 __start_cpu_write(obj); /* presume auto-hibernate */ in i915_gem_suspend_late()
184 spin_unlock_irqrestore(&i915->mm.obj_lock, flags); in i915_gem_suspend_late()
219 with_intel_runtime_pm(&i915->runtime_pm, wakeref) in i915_gem_freeze_late()
220 i915_gem_shrink(NULL, i915, -1UL, NULL, ~0); in i915_gem_freeze_late()
224 list_for_each_entry(obj, &i915->mm.shrink_list, mm.link) in i915_gem_freeze_late()
235 GEM_TRACE("%s\n", dev_name(i915->drm.dev)); in i915_gem_resume()
257 dev_err(i915->drm.dev, in i915_gem_resume()
258 "Failed to re-initialize GPU[%u], declaring it wedged!\n", in i915_gem_resume()