Lines Matching full:gt
18 * Check that the GT is a graphics GT and has an IP version within the
21 #define IS_GFX_GT_IP_RANGE(gt, from, until) ( \ argument
24 ((gt)->type != GT_MEDIA && \
25 GRAPHICS_VER_FULL((gt)->i915) >= (from) && \
26 GRAPHICS_VER_FULL((gt)->i915) <= (until)))
29 * Check that the GT is a graphics GT with a specific IP version and has
37 * IS_GFX_GT_IP_STEP(gt, IP_VER(12, 70), STEP_A0, STEP_B0)
38 * IS_GFX_GT_IP_STEP(gt, IP_VER(12, 71), STEP_B1, STEP_FOREVER)
43 #define IS_GFX_GT_IP_STEP(gt, ipver, from, until) ( \ argument
45 (IS_GFX_GT_IP_RANGE((gt), (ipver), (ipver)) && \
46 IS_GRAPHICS_STEP((gt)->i915, (from), (until))))
48 #define GT_TRACE(gt, fmt, ...) do { \ argument
49 const struct intel_gt *gt__ __maybe_unused = (gt); \
54 static inline bool gt_is_root(struct intel_gt *gt) in gt_is_root() argument
56 return !gt->info.id; in gt_is_root()
59 static inline bool intel_gt_needs_wa_22016122933(struct intel_gt *gt) in intel_gt_needs_wa_22016122933() argument
61 return MEDIA_VER_FULL(gt->i915) == IP_VER(13, 0) && gt->type == GT_MEDIA; in intel_gt_needs_wa_22016122933()
89 void intel_gt_common_init_early(struct intel_gt *gt);
91 int intel_gt_assign_ggtt(struct intel_gt *gt);
92 int intel_gt_init_mmio(struct intel_gt *gt);
93 int __must_check intel_gt_init_hw(struct intel_gt *gt);
94 int intel_gt_init(struct intel_gt *gt);
95 void intel_gt_driver_register(struct intel_gt *gt);
97 void intel_gt_driver_unregister(struct intel_gt *gt);
98 void intel_gt_driver_remove(struct intel_gt *gt);
99 void intel_gt_driver_release(struct intel_gt *gt);
102 int intel_gt_wait_for_idle(struct intel_gt *gt, long timeout);
104 void intel_gt_check_and_clear_faults(struct intel_gt *gt);
105 i915_reg_t intel_gt_perf_limit_reasons_reg(struct intel_gt *gt);
106 void intel_gt_clear_error_registers(struct intel_gt *gt,
109 void intel_gt_flush_ggtt_writes(struct intel_gt *gt);
110 void intel_gt_chipset_flush(struct intel_gt *gt);
112 static inline u32 intel_gt_scratch_offset(const struct intel_gt *gt, in intel_gt_scratch_offset() argument
115 return i915_ggtt_offset(gt->scratch) + field; in intel_gt_scratch_offset()
118 static inline bool intel_gt_has_unrecoverable_error(const struct intel_gt *gt) in intel_gt_has_unrecoverable_error() argument
120 return test_bit(I915_WEDGED_ON_INIT, >->reset.flags) || in intel_gt_has_unrecoverable_error()
121 test_bit(I915_WEDGED_ON_FINI, >->reset.flags); in intel_gt_has_unrecoverable_error()
124 static inline bool intel_gt_is_wedged(const struct intel_gt *gt) in intel_gt_is_wedged() argument
126 GEM_BUG_ON(intel_gt_has_unrecoverable_error(gt) && in intel_gt_is_wedged()
127 !test_bit(I915_WEDGED, >->reset.flags)); in intel_gt_is_wedged()
129 return unlikely(test_bit(I915_WEDGED, >->reset.flags)); in intel_gt_is_wedged()
140 for_each_if(((gt__) = (i915__)->gt[(id__)]))
147 enum i915_map_type intel_gt_coherent_map_type(struct intel_gt *gt,