Lines Matching refs:gt
39 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_notify() local
47 intel_uncore_write(gt->uncore, guc->notify_reg, GUC_SEND_TRIGGER); in intel_guc_notify()
61 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_init_send_regs() local
69 fw_domains |= intel_uncore_forcewake_for_reg(gt->uncore, in intel_guc_init_send_regs()
78 struct intel_gt *gt = guc_to_gt(guc); in gen9_reset_guc_interrupts() local
80 assert_rpm_wakelock_held(>->i915->runtime_pm); in gen9_reset_guc_interrupts()
82 spin_lock_irq(>->irq_lock); in gen9_reset_guc_interrupts()
83 gen6_gt_pm_reset_iir(gt, gt->pm_guc_events); in gen9_reset_guc_interrupts()
84 spin_unlock_irq(>->irq_lock); in gen9_reset_guc_interrupts()
89 struct intel_gt *gt = guc_to_gt(guc); in gen9_enable_guc_interrupts() local
91 assert_rpm_wakelock_held(>->i915->runtime_pm); in gen9_enable_guc_interrupts()
93 spin_lock_irq(>->irq_lock); in gen9_enable_guc_interrupts()
94 WARN_ON_ONCE(intel_uncore_read(gt->uncore, GEN8_GT_IIR(2)) & in gen9_enable_guc_interrupts()
95 gt->pm_guc_events); in gen9_enable_guc_interrupts()
96 gen6_gt_pm_enable_irq(gt, gt->pm_guc_events); in gen9_enable_guc_interrupts()
97 spin_unlock_irq(>->irq_lock); in gen9_enable_guc_interrupts()
102 struct intel_gt *gt = guc_to_gt(guc); in gen9_disable_guc_interrupts() local
104 assert_rpm_wakelock_held(>->i915->runtime_pm); in gen9_disable_guc_interrupts()
106 spin_lock_irq(>->irq_lock); in gen9_disable_guc_interrupts()
108 gen6_gt_pm_disable_irq(gt, gt->pm_guc_events); in gen9_disable_guc_interrupts()
110 spin_unlock_irq(>->irq_lock); in gen9_disable_guc_interrupts()
111 intel_synchronize_irq(gt->i915); in gen9_disable_guc_interrupts()
118 struct intel_gt *gt = guc_to_gt(guc); in gen11_reset_guc_interrupts() local
120 spin_lock_irq(>->irq_lock); in gen11_reset_guc_interrupts()
121 gen11_gt_reset_one_iir(gt, 0, GEN11_GUC); in gen11_reset_guc_interrupts()
122 spin_unlock_irq(>->irq_lock); in gen11_reset_guc_interrupts()
127 struct intel_gt *gt = guc_to_gt(guc); in gen11_enable_guc_interrupts() local
130 spin_lock_irq(>->irq_lock); in gen11_enable_guc_interrupts()
131 WARN_ON_ONCE(gen11_gt_reset_one_iir(gt, 0, GEN11_GUC)); in gen11_enable_guc_interrupts()
132 intel_uncore_write(gt->uncore, in gen11_enable_guc_interrupts()
134 intel_uncore_write(gt->uncore, in gen11_enable_guc_interrupts()
136 spin_unlock_irq(>->irq_lock); in gen11_enable_guc_interrupts()
141 struct intel_gt *gt = guc_to_gt(guc); in gen11_disable_guc_interrupts() local
143 spin_lock_irq(>->irq_lock); in gen11_disable_guc_interrupts()
145 intel_uncore_write(gt->uncore, GEN11_GUC_SG_INTR_MASK, ~0); in gen11_disable_guc_interrupts()
146 intel_uncore_write(gt->uncore, GEN11_GUC_SG_INTR_ENABLE, 0); in gen11_disable_guc_interrupts()
148 spin_unlock_irq(>->irq_lock); in gen11_disable_guc_interrupts()
149 intel_synchronize_irq(gt->i915); in gen11_disable_guc_interrupts()
311 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_init() local
351 i915_ggtt_enable_guc(gt->ggtt); in intel_guc_init()
368 i915_probe_error(gt->i915, "failed with %d\n", ret); in intel_guc_init()
374 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_fini() local
379 i915_ggtt_disable_guc(gt->ggtt); in intel_guc_fini()
645 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_allocate_vma() local
651 if (HAS_LMEM(gt->i915)) in intel_guc_allocate_vma()
652 obj = i915_gem_object_create_lmem(gt->i915, size, in intel_guc_allocate_vma()
657 obj = i915_gem_object_create_shmem(gt->i915, size); in intel_guc_allocate_vma()
662 vma = i915_vma_instance(obj, >->ggtt->vm, NULL); in intel_guc_allocate_vma()
725 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_load_status() local
726 struct intel_uncore *uncore = gt->uncore; in intel_guc_load_status()
762 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_write_barrier() local
782 intel_uncore_write_fw(gt->uncore, GEN11_SOFT_SCRATCH(0), 0); in intel_guc_write_barrier()