Lines Matching +full:cs +full:- +full:out
1 // SPDX-License-Identifier: MIT
34 struct intel_rc6 *rc6 = >->rc6; in live_rc6_manual()
47 if (!rc6->enabled) in live_rc6_manual()
51 if (IS_VALLEYVIEW(gt->i915) || IS_CHERRYVIEW(gt->i915)) in live_rc6_manual()
54 has_power = librapl_supported(gt->i915); in live_rc6_manual()
55 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in live_rc6_manual()
66 rc0_power = librapl_energy_uJ() - rc0_power; in live_rc6_manual()
69 if ((res[1] - res[0]) >> 10) { in live_rc6_manual()
71 (res[1] - res[0]) >> 10); in live_rc6_manual()
72 err = -EINVAL; in live_rc6_manual()
81 err = -EINVAL; in live_rc6_manual()
94 rc6_power = librapl_energy_uJ() - rc6_power; in live_rc6_manual()
99 intel_uncore_read_fw(gt->uncore, GEN6_RC_STATE), in live_rc6_manual()
100 intel_uncore_read_fw(gt->uncore, GEN6_RC_CONTROL), in live_rc6_manual()
102 err = -EINVAL; in live_rc6_manual()
112 err = -EINVAL; in live_rc6_manual()
121 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in live_rc6_manual()
130 u32 *cs; in __live_rc6_ctx() local
136 cs = intel_ring_begin(rq, 4); in __live_rc6_ctx()
137 if (IS_ERR(cs)) { in __live_rc6_ctx()
139 return cs; in __live_rc6_ctx()
143 if (GRAPHICS_VER(rq->i915) >= 8) in __live_rc6_ctx()
146 *cs++ = cmd; in __live_rc6_ctx()
147 *cs++ = i915_mmio_reg_offset(GEN8_RC6_CTX_INFO); in __live_rc6_ctx()
148 *cs++ = ce->timeline->hwsp_offset + 8; in __live_rc6_ctx()
149 *cs++ = 0; in __live_rc6_ctx()
150 intel_ring_advance(rq, cs); in __live_rc6_ctx()
152 result = rq->hwsp_seqno + 2; in __live_rc6_ctx()
196 if (GRAPHICS_VER(gt->i915) < 8) in live_rc6_ctx_wa()
208 struct i915_gpu_error *error = >->i915->gpu_error; in live_rc6_ctx_wa()
218 goto out; in live_rc6_ctx_wa()
227 goto out; in live_rc6_ctx_wa()
230 if (intel_gt_wait_for_idle(gt, HZ / 5) == -ETIME) { in live_rc6_ctx_wa()
232 err = -ETIME; in live_rc6_ctx_wa()
233 goto out; in live_rc6_ctx_wa()
238 engine->name, READ_ONCE(*res)); in live_rc6_ctx_wa()
243 engine->name); in live_rc6_ctx_wa()
244 add_taint_for_CI(gt->i915, TAINT_WARN); in live_rc6_ctx_wa()
245 err = -EIO; in live_rc6_ctx_wa()
246 goto out; in live_rc6_ctx_wa()
251 out: in live_rc6_ctx_wa()