1 // SPDX-License-Identifier: MIT
3 * Copyright © 2019 Intel Corporation
6 #include "intel_gt_debugfs.h"
8 #include "gem/i915_gem_lmem.h"
10 #include "intel_context.h"
12 #include "intel_gt_buffer_pool.h"
13 #include "intel_gt_clock_utils.h"
14 #include "intel_gt_pm.h"
15 #include "intel_gt_requests.h"
16 #include "intel_migrate.h"
17 #include "intel_mocs.h"
19 #include "intel_rc6.h"
20 #include "intel_renderstate.h"
21 #include "intel_rps.h"
22 #include "intel_uncore.h"
23 #include "shmem_utils.h"
24 #include "pxp/intel_pxp.h"
26 void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private *i915)
29 gt->uncore = &i915->uncore;
31 spin_lock_init(>->irq_lock);
33 INIT_LIST_HEAD(>->closed_vma);
34 spin_lock_init(>->closed_lock);
36 init_llist_head(>->watchdog.list);
37 INIT_WORK(>->watchdog.work, intel_gt_watchdog_work);
39 intel_gt_init_buffer_pool(gt);
40 intel_gt_init_reset(gt);
41 intel_gt_init_requests(gt);
42 intel_gt_init_timelines(gt);
43 intel_gt_pm_init_early(gt);
45 intel_uc_init_early(>->uc);
46 intel_rps_init_early(>->rps);
49 int intel_gt_probe_lmem(struct intel_gt *gt)
51 struct drm_i915_private *i915 = gt->i915;
52 struct intel_memory_region *mem;
56 mem = intel_gt_setup_lmem(gt);
57 if (mem == ERR_PTR(-ENODEV))
58 mem = intel_gt_setup_fake_lmem(gt);
65 "Failed to setup region(%d) type=%d\n",
66 err, INTEL_MEMORY_LOCAL);
70 id = INTEL_REGION_LMEM;
74 intel_memory_region_set_name(mem, "local%u", mem->instance);
76 GEM_BUG_ON(!HAS_REGION(i915, id));
77 GEM_BUG_ON(i915->mm.regions[id]);
78 i915->mm.regions[id] = mem;
83 void intel_gt_init_hw_early(struct intel_gt *gt, struct i915_ggtt *ggtt)
88 static const struct intel_mmio_range icl_l3bank_steering_table[] = {
89 { 0x00B100, 0x00B3FF },
93 static const struct intel_mmio_range xehpsdv_mslice_steering_table[] = {
94 { 0x004000, 0x004AFF },
95 { 0x00C800, 0x00CFFF },
96 { 0x00DD00, 0x00DDFF },
97 { 0x00E900, 0x00FFFF }, /* 0xEA00 - OxEFFF is unused */
101 static const struct intel_mmio_range xehpsdv_lncf_steering_table[] = {
102 { 0x00B000, 0x00B0FF },
103 { 0x00D800, 0x00D8FF },
107 static const struct intel_mmio_range dg2_lncf_steering_table[] = {
108 { 0x00B000, 0x00B0FF },
109 { 0x00D880, 0x00D8FF },
113 static u16 slicemask(struct intel_gt *gt, int count)
115 u64 dss_mask = intel_sseu_get_subslices(>->info.sseu, 0);
117 return intel_slicemask_from_dssmask(dss_mask, count);
120 int intel_gt_init_mmio(struct intel_gt *gt)
122 struct drm_i915_private *i915 = gt->i915;
124 intel_gt_init_clock_frequency(gt);
126 intel_uc_init_mmio(>->uc);
127 intel_sseu_info_init(gt);
130 * An mslice is unavailable only if both the meml3 for the slice is
131 * disabled *and* all of the DSS in the slice (quadrant) are disabled.
133 if (HAS_MSLICES(i915))
134 gt->info.mslice_mask =
135 slicemask(gt, GEN_DSS_PER_MSLICE) |
136 (intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) &
137 GEN12_MEML3_EN_MASK);
140 gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
141 gt->steering_table[LNCF] = dg2_lncf_steering_table;
142 } else if (IS_XEHPSDV(i915)) {
143 gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
144 gt->steering_table[LNCF] = xehpsdv_lncf_steering_table;
145 } else if (GRAPHICS_VER(i915) >= 11 &&
146 GRAPHICS_VER_FULL(i915) < IP_VER(12, 50)) {
147 gt->steering_table[L3BANK] = icl_l3bank_steering_table;
148 gt->info.l3bank_mask =
149 ~intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) &
151 } else if (HAS_MSLICES(i915)) {
152 MISSING_CASE(INTEL_INFO(i915)->platform);
155 return intel_engines_init_mmio(gt);
158 static void init_unused_ring(struct intel_gt *gt, u32 base)
160 struct intel_uncore *uncore = gt->uncore;
162 intel_uncore_write(uncore, RING_CTL(base), 0);
163 intel_uncore_write(uncore, RING_HEAD(base), 0);
164 intel_uncore_write(uncore, RING_TAIL(base), 0);
165 intel_uncore_write(uncore, RING_START(base), 0);
168 static void init_unused_rings(struct intel_gt *gt)
170 struct drm_i915_private *i915 = gt->i915;
173 init_unused_ring(gt, PRB1_BASE);
174 init_unused_ring(gt, SRB0_BASE);
175 init_unused_ring(gt, SRB1_BASE);
176 init_unused_ring(gt, SRB2_BASE);
177 init_unused_ring(gt, SRB3_BASE);
178 } else if (GRAPHICS_VER(i915) == 2) {
179 init_unused_ring(gt, SRB0_BASE);
180 init_unused_ring(gt, SRB1_BASE);
181 } else if (GRAPHICS_VER(i915) == 3) {
182 init_unused_ring(gt, PRB1_BASE);
183 init_unused_ring(gt, PRB2_BASE);
187 int intel_gt_init_hw(struct intel_gt *gt)
189 struct drm_i915_private *i915 = gt->i915;
190 struct intel_uncore *uncore = gt->uncore;
193 gt->last_init_time = ktime_get();
195 /* Double layer security blanket, see i915_gem_init() */
196 intel_uncore_forcewake_get(uncore, FORCEWAKE_ALL);
198 if (HAS_EDRAM(i915) && GRAPHICS_VER(i915) < 9)
199 intel_uncore_rmw(uncore, HSW_IDICR, 0, IDIHASHMSK(0xf));
201 if (IS_HASWELL(i915))
202 intel_uncore_write(uncore,
203 MI_PREDICATE_RESULT_2,
205 LOWER_SLICE_ENABLED : LOWER_SLICE_DISABLED);
207 /* Apply the GT workarounds... */
208 intel_gt_apply_workarounds(gt);
209 /* ...and determine whether they are sticking. */
210 intel_gt_verify_workarounds(gt, "init");
212 intel_gt_init_swizzling(gt);
215 * At least 830 can leave some of the unused rings
216 * "active" (ie. head != tail) after resume which
217 * will prevent c3 entry. Makes sure all unused rings
220 init_unused_rings(gt);
222 ret = i915_ppgtt_init_hw(gt);
224 DRM_ERROR("Enabling PPGTT failed (%d)\n", ret);
228 /* We can't enable contexts until all firmware is loaded */
229 ret = intel_uc_init_hw(>->uc);
231 i915_probe_error(i915, "Enabling uc failed (%d)\n", ret);
238 intel_uncore_forcewake_put(uncore, FORCEWAKE_ALL);
242 static void rmw_set(struct intel_uncore *uncore, i915_reg_t reg, u32 set)
244 intel_uncore_rmw(uncore, reg, 0, set);
247 static void rmw_clear(struct intel_uncore *uncore, i915_reg_t reg, u32 clr)
249 intel_uncore_rmw(uncore, reg, clr, 0);
252 static void clear_register(struct intel_uncore *uncore, i915_reg_t reg)
254 intel_uncore_rmw(uncore, reg, 0, 0);
257 static void gen6_clear_engine_error_register(struct intel_engine_cs *engine)
259 GEN6_RING_FAULT_REG_RMW(engine, RING_FAULT_VALID, 0);
260 GEN6_RING_FAULT_REG_POSTING_READ(engine);
264 intel_gt_clear_error_registers(struct intel_gt *gt,
265 intel_engine_mask_t engine_mask)
267 struct drm_i915_private *i915 = gt->i915;
268 struct intel_uncore *uncore = gt->uncore;
271 if (GRAPHICS_VER(i915) != 2)
272 clear_register(uncore, PGTBL_ER);
274 if (GRAPHICS_VER(i915) < 4)
275 clear_register(uncore, IPEIR(RENDER_RING_BASE));
277 clear_register(uncore, IPEIR_I965);
279 clear_register(uncore, EIR);
280 eir = intel_uncore_read(uncore, EIR);
283 * some errors might have become stuck,
286 DRM_DEBUG_DRIVER("EIR stuck: 0x%08x, masking\n", eir);
287 rmw_set(uncore, EMR, eir);
288 intel_uncore_write(uncore, GEN2_IIR,
289 I915_MASTER_ERROR_INTERRUPT);
292 if (GRAPHICS_VER(i915) >= 12) {
293 rmw_clear(uncore, GEN12_RING_FAULT_REG, RING_FAULT_VALID);
294 intel_uncore_posting_read(uncore, GEN12_RING_FAULT_REG);
295 } else if (GRAPHICS_VER(i915) >= 8) {
296 rmw_clear(uncore, GEN8_RING_FAULT_REG, RING_FAULT_VALID);
297 intel_uncore_posting_read(uncore, GEN8_RING_FAULT_REG);
298 } else if (GRAPHICS_VER(i915) >= 6) {
299 struct intel_engine_cs *engine;
300 enum intel_engine_id id;
302 for_each_engine_masked(engine, gt, engine_mask, id)
303 gen6_clear_engine_error_register(engine);
307 static void gen6_check_faults(struct intel_gt *gt)
309 struct intel_engine_cs *engine;
310 enum intel_engine_id id;
313 for_each_engine(engine, gt, id) {
314 fault = GEN6_RING_FAULT_REG_READ(engine);
315 if (fault & RING_FAULT_VALID) {
316 drm_dbg(&engine->i915->drm, "Unexpected fault\n"
318 "\tAddress space: %s\n"
322 fault & RING_FAULT_GTTSEL_MASK ?
324 RING_FAULT_SRCID(fault),
325 RING_FAULT_FAULT_TYPE(fault));
330 static void gen8_check_faults(struct intel_gt *gt)
332 struct intel_uncore *uncore = gt->uncore;
333 i915_reg_t fault_reg, fault_data0_reg, fault_data1_reg;
336 if (GRAPHICS_VER(gt->i915) >= 12) {
337 fault_reg = GEN12_RING_FAULT_REG;
338 fault_data0_reg = GEN12_FAULT_TLB_DATA0;
339 fault_data1_reg = GEN12_FAULT_TLB_DATA1;
341 fault_reg = GEN8_RING_FAULT_REG;
342 fault_data0_reg = GEN8_FAULT_TLB_DATA0;
343 fault_data1_reg = GEN8_FAULT_TLB_DATA1;
346 fault = intel_uncore_read(uncore, fault_reg);
347 if (fault & RING_FAULT_VALID) {
348 u32 fault_data0, fault_data1;
351 fault_data0 = intel_uncore_read(uncore, fault_data0_reg);
352 fault_data1 = intel_uncore_read(uncore, fault_data1_reg);
354 fault_addr = ((u64)(fault_data1 & FAULT_VA_HIGH_BITS) << 44) |
355 ((u64)fault_data0 << 12);
357 drm_dbg(&uncore->i915->drm, "Unexpected fault\n"
358 "\tAddr: 0x%08x_%08x\n"
359 "\tAddress space: %s\n"
363 upper_32_bits(fault_addr), lower_32_bits(fault_addr),
364 fault_data1 & FAULT_GTT_SEL ? "GGTT" : "PPGTT",
365 GEN8_RING_FAULT_ENGINE_ID(fault),
366 RING_FAULT_SRCID(fault),
367 RING_FAULT_FAULT_TYPE(fault));
371 void intel_gt_check_and_clear_faults(struct intel_gt *gt)
373 struct drm_i915_private *i915 = gt->i915;
375 /* From GEN8 onwards we only have one 'All Engine Fault Register' */
376 if (GRAPHICS_VER(i915) >= 8)
377 gen8_check_faults(gt);
378 else if (GRAPHICS_VER(i915) >= 6)
379 gen6_check_faults(gt);
383 intel_gt_clear_error_registers(gt, ALL_ENGINES);
386 void intel_gt_flush_ggtt_writes(struct intel_gt *gt)
388 struct intel_uncore *uncore = gt->uncore;
389 intel_wakeref_t wakeref;
392 * No actual flushing is required for the GTT write domain for reads
393 * from the GTT domain. Writes to it "immediately" go to main memory
394 * as far as we know, so there's no chipset flush. It also doesn't
395 * land in the GPU render cache.
397 * However, we do have to enforce the order so that all writes through
398 * the GTT land before any writes to the device, such as updates to
401 * We also have to wait a bit for the writes to land from the GTT.
402 * An uncached read (i.e. mmio) seems to be ideal for the round-trip
403 * timing. This issue has only been observed when switching quickly
404 * between GTT writes and CPU reads from inside the kernel on recent hw,
405 * and it appears to only affect discrete GTT blocks (i.e. on LLC
406 * system agents we cannot reproduce this behaviour, until Cannonlake
412 if (INTEL_INFO(gt->i915)->has_coherent_ggtt)
415 intel_gt_chipset_flush(gt);
417 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) {
420 spin_lock_irqsave(&uncore->lock, flags);
421 intel_uncore_posting_read_fw(uncore,
422 RING_HEAD(RENDER_RING_BASE));
423 spin_unlock_irqrestore(&uncore->lock, flags);
427 void intel_gt_chipset_flush(struct intel_gt *gt)
430 if (GRAPHICS_VER(gt->i915) < 6)
431 intel_gtt_chipset_flush();
434 void intel_gt_driver_register(struct intel_gt *gt)
436 intel_rps_driver_register(>->rps);
438 intel_gt_debugfs_register(gt);
441 static int intel_gt_init_scratch(struct intel_gt *gt, unsigned int size)
443 struct drm_i915_private *i915 = gt->i915;
444 struct drm_i915_gem_object *obj;
445 struct i915_vma *vma;
448 obj = i915_gem_object_create_lmem(i915, size, I915_BO_ALLOC_VOLATILE);
450 obj = i915_gem_object_create_stolen(i915, size);
452 obj = i915_gem_object_create_internal(i915, size);
454 drm_err(&i915->drm, "Failed to allocate scratch page\n");
458 vma = i915_vma_instance(obj, >->ggtt->vm, NULL);
464 ret = i915_ggtt_pin(vma, NULL, 0, PIN_HIGH);
468 gt->scratch = i915_vma_make_unshrinkable(vma);
473 i915_gem_object_put(obj);
477 static void intel_gt_fini_scratch(struct intel_gt *gt)
479 i915_vma_unpin_and_release(>->scratch, 0);
482 static struct i915_address_space *kernel_vm(struct intel_gt *gt)
484 if (INTEL_PPGTT(gt->i915) > INTEL_PPGTT_ALIASING)
485 return &i915_ppgtt_create(gt, I915_BO_ALLOC_PM_EARLY)->vm;
487 return i915_vm_get(>->ggtt->vm);
490 static int __engines_record_defaults(struct intel_gt *gt)
492 struct i915_request *requests[I915_NUM_ENGINES] = {};
493 struct intel_engine_cs *engine;
494 enum intel_engine_id id;
498 * As we reset the gpu during very early sanitisation, the current
499 * register state on the GPU should reflect its defaults values.
500 * We load a context onto the hw (with restore-inhibit), then switch
501 * over to a second context to save that default register state. We
502 * can then prime every new context with that state so they all start
503 * from the same default HW values.
506 for_each_engine(engine, gt, id) {
507 struct intel_renderstate so;
508 struct intel_context *ce;
509 struct i915_request *rq;
511 /* We must be able to switch to something! */
512 GEM_BUG_ON(!engine->kernel_context);
514 ce = intel_context_create(engine);
520 err = intel_renderstate_init(&so, ce);
524 rq = i915_request_create(ce);
530 err = intel_engine_emit_ctx_wa(rq);
534 err = intel_renderstate_emit(&so, rq);
539 requests[id] = i915_request_get(rq);
540 i915_request_add(rq);
542 intel_renderstate_fini(&so, ce);
545 intel_context_put(ce);
550 /* Flush the default context image to memory, and enable powersaving. */
551 if (intel_gt_wait_for_idle(gt, I915_GEM_IDLE_TIMEOUT) == -ETIME) {
556 for (id = 0; id < ARRAY_SIZE(requests); id++) {
557 struct i915_request *rq;
564 if (rq->fence.error) {
569 GEM_BUG_ON(!test_bit(CONTEXT_ALLOC_BIT, &rq->context->flags));
570 if (!rq->context->state)
573 /* Keep a copy of the state's backing pages; free the obj */
574 state = shmem_create_from_object(rq->context->state->obj);
576 err = PTR_ERR(state);
579 rq->engine->default_state = state;
584 * If we have to abandon now, we expect the engines to be idle
585 * and ready to be torn-down. The quickest way we can accomplish
586 * this is by declaring ourselves wedged.
589 intel_gt_set_wedged(gt);
591 for (id = 0; id < ARRAY_SIZE(requests); id++) {
592 struct intel_context *ce;
593 struct i915_request *rq;
600 i915_request_put(rq);
601 intel_context_put(ce);
606 static int __engines_verify_workarounds(struct intel_gt *gt)
608 struct intel_engine_cs *engine;
609 enum intel_engine_id id;
612 if (!IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
615 for_each_engine(engine, gt, id) {
616 if (intel_engine_verify_workarounds(engine, "load"))
620 /* Flush and restore the kernel context for safety */
621 if (intel_gt_wait_for_idle(gt, I915_GEM_IDLE_TIMEOUT) == -ETIME)
627 static void __intel_gt_disable(struct intel_gt *gt)
629 intel_gt_set_wedged_on_fini(gt);
631 intel_gt_suspend_prepare(gt);
632 intel_gt_suspend_late(gt);
634 GEM_BUG_ON(intel_gt_pm_is_awake(gt));
637 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout)
639 long remaining_timeout;
641 /* If the device is asleep, we have no requests outstanding */
642 if (!intel_gt_pm_is_awake(gt))
645 while ((timeout = intel_gt_retire_requests_timeout(gt, timeout,
646 &remaining_timeout)) > 0) {
648 if (signal_pending(current))
652 return timeout ? timeout : intel_uc_wait_for_idle(>->uc,
656 int intel_gt_init(struct intel_gt *gt)
660 err = i915_inject_probe_error(gt->i915, -ENODEV);
664 intel_gt_init_workarounds(gt);
667 * This is just a security blanket to placate dragons.
668 * On some systems, we very sporadically observe that the first TLBs
669 * used by the CS may be stale, despite us poking the TLB reset. If
670 * we hold the forcewake during initialisation these problems
671 * just magically go away.
673 intel_uncore_forcewake_get(gt->uncore, FORCEWAKE_ALL);
675 err = intel_gt_init_scratch(gt,
676 GRAPHICS_VER(gt->i915) == 2 ? SZ_256K : SZ_4K);
680 intel_gt_pm_init(gt);
682 gt->vm = kernel_vm(gt);
688 intel_set_mocs_index(gt);
690 err = intel_engines_init(gt);
694 err = intel_uc_init(>->uc);
698 err = intel_gt_resume(gt);
702 err = __engines_record_defaults(gt);
706 err = __engines_verify_workarounds(gt);
710 intel_uc_init_late(>->uc);
712 err = i915_inject_probe_error(gt->i915, -EIO);
716 intel_migrate_init(>->migrate, gt);
718 intel_pxp_init(>->pxp);
722 __intel_gt_disable(gt);
723 intel_uc_fini_hw(>->uc);
725 intel_uc_fini(>->uc);
727 intel_engines_release(gt);
728 i915_vm_put(fetch_and_zero(>->vm));
730 intel_gt_pm_fini(gt);
731 intel_gt_fini_scratch(gt);
734 intel_gt_set_wedged_on_init(gt);
735 intel_uncore_forcewake_put(gt->uncore, FORCEWAKE_ALL);
739 void intel_gt_driver_remove(struct intel_gt *gt)
741 __intel_gt_disable(gt);
743 intel_migrate_fini(>->migrate);
744 intel_uc_driver_remove(>->uc);
746 intel_engines_release(gt);
748 intel_gt_flush_buffer_pool(gt);
751 void intel_gt_driver_unregister(struct intel_gt *gt)
753 intel_wakeref_t wakeref;
755 intel_rps_driver_unregister(>->rps);
757 intel_pxp_fini(>->pxp);
760 * Upon unregistering the device to prevent any new users, cancel
761 * all in-flight requests so that we can quickly unbind the active
764 intel_gt_set_wedged_on_fini(gt);
766 /* Scrub all HW state upon release */
767 with_intel_runtime_pm(gt->uncore->rpm, wakeref)
768 __intel_gt_reset(gt, ALL_ENGINES);
771 void intel_gt_driver_release(struct intel_gt *gt)
773 struct i915_address_space *vm;
775 vm = fetch_and_zero(>->vm);
776 if (vm) /* FIXME being called twice on error paths :( */
779 intel_wa_list_free(>->wa_list);
780 intel_gt_pm_fini(gt);
781 intel_gt_fini_scratch(gt);
782 intel_gt_fini_buffer_pool(gt);
785 void intel_gt_driver_late_release(struct intel_gt *gt)
787 /* We need to wait for inflight RCU frees to release their grip */
790 intel_uc_driver_late_release(>->uc);
791 intel_gt_fini_requests(gt);
792 intel_gt_fini_reset(gt);
793 intel_gt_fini_timelines(gt);
794 intel_engines_free(gt);
798 * intel_gt_reg_needs_read_steering - determine whether a register read
799 * requires explicit steering
801 * @reg: the register to check steering requirements for
802 * @type: type of multicast steering to check
804 * Determines whether @reg needs explicit steering of a specific type for
807 * Returns false if @reg does not belong to a register range of the given
808 * steering type, or if the default (subslice-based) steering IDs are suitable
809 * for @type steering too.
811 static bool intel_gt_reg_needs_read_steering(struct intel_gt *gt,
813 enum intel_steering_type type)
815 const u32 offset = i915_mmio_reg_offset(reg);
816 const struct intel_mmio_range *entry;
818 if (likely(!intel_gt_needs_read_steering(gt, type)))
821 for (entry = gt->steering_table[type]; entry->end; entry++) {
822 if (offset >= entry->start && offset <= entry->end)
830 * intel_gt_get_valid_steering - determines valid IDs for a class of MCR steering
832 * @type: multicast register type
833 * @sliceid: Slice ID returned
834 * @subsliceid: Subslice ID returned
836 * Determines sliceid and subsliceid values that will steer reads
837 * of a specific multicast register class to a valid value.
839 static void intel_gt_get_valid_steering(struct intel_gt *gt,
840 enum intel_steering_type type,
841 u8 *sliceid, u8 *subsliceid)
845 GEM_DEBUG_WARN_ON(!gt->info.l3bank_mask); /* should be impossible! */
847 *sliceid = 0; /* unused */
848 *subsliceid = __ffs(gt->info.l3bank_mask);
851 GEM_DEBUG_WARN_ON(!gt->info.mslice_mask); /* should be impossible! */
853 *sliceid = __ffs(gt->info.mslice_mask);
854 *subsliceid = 0; /* unused */
857 GEM_DEBUG_WARN_ON(!gt->info.mslice_mask); /* should be impossible! */
860 * An LNCF is always present if its mslice is present, so we
861 * can safely just steer to LNCF 0 in all cases.
863 *sliceid = __ffs(gt->info.mslice_mask) << 1;
864 *subsliceid = 0; /* unused */
874 * intel_gt_read_register_fw - reads a GT register with support for multicast
876 * @reg: register to read
878 * This function will read a GT register. If the register is a multicast
879 * register, the read will be steered to a valid instance (i.e., one that
880 * isn't fused off or powered down by power gating).
882 * Returns the value from a valid instance of @reg.
884 u32 intel_gt_read_register_fw(struct intel_gt *gt, i915_reg_t reg)
887 u8 sliceid, subsliceid;
889 for (type = 0; type < NUM_STEERING_TYPES; type++) {
890 if (intel_gt_reg_needs_read_steering(gt, reg, type)) {
891 intel_gt_get_valid_steering(gt, type, &sliceid,
893 return intel_uncore_read_with_mcr_steering_fw(gt->uncore,
900 return intel_uncore_read_fw(gt->uncore, reg);
903 void intel_gt_info_print(const struct intel_gt_info *info,
904 struct drm_printer *p)
906 drm_printf(p, "available engines: %x\n", info->engine_mask);
908 intel_sseu_dump(&info->sseu, p);