1 // SPDX-License-Identifier: MIT
3 * Copyright © 2019 Intel Corporation
6 #include "debugfs_gt.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"
18 #include "intel_rc6.h"
19 #include "intel_renderstate.h"
20 #include "intel_rps.h"
21 #include "intel_uncore.h"
23 #include "shmem_utils.h"
25 void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private *i915)
28 gt->uncore = &i915->uncore;
30 spin_lock_init(>->irq_lock);
32 INIT_LIST_HEAD(>->closed_vma);
33 spin_lock_init(>->closed_lock);
35 init_llist_head(>->watchdog.list);
36 INIT_WORK(>->watchdog.work, intel_gt_watchdog_work);
38 intel_gt_init_buffer_pool(gt);
39 intel_gt_init_reset(gt);
40 intel_gt_init_requests(gt);
41 intel_gt_init_timelines(gt);
42 intel_gt_pm_init_early(gt);
44 intel_uc_init_early(>->uc);
45 intel_rps_init_early(>->rps);
48 int intel_gt_probe_lmem(struct intel_gt *gt)
50 struct drm_i915_private *i915 = gt->i915;
51 struct intel_memory_region *mem;
55 mem = intel_gt_setup_lmem(gt);
56 if (mem == ERR_PTR(-ENODEV))
57 mem = intel_gt_setup_fake_lmem(gt);
64 "Failed to setup region(%d) type=%d\n",
65 err, INTEL_MEMORY_LOCAL);
69 id = INTEL_REGION_LMEM;
73 intel_memory_region_set_name(mem, "local%u", mem->instance);
75 GEM_BUG_ON(!HAS_REGION(i915, id));
76 GEM_BUG_ON(i915->mm.regions[id]);
77 i915->mm.regions[id] = mem;
82 void intel_gt_init_hw_early(struct intel_gt *gt, struct i915_ggtt *ggtt)
87 static const struct intel_mmio_range icl_l3bank_steering_table[] = {
88 { 0x00B100, 0x00B3FF },
92 static const struct intel_mmio_range xehpsdv_mslice_steering_table[] = {
93 { 0x004000, 0x004AFF },
94 { 0x00C800, 0x00CFFF },
95 { 0x00DD00, 0x00DDFF },
96 { 0x00E900, 0x00FFFF }, /* 0xEA00 - OxEFFF is unused */
100 static const struct intel_mmio_range xehpsdv_lncf_steering_table[] = {
101 { 0x00B000, 0x00B0FF },
102 { 0x00D800, 0x00D8FF },
106 static const struct intel_mmio_range dg2_lncf_steering_table[] = {
107 { 0x00B000, 0x00B0FF },
108 { 0x00D880, 0x00D8FF },
112 static u16 slicemask(struct intel_gt *gt, int count)
114 u64 dss_mask = intel_sseu_get_subslices(>->info.sseu, 0);
116 return intel_slicemask_from_dssmask(dss_mask, count);
119 int intel_gt_init_mmio(struct intel_gt *gt)
121 struct drm_i915_private *i915 = gt->i915;
123 intel_gt_init_clock_frequency(gt);
125 intel_uc_init_mmio(>->uc);
126 intel_sseu_info_init(gt);
129 * An mslice is unavailable only if both the meml3 for the slice is
130 * disabled *and* all of the DSS in the slice (quadrant) are disabled.
132 if (HAS_MSLICES(i915))
133 gt->info.mslice_mask =
134 slicemask(gt, GEN_DSS_PER_MSLICE) |
135 (intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) &
136 GEN12_MEML3_EN_MASK);
139 gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
140 gt->steering_table[LNCF] = dg2_lncf_steering_table;
141 } else if (IS_XEHPSDV(i915)) {
142 gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
143 gt->steering_table[LNCF] = xehpsdv_lncf_steering_table;
144 } else if (GRAPHICS_VER(i915) >= 11 &&
145 GRAPHICS_VER_FULL(i915) < IP_VER(12, 50)) {
146 gt->steering_table[L3BANK] = icl_l3bank_steering_table;
147 gt->info.l3bank_mask =
148 ~intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) &
150 } else if (HAS_MSLICES(i915)) {
151 MISSING_CASE(INTEL_INFO(i915)->platform);
154 return intel_engines_init_mmio(gt);
157 static void init_unused_ring(struct intel_gt *gt, u32 base)
159 struct intel_uncore *uncore = gt->uncore;
161 intel_uncore_write(uncore, RING_CTL(base), 0);
162 intel_uncore_write(uncore, RING_HEAD(base), 0);
163 intel_uncore_write(uncore, RING_TAIL(base), 0);
164 intel_uncore_write(uncore, RING_START(base), 0);
167 static void init_unused_rings(struct intel_gt *gt)
169 struct drm_i915_private *i915 = gt->i915;
172 init_unused_ring(gt, PRB1_BASE);
173 init_unused_ring(gt, SRB0_BASE);
174 init_unused_ring(gt, SRB1_BASE);
175 init_unused_ring(gt, SRB2_BASE);
176 init_unused_ring(gt, SRB3_BASE);
177 } else if (GRAPHICS_VER(i915) == 2) {
178 init_unused_ring(gt, SRB0_BASE);
179 init_unused_ring(gt, SRB1_BASE);
180 } else if (GRAPHICS_VER(i915) == 3) {
181 init_unused_ring(gt, PRB1_BASE);
182 init_unused_ring(gt, PRB2_BASE);
186 int intel_gt_init_hw(struct intel_gt *gt)
188 struct drm_i915_private *i915 = gt->i915;
189 struct intel_uncore *uncore = gt->uncore;
192 gt->last_init_time = ktime_get();
194 /* Double layer security blanket, see i915_gem_init() */
195 intel_uncore_forcewake_get(uncore, FORCEWAKE_ALL);
197 if (HAS_EDRAM(i915) && GRAPHICS_VER(i915) < 9)
198 intel_uncore_rmw(uncore, HSW_IDICR, 0, IDIHASHMSK(0xf));
200 if (IS_HASWELL(i915))
201 intel_uncore_write(uncore,
202 MI_PREDICATE_RESULT_2,
204 LOWER_SLICE_ENABLED : LOWER_SLICE_DISABLED);
206 /* Apply the GT workarounds... */
207 intel_gt_apply_workarounds(gt);
208 /* ...and determine whether they are sticking. */
209 intel_gt_verify_workarounds(gt, "init");
211 intel_gt_init_swizzling(gt);
214 * At least 830 can leave some of the unused rings
215 * "active" (ie. head != tail) after resume which
216 * will prevent c3 entry. Makes sure all unused rings
219 init_unused_rings(gt);
221 ret = i915_ppgtt_init_hw(gt);
223 DRM_ERROR("Enabling PPGTT failed (%d)\n", ret);
227 /* We can't enable contexts until all firmware is loaded */
228 ret = intel_uc_init_hw(>->uc);
230 i915_probe_error(i915, "Enabling uc failed (%d)\n", ret);
237 intel_uncore_forcewake_put(uncore, FORCEWAKE_ALL);
241 static void rmw_set(struct intel_uncore *uncore, i915_reg_t reg, u32 set)
243 intel_uncore_rmw(uncore, reg, 0, set);
246 static void rmw_clear(struct intel_uncore *uncore, i915_reg_t reg, u32 clr)
248 intel_uncore_rmw(uncore, reg, clr, 0);
251 static void clear_register(struct intel_uncore *uncore, i915_reg_t reg)
253 intel_uncore_rmw(uncore, reg, 0, 0);
256 static void gen6_clear_engine_error_register(struct intel_engine_cs *engine)
258 GEN6_RING_FAULT_REG_RMW(engine, RING_FAULT_VALID, 0);
259 GEN6_RING_FAULT_REG_POSTING_READ(engine);
263 intel_gt_clear_error_registers(struct intel_gt *gt,
264 intel_engine_mask_t engine_mask)
266 struct drm_i915_private *i915 = gt->i915;
267 struct intel_uncore *uncore = gt->uncore;
270 if (GRAPHICS_VER(i915) != 2)
271 clear_register(uncore, PGTBL_ER);
273 if (GRAPHICS_VER(i915) < 4)
274 clear_register(uncore, IPEIR(RENDER_RING_BASE));
276 clear_register(uncore, IPEIR_I965);
278 clear_register(uncore, EIR);
279 eir = intel_uncore_read(uncore, EIR);
282 * some errors might have become stuck,
285 DRM_DEBUG_DRIVER("EIR stuck: 0x%08x, masking\n", eir);
286 rmw_set(uncore, EMR, eir);
287 intel_uncore_write(uncore, GEN2_IIR,
288 I915_MASTER_ERROR_INTERRUPT);
291 if (GRAPHICS_VER(i915) >= 12) {
292 rmw_clear(uncore, GEN12_RING_FAULT_REG, RING_FAULT_VALID);
293 intel_uncore_posting_read(uncore, GEN12_RING_FAULT_REG);
294 } else if (GRAPHICS_VER(i915) >= 8) {
295 rmw_clear(uncore, GEN8_RING_FAULT_REG, RING_FAULT_VALID);
296 intel_uncore_posting_read(uncore, GEN8_RING_FAULT_REG);
297 } else if (GRAPHICS_VER(i915) >= 6) {
298 struct intel_engine_cs *engine;
299 enum intel_engine_id id;
301 for_each_engine_masked(engine, gt, engine_mask, id)
302 gen6_clear_engine_error_register(engine);
306 static void gen6_check_faults(struct intel_gt *gt)
308 struct intel_engine_cs *engine;
309 enum intel_engine_id id;
312 for_each_engine(engine, gt, id) {
313 fault = GEN6_RING_FAULT_REG_READ(engine);
314 if (fault & RING_FAULT_VALID) {
315 drm_dbg(&engine->i915->drm, "Unexpected fault\n"
317 "\tAddress space: %s\n"
321 fault & RING_FAULT_GTTSEL_MASK ?
323 RING_FAULT_SRCID(fault),
324 RING_FAULT_FAULT_TYPE(fault));
329 static void gen8_check_faults(struct intel_gt *gt)
331 struct intel_uncore *uncore = gt->uncore;
332 i915_reg_t fault_reg, fault_data0_reg, fault_data1_reg;
335 if (GRAPHICS_VER(gt->i915) >= 12) {
336 fault_reg = GEN12_RING_FAULT_REG;
337 fault_data0_reg = GEN12_FAULT_TLB_DATA0;
338 fault_data1_reg = GEN12_FAULT_TLB_DATA1;
340 fault_reg = GEN8_RING_FAULT_REG;
341 fault_data0_reg = GEN8_FAULT_TLB_DATA0;
342 fault_data1_reg = GEN8_FAULT_TLB_DATA1;
345 fault = intel_uncore_read(uncore, fault_reg);
346 if (fault & RING_FAULT_VALID) {
347 u32 fault_data0, fault_data1;
350 fault_data0 = intel_uncore_read(uncore, fault_data0_reg);
351 fault_data1 = intel_uncore_read(uncore, fault_data1_reg);
353 fault_addr = ((u64)(fault_data1 & FAULT_VA_HIGH_BITS) << 44) |
354 ((u64)fault_data0 << 12);
356 drm_dbg(&uncore->i915->drm, "Unexpected fault\n"
357 "\tAddr: 0x%08x_%08x\n"
358 "\tAddress space: %s\n"
362 upper_32_bits(fault_addr), lower_32_bits(fault_addr),
363 fault_data1 & FAULT_GTT_SEL ? "GGTT" : "PPGTT",
364 GEN8_RING_FAULT_ENGINE_ID(fault),
365 RING_FAULT_SRCID(fault),
366 RING_FAULT_FAULT_TYPE(fault));
370 void intel_gt_check_and_clear_faults(struct intel_gt *gt)
372 struct drm_i915_private *i915 = gt->i915;
374 /* From GEN8 onwards we only have one 'All Engine Fault Register' */
375 if (GRAPHICS_VER(i915) >= 8)
376 gen8_check_faults(gt);
377 else if (GRAPHICS_VER(i915) >= 6)
378 gen6_check_faults(gt);
382 intel_gt_clear_error_registers(gt, ALL_ENGINES);
385 void intel_gt_flush_ggtt_writes(struct intel_gt *gt)
387 struct intel_uncore *uncore = gt->uncore;
388 intel_wakeref_t wakeref;
391 * No actual flushing is required for the GTT write domain for reads
392 * from the GTT domain. Writes to it "immediately" go to main memory
393 * as far as we know, so there's no chipset flush. It also doesn't
394 * land in the GPU render cache.
396 * However, we do have to enforce the order so that all writes through
397 * the GTT land before any writes to the device, such as updates to
400 * We also have to wait a bit for the writes to land from the GTT.
401 * An uncached read (i.e. mmio) seems to be ideal for the round-trip
402 * timing. This issue has only been observed when switching quickly
403 * between GTT writes and CPU reads from inside the kernel on recent hw,
404 * and it appears to only affect discrete GTT blocks (i.e. on LLC
405 * system agents we cannot reproduce this behaviour, until Cannonlake
411 if (INTEL_INFO(gt->i915)->has_coherent_ggtt)
414 intel_gt_chipset_flush(gt);
416 with_intel_runtime_pm_if_in_use(uncore->rpm, wakeref) {
419 spin_lock_irqsave(&uncore->lock, flags);
420 intel_uncore_posting_read_fw(uncore,
421 RING_HEAD(RENDER_RING_BASE));
422 spin_unlock_irqrestore(&uncore->lock, flags);
426 void intel_gt_chipset_flush(struct intel_gt *gt)
429 if (GRAPHICS_VER(gt->i915) < 6)
430 intel_gtt_chipset_flush();
433 void intel_gt_driver_register(struct intel_gt *gt)
435 intel_rps_driver_register(>->rps);
437 debugfs_gt_register(gt);
440 static int intel_gt_init_scratch(struct intel_gt *gt, unsigned int size)
442 struct drm_i915_private *i915 = gt->i915;
443 struct drm_i915_gem_object *obj;
444 struct i915_vma *vma;
447 obj = i915_gem_object_create_lmem(i915, size, I915_BO_ALLOC_VOLATILE);
449 obj = i915_gem_object_create_stolen(i915, size);
451 obj = i915_gem_object_create_internal(i915, size);
453 drm_err(&i915->drm, "Failed to allocate scratch page\n");
457 vma = i915_vma_instance(obj, >->ggtt->vm, NULL);
463 ret = i915_ggtt_pin(vma, NULL, 0, PIN_HIGH);
467 gt->scratch = i915_vma_make_unshrinkable(vma);
472 i915_gem_object_put(obj);
476 static void intel_gt_fini_scratch(struct intel_gt *gt)
478 i915_vma_unpin_and_release(>->scratch, 0);
481 static struct i915_address_space *kernel_vm(struct intel_gt *gt)
483 if (INTEL_PPGTT(gt->i915) > INTEL_PPGTT_ALIASING)
484 return &i915_ppgtt_create(gt)->vm;
486 return i915_vm_get(>->ggtt->vm);
489 static int __engines_record_defaults(struct intel_gt *gt)
491 struct i915_request *requests[I915_NUM_ENGINES] = {};
492 struct intel_engine_cs *engine;
493 enum intel_engine_id id;
497 * As we reset the gpu during very early sanitisation, the current
498 * register state on the GPU should reflect its defaults values.
499 * We load a context onto the hw (with restore-inhibit), then switch
500 * over to a second context to save that default register state. We
501 * can then prime every new context with that state so they all start
502 * from the same default HW values.
505 for_each_engine(engine, gt, id) {
506 struct intel_renderstate so;
507 struct intel_context *ce;
508 struct i915_request *rq;
510 /* We must be able to switch to something! */
511 GEM_BUG_ON(!engine->kernel_context);
513 ce = intel_context_create(engine);
519 err = intel_renderstate_init(&so, ce);
523 rq = i915_request_create(ce);
529 err = intel_engine_emit_ctx_wa(rq);
533 err = intel_renderstate_emit(&so, rq);
538 requests[id] = i915_request_get(rq);
539 i915_request_add(rq);
541 intel_renderstate_fini(&so, ce);
544 intel_context_put(ce);
549 /* Flush the default context image to memory, and enable powersaving. */
550 if (intel_gt_wait_for_idle(gt, I915_GEM_IDLE_TIMEOUT) == -ETIME) {
555 for (id = 0; id < ARRAY_SIZE(requests); id++) {
556 struct i915_request *rq;
563 if (rq->fence.error) {
568 GEM_BUG_ON(!test_bit(CONTEXT_ALLOC_BIT, &rq->context->flags));
569 if (!rq->context->state)
572 /* Keep a copy of the state's backing pages; free the obj */
573 state = shmem_create_from_object(rq->context->state->obj);
575 err = PTR_ERR(state);
578 rq->engine->default_state = state;
583 * If we have to abandon now, we expect the engines to be idle
584 * and ready to be torn-down. The quickest way we can accomplish
585 * this is by declaring ourselves wedged.
588 intel_gt_set_wedged(gt);
590 for (id = 0; id < ARRAY_SIZE(requests); id++) {
591 struct intel_context *ce;
592 struct i915_request *rq;
599 i915_request_put(rq);
600 intel_context_put(ce);
605 static int __engines_verify_workarounds(struct intel_gt *gt)
607 struct intel_engine_cs *engine;
608 enum intel_engine_id id;
611 if (!IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
614 for_each_engine(engine, gt, id) {
615 if (intel_engine_verify_workarounds(engine, "load"))
619 /* Flush and restore the kernel context for safety */
620 if (intel_gt_wait_for_idle(gt, I915_GEM_IDLE_TIMEOUT) == -ETIME)
626 static void __intel_gt_disable(struct intel_gt *gt)
628 intel_gt_set_wedged_on_fini(gt);
630 intel_gt_suspend_prepare(gt);
631 intel_gt_suspend_late(gt);
633 GEM_BUG_ON(intel_gt_pm_is_awake(gt));
636 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout)
638 long remaining_timeout;
640 /* If the device is asleep, we have no requests outstanding */
641 if (!intel_gt_pm_is_awake(gt))
644 while ((timeout = intel_gt_retire_requests_timeout(gt, timeout,
645 &remaining_timeout)) > 0) {
647 if (signal_pending(current))
651 return timeout ? timeout : intel_uc_wait_for_idle(>->uc,
655 int intel_gt_init(struct intel_gt *gt)
659 err = i915_inject_probe_error(gt->i915, -ENODEV);
664 * This is just a security blanket to placate dragons.
665 * On some systems, we very sporadically observe that the first TLBs
666 * used by the CS may be stale, despite us poking the TLB reset. If
667 * we hold the forcewake during initialisation these problems
668 * just magically go away.
670 intel_uncore_forcewake_get(gt->uncore, FORCEWAKE_ALL);
672 err = intel_gt_init_scratch(gt,
673 GRAPHICS_VER(gt->i915) == 2 ? SZ_256K : SZ_4K);
677 intel_gt_pm_init(gt);
679 gt->vm = kernel_vm(gt);
685 err = intel_engines_init(gt);
689 err = intel_uc_init(>->uc);
693 err = intel_gt_resume(gt);
697 err = __engines_record_defaults(gt);
701 err = __engines_verify_workarounds(gt);
705 intel_uc_init_late(>->uc);
707 err = i915_inject_probe_error(gt->i915, -EIO);
711 intel_migrate_init(>->migrate, gt);
715 __intel_gt_disable(gt);
716 intel_uc_fini_hw(>->uc);
718 intel_uc_fini(>->uc);
720 intel_engines_release(gt);
721 i915_vm_put(fetch_and_zero(>->vm));
723 intel_gt_pm_fini(gt);
724 intel_gt_fini_scratch(gt);
727 intel_gt_set_wedged_on_init(gt);
728 intel_uncore_forcewake_put(gt->uncore, FORCEWAKE_ALL);
732 void intel_gt_driver_remove(struct intel_gt *gt)
734 __intel_gt_disable(gt);
736 intel_migrate_fini(>->migrate);
737 intel_uc_driver_remove(>->uc);
739 intel_engines_release(gt);
742 void intel_gt_driver_unregister(struct intel_gt *gt)
744 intel_wakeref_t wakeref;
746 intel_rps_driver_unregister(>->rps);
749 * Upon unregistering the device to prevent any new users, cancel
750 * all in-flight requests so that we can quickly unbind the active
753 intel_gt_set_wedged(gt);
755 /* Scrub all HW state upon release */
756 with_intel_runtime_pm(gt->uncore->rpm, wakeref)
757 __intel_gt_reset(gt, ALL_ENGINES);
760 void intel_gt_driver_release(struct intel_gt *gt)
762 struct i915_address_space *vm;
764 vm = fetch_and_zero(>->vm);
765 if (vm) /* FIXME being called twice on error paths :( */
768 intel_gt_pm_fini(gt);
769 intel_gt_fini_scratch(gt);
770 intel_gt_fini_buffer_pool(gt);
773 void intel_gt_driver_late_release(struct intel_gt *gt)
775 /* We need to wait for inflight RCU frees to release their grip */
778 intel_uc_driver_late_release(>->uc);
779 intel_gt_fini_requests(gt);
780 intel_gt_fini_reset(gt);
781 intel_gt_fini_timelines(gt);
782 intel_engines_free(gt);
786 * intel_gt_reg_needs_read_steering - determine whether a register read
787 * requires explicit steering
789 * @reg: the register to check steering requirements for
790 * @type: type of multicast steering to check
792 * Determines whether @reg needs explicit steering of a specific type for
795 * Returns false if @reg does not belong to a register range of the given
796 * steering type, or if the default (subslice-based) steering IDs are suitable
797 * for @type steering too.
799 static bool intel_gt_reg_needs_read_steering(struct intel_gt *gt,
801 enum intel_steering_type type)
803 const u32 offset = i915_mmio_reg_offset(reg);
804 const struct intel_mmio_range *entry;
806 if (likely(!intel_gt_needs_read_steering(gt, type)))
809 for (entry = gt->steering_table[type]; entry->end; entry++) {
810 if (offset >= entry->start && offset <= entry->end)
818 * intel_gt_get_valid_steering - determines valid IDs for a class of MCR steering
820 * @type: multicast register type
821 * @sliceid: Slice ID returned
822 * @subsliceid: Subslice ID returned
824 * Determines sliceid and subsliceid values that will steer reads
825 * of a specific multicast register class to a valid value.
827 static void intel_gt_get_valid_steering(struct intel_gt *gt,
828 enum intel_steering_type type,
829 u8 *sliceid, u8 *subsliceid)
833 GEM_DEBUG_WARN_ON(!gt->info.l3bank_mask); /* should be impossible! */
835 *sliceid = 0; /* unused */
836 *subsliceid = __ffs(gt->info.l3bank_mask);
839 GEM_DEBUG_WARN_ON(!gt->info.mslice_mask); /* should be impossible! */
841 *sliceid = __ffs(gt->info.mslice_mask);
842 *subsliceid = 0; /* unused */
845 GEM_DEBUG_WARN_ON(!gt->info.mslice_mask); /* should be impossible! */
848 * An LNCF is always present if its mslice is present, so we
849 * can safely just steer to LNCF 0 in all cases.
851 *sliceid = __ffs(gt->info.mslice_mask) << 1;
852 *subsliceid = 0; /* unused */
862 * intel_gt_read_register_fw - reads a GT register with support for multicast
864 * @reg: register to read
866 * This function will read a GT register. If the register is a multicast
867 * register, the read will be steered to a valid instance (i.e., one that
868 * isn't fused off or powered down by power gating).
870 * Returns the value from a valid instance of @reg.
872 u32 intel_gt_read_register_fw(struct intel_gt *gt, i915_reg_t reg)
875 u8 sliceid, subsliceid;
877 for (type = 0; type < NUM_STEERING_TYPES; type++) {
878 if (intel_gt_reg_needs_read_steering(gt, reg, type)) {
879 intel_gt_get_valid_steering(gt, type, &sliceid,
881 return intel_uncore_read_with_mcr_steering_fw(gt->uncore,
888 return intel_uncore_read_fw(gt->uncore, reg);
891 void intel_gt_info_print(const struct intel_gt_info *info,
892 struct drm_printer *p)
894 drm_printf(p, "available engines: %x\n", info->engine_mask);
896 intel_sseu_dump(&info->sseu, p);