Lines Matching +full:reset +full:- +full:related
1 /* SPDX-License-Identifier: MIT */
9 #include <linux/fault-inject.h>
18 for ((id__) = 0; (id__) < ARRAY_SIZE((gt__)->hw_engines); (id__)++) \
19 for_each_if(((hwe__) = (gt__)->hw_engines + (id__)) && \
22 #define CCS_MASK(gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0)
38 * xe_gt_record_user_engines - save data related to engines available to
42 * Walk the available HW engines from gt->info.engine_mask and calculate data
43 * related to those engines that may be used by userspace. To be used whenever
58 * xe_gt_wait_for_reset - wait for gt's async reset to finalize.
62 * %false if there was no scheduled reset or it was done.
66 return flush_work(>->reset.worker);
70 * xe_gt_reset - perform synchronous reset
73 * %true if it waited for the reset to finish,
74 * %false if there was no scheduled reset.
83 * xe_gt_any_hw_engine_by_reset_domain - scan the list of engines and return the
84 * first that matches the same reset domain as @class
92 * xe_gt_any_hw_engine - scan the list of engines and return the
105 return gt->info.has_indirect_ring_state &&
111 return gt->info.type == XE_GT_TYPE_MAIN;
116 return gt->info.type == XE_GT_TYPE_MEDIA;
123 return xe->info.has_usm && hwe->class == XE_ENGINE_CLASS_COPY &&
124 hwe->instance == gt->usm.reserved_bcs_instance;