Lines Matching refs:gt

44 	struct intel_gt *gt = guc_to_gt(guc);  in intel_guc_notify()  local
52 intel_uncore_write(gt->uncore, guc->notify_reg, GUC_SEND_TRIGGER); in intel_guc_notify()
66 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_init_send_regs() local
74 fw_domains |= intel_uncore_forcewake_for_reg(gt->uncore, in intel_guc_init_send_regs()
83 struct intel_gt *gt = guc_to_gt(guc); in gen9_reset_guc_interrupts() local
85 assert_rpm_wakelock_held(&gt->i915->runtime_pm); in gen9_reset_guc_interrupts()
87 spin_lock_irq(gt->irq_lock); in gen9_reset_guc_interrupts()
88 gen6_gt_pm_reset_iir(gt, gt->pm_guc_events); in gen9_reset_guc_interrupts()
89 spin_unlock_irq(gt->irq_lock); in gen9_reset_guc_interrupts()
94 struct intel_gt *gt = guc_to_gt(guc); in gen9_enable_guc_interrupts() local
96 assert_rpm_wakelock_held(&gt->i915->runtime_pm); in gen9_enable_guc_interrupts()
98 spin_lock_irq(gt->irq_lock); in gen9_enable_guc_interrupts()
99 guc_WARN_ON_ONCE(guc, intel_uncore_read(gt->uncore, GEN8_GT_IIR(2)) & in gen9_enable_guc_interrupts()
100 gt->pm_guc_events); in gen9_enable_guc_interrupts()
101 gen6_gt_pm_enable_irq(gt, gt->pm_guc_events); in gen9_enable_guc_interrupts()
102 spin_unlock_irq(gt->irq_lock); in gen9_enable_guc_interrupts()
109 struct intel_gt *gt = guc_to_gt(guc); in gen9_disable_guc_interrupts() local
111 assert_rpm_wakelock_held(&gt->i915->runtime_pm); in gen9_disable_guc_interrupts()
114 spin_lock_irq(gt->irq_lock); in gen9_disable_guc_interrupts()
116 gen6_gt_pm_disable_irq(gt, gt->pm_guc_events); in gen9_disable_guc_interrupts()
118 spin_unlock_irq(gt->irq_lock); in gen9_disable_guc_interrupts()
119 intel_synchronize_irq(gt->i915); in gen9_disable_guc_interrupts()
124 static bool __gen11_reset_guc_interrupts(struct intel_gt *gt) in __gen11_reset_guc_interrupts() argument
126 u32 irq = gt->type == GT_MEDIA ? MTL_MGUC : GEN11_GUC; in __gen11_reset_guc_interrupts()
128 lockdep_assert_held(gt->irq_lock); in __gen11_reset_guc_interrupts()
129 return gen11_gt_reset_one_iir(gt, 0, irq); in __gen11_reset_guc_interrupts()
134 struct intel_gt *gt = guc_to_gt(guc); in gen11_reset_guc_interrupts() local
136 spin_lock_irq(gt->irq_lock); in gen11_reset_guc_interrupts()
137 __gen11_reset_guc_interrupts(gt); in gen11_reset_guc_interrupts()
138 spin_unlock_irq(gt->irq_lock); in gen11_reset_guc_interrupts()
143 struct intel_gt *gt = guc_to_gt(guc); in gen11_enable_guc_interrupts() local
145 spin_lock_irq(gt->irq_lock); in gen11_enable_guc_interrupts()
146 __gen11_reset_guc_interrupts(gt); in gen11_enable_guc_interrupts()
147 spin_unlock_irq(gt->irq_lock); in gen11_enable_guc_interrupts()
154 struct intel_gt *gt = guc_to_gt(guc); in gen11_disable_guc_interrupts() local
157 intel_synchronize_irq(gt->i915); in gen11_disable_guc_interrupts()
164 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_init_early() local
165 struct drm_i915_private *i915 = gt->i915; in intel_guc_init_early()
180 if (gt->type == GT_MEDIA) { in intel_guc_init_early()
267 struct intel_gt *gt = guc_to_gt(guc); in guc_ctl_wa_flags() local
271 if (GRAPHICS_VER(gt->i915) >= 11 && in guc_ctl_wa_flags()
272 GRAPHICS_VER_FULL(gt->i915) < IP_VER(12, 50)) in guc_ctl_wa_flags()
276 if (IS_GFX_GT_IP_STEP(gt, IP_VER(12, 70), STEP_A0, STEP_B0) || in guc_ctl_wa_flags()
277 IS_DG2(gt->i915)) in guc_ctl_wa_flags()
287 if (IS_DG2(gt->i915)) in guc_ctl_wa_flags()
291 if (intel_engine_reset_needs_wa_22011802037(gt)) in guc_ctl_wa_flags()
298 if (IS_DG2_G11(gt->i915)) in guc_ctl_wa_flags()
302 if (!RCS_MASK(gt)) in guc_ctl_wa_flags()
365 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_dump_time_info() local
370 with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref) in intel_guc_dump_time_info()
371 stamp = intel_uncore_read(gt->uncore, GUCPMTIMESTAMP); in intel_guc_dump_time_info()
377 gt->clock_frequency, gt->clock_period_ns); in intel_guc_dump_time_info()
718 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_allocate_vma() local
724 if (HAS_LMEM(gt->i915)) in intel_guc_allocate_vma()
725 obj = i915_gem_object_create_lmem(gt->i915, size, in intel_guc_allocate_vma()
730 obj = i915_gem_object_create_shmem(gt->i915, size); in intel_guc_allocate_vma()
740 if (intel_gt_needs_wa_22016122933(gt)) in intel_guc_allocate_vma()
743 vma = i915_vma_instance(obj, &gt->ggtt->vm, NULL); in intel_guc_allocate_vma()
855 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_load_status() local
856 struct intel_uncore *uncore = gt->uncore; in intel_guc_load_status()
892 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_write_barrier() local
912 intel_uncore_write_fw(gt->uncore, GEN11_SOFT_SCRATCH(0), 0); in intel_guc_write_barrier()