Lines Matching +full:cs +full:- +full:out

1 // SPDX-License-Identifier: MIT
35 struct intel_rc6 *rc6 = &gt->rc6; in live_rc6_manual()
44 struct intel_rps *rps = &gt->rps; in live_rc6_manual()
51 if (!rc6->enabled) in live_rc6_manual()
55 if (IS_VALLEYVIEW(gt->i915) || IS_CHERRYVIEW(gt->i915)) in live_rc6_manual()
58 has_power = librapl_supported(gt->i915); in live_rc6_manual()
59 wakeref = intel_runtime_pm_get(gt->uncore->rpm); in live_rc6_manual()
70 rc0_power = librapl_energy_uJ() - rc0_power; in live_rc6_manual()
74 if ((res[1] - res[0]) >> 10) { in live_rc6_manual()
76 (res[1] - res[0]) >> 10); in live_rc6_manual()
77 err = -EINVAL; in live_rc6_manual()
90 err = -EINVAL; in live_rc6_manual()
104 rc6_power = librapl_energy_uJ() - rc6_power; in live_rc6_manual()
109 intel_uncore_read_fw(gt->uncore, GEN6_RC_STATE), in live_rc6_manual()
110 intel_uncore_read_fw(gt->uncore, GEN6_RC_CONTROL), in live_rc6_manual()
112 err = -EINVAL; in live_rc6_manual()
123 err = -EINVAL; in live_rc6_manual()
132 intel_runtime_pm_put(gt->uncore->rpm, wakeref); in live_rc6_manual()
141 u32 *cs; in __live_rc6_ctx() local
147 cs = intel_ring_begin(rq, 4); in __live_rc6_ctx()
148 if (IS_ERR(cs)) { in __live_rc6_ctx()
150 return cs; in __live_rc6_ctx()
154 if (GRAPHICS_VER(rq->i915) >= 8) in __live_rc6_ctx()
157 *cs++ = cmd; in __live_rc6_ctx()
158 *cs++ = i915_mmio_reg_offset(GEN8_RC6_CTX_INFO); in __live_rc6_ctx()
159 *cs++ = ce->timeline->hwsp_offset + 8; in __live_rc6_ctx()
160 *cs++ = 0; in __live_rc6_ctx()
161 intel_ring_advance(rq, cs); in __live_rc6_ctx()
163 result = rq->hwsp_seqno + 2; in __live_rc6_ctx()
207 if (GRAPHICS_VER(gt->i915) < 8) in live_rc6_ctx_wa()
219 struct i915_gpu_error *error = &gt->i915->gpu_error; in live_rc6_ctx_wa()
229 goto out; in live_rc6_ctx_wa()
238 goto out; in live_rc6_ctx_wa()
241 if (intel_gt_wait_for_idle(gt, HZ / 5) == -ETIME) { in live_rc6_ctx_wa()
243 err = -ETIME; in live_rc6_ctx_wa()
244 goto out; in live_rc6_ctx_wa()
249 engine->name, READ_ONCE(*res)); in live_rc6_ctx_wa()
254 engine->name); in live_rc6_ctx_wa()
255 add_taint_for_CI(gt->i915, TAINT_WARN); in live_rc6_ctx_wa()
256 err = -EIO; in live_rc6_ctx_wa()
257 goto out; in live_rc6_ctx_wa()
262 out: in live_rc6_ctx_wa()