Lines Matching full:gt
17 * Check that the GT is a graphics GT and has an IP version within the
20 #define IS_GFX_GT_IP_RANGE(gt, from, until) ( \ argument
23 ((gt)->type != GT_MEDIA && \
24 GRAPHICS_VER_FULL((gt)->i915) >= (from) && \
25 GRAPHICS_VER_FULL((gt)->i915) <= (until)))
28 * Check that the GT is a media GT and has an IP version within the
34 #define IS_MEDIA_GT_IP_RANGE(gt, from, until) ( \ argument
37 ((gt) && (gt)->type == GT_MEDIA && \
38 MEDIA_VER_FULL((gt)->i915) >= (from) && \
39 MEDIA_VER_FULL((gt)->i915) <= (until)))
42 * Check that the GT is a graphics GT with a specific IP version and has
50 * IS_GFX_GT_IP_STEP(gt, IP_VER(12, 70), STEP_A0, STEP_B0)
51 * IS_GFX_GT_IP_STEP(gt, IP_VER(12, 71), STEP_B1, STEP_FOREVER)
56 #define IS_GFX_GT_IP_STEP(gt, ipver, from, until) ( \ argument
58 (IS_GFX_GT_IP_RANGE((gt), (ipver), (ipver)) && \
59 IS_GRAPHICS_STEP((gt)->i915, (from), (until))))
62 * Check that the GT is a media GT with a specific IP version and has
74 #define IS_MEDIA_GT_IP_STEP(gt, ipver, from, until) ( \ argument
76 (IS_MEDIA_GT_IP_RANGE((gt), (ipver), (ipver)) && \
77 IS_MEDIA_STEP((gt)->i915, (from), (until))))
79 #define GT_TRACE(gt, fmt, ...) do { \ argument
80 const struct intel_gt *gt__ __maybe_unused = (gt); \
85 static inline bool gt_is_root(struct intel_gt *gt) in gt_is_root() argument
87 return !gt->info.id; in gt_is_root()
90 bool intel_gt_needs_wa_16018031267(struct intel_gt *gt);
91 bool intel_gt_needs_wa_22016122933(struct intel_gt *gt);
94 intel_gt_needs_wa_16018031267(engine->gt) && \
127 static inline struct intel_guc *gt_to_guc(struct intel_gt *gt) in gt_to_guc() argument
129 return >->uc.guc; in gt_to_guc()
132 void intel_gt_common_init_early(struct intel_gt *gt);
134 int intel_gt_assign_ggtt(struct intel_gt *gt);
135 int intel_gt_init_mmio(struct intel_gt *gt);
136 int __must_check intel_gt_init_hw(struct intel_gt *gt);
137 int intel_gt_init(struct intel_gt *gt);
138 void intel_gt_driver_register(struct intel_gt *gt);
140 void intel_gt_driver_unregister(struct intel_gt *gt);
141 void intel_gt_driver_remove(struct intel_gt *gt);
142 void intel_gt_driver_release(struct intel_gt *gt);
145 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout);
147 void intel_gt_check_and_clear_faults(struct intel_gt *gt);
148 i915_reg_t intel_gt_perf_limit_reasons_reg(struct intel_gt *gt);
149 void intel_gt_clear_error_registers(struct intel_gt *gt,
152 void intel_gt_flush_ggtt_writes(struct intel_gt *gt);
153 void intel_gt_chipset_flush(struct intel_gt *gt);
155 static inline u32 intel_gt_scratch_offset(const struct intel_gt *gt, in intel_gt_scratch_offset() argument
158 return i915_ggtt_offset(gt->scratch) + field; in intel_gt_scratch_offset()
161 static inline bool intel_gt_has_unrecoverable_error(const struct intel_gt *gt) in intel_gt_has_unrecoverable_error() argument
163 return test_bit(I915_WEDGED_ON_INIT, >->reset.flags) || in intel_gt_has_unrecoverable_error()
164 test_bit(I915_WEDGED_ON_FINI, >->reset.flags); in intel_gt_has_unrecoverable_error()
167 static inline bool intel_gt_is_wedged(const struct intel_gt *gt) in intel_gt_is_wedged() argument
169 GEM_BUG_ON(intel_gt_has_unrecoverable_error(gt) && in intel_gt_is_wedged()
170 !test_bit(I915_WEDGED, >->reset.flags)); in intel_gt_is_wedged()
172 return unlikely(test_bit(I915_WEDGED, >->reset.flags)); in intel_gt_is_wedged()
182 for_each_if(((gt__) = (i915__)->gt[(id__)]))
203 enum i915_map_type intel_gt_coherent_map_type(struct intel_gt *gt,
207 void intel_gt_bind_context_set_ready(struct intel_gt *gt);
208 void intel_gt_bind_context_set_unready(struct intel_gt *gt);
209 bool intel_gt_is_bind_context_ready(struct intel_gt *gt);
211 static inline void intel_gt_set_wedged_async(struct intel_gt *gt) in intel_gt_set_wedged_async() argument
213 queue_work(system_highpri_wq, >->wedge); in intel_gt_set_wedged_async()