/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_sriov_pf_control.c | 56 static int pf_send_vf_control_cmd(struct xe_gt *gt, unsigned int vfid, u32 cmd) in pf_send_vf_control_cmd() 71 static int pf_send_vf_pause(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_pause() 76 static int pf_send_vf_resume(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_resume() 81 static int pf_send_vf_stop(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_stop() 86 static int pf_send_vf_flr_start(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_start() 91 static int pf_send_vf_flr_finish(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_finish() 213 static struct xe_gt_sriov_control_state *pf_pick_vf_control(struct xe_gt *gt, unsigned int vfid) in pf_pick_vf_control() 221 static unsigned long *pf_peek_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_peek_vf_state() 228 static bool pf_check_vf_state(struct xe_gt *gt, unsigned int vfid, in pf_check_vf_state() 234 static void pf_dump_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_dump_vf_state() [all …]
|
H A D | xe_gt.c | 69 struct xe_gt *gt = arg; in gt_fini() local 76 struct xe_gt *gt; in xe_gt_alloc() local 94 void xe_gt_sanitize(struct xe_gt *gt) in xe_gt_sanitize() 103 static void xe_gt_enable_host_l2_vram(struct xe_gt *gt) in xe_gt_enable_host_l2_vram() 125 static void xe_gt_disable_host_l2_vram(struct xe_gt *gt) in xe_gt_disable_host_l2_vram() 149 static int emit_nop_job(struct xe_gt *gt, struct xe_exec_queue *q) in emit_nop_job() 181 static int emit_wa_job(struct xe_gt *gt, struct xe_exec_queue *q) in emit_wa_job() 307 int xe_gt_record_default_lrcs(struct xe_gt *gt) in xe_gt_record_default_lrcs() 391 int xe_gt_init_early(struct xe_gt *gt) in xe_gt_init_early() 423 static void dump_pat_on_error(struct xe_gt *gt) in dump_pat_on_error() [all …]
|
H A D | xe_gt_debugfs.c | 80 struct xe_gt *gt = parent->d_inode->i_private; in xe_gt_debugfs_simple_show() local 89 static int hw_engines(struct xe_gt *gt, struct drm_printer *p) in hw_engines() 114 static int powergate_info(struct xe_gt *gt, struct drm_printer *p) in powergate_info() 125 static int force_reset(struct xe_gt *gt, struct drm_printer *p) in force_reset() 134 static int force_reset_sync(struct xe_gt *gt, struct drm_printer *p) in force_reset_sync() 143 static int sa_info(struct xe_gt *gt, struct drm_printer *p) in sa_info() 155 static int topology(struct xe_gt *gt, struct drm_printer *p) in topology() 164 static int steering(struct xe_gt *gt, struct drm_printer *p) in steering() 173 static int ggtt(struct xe_gt *gt, struct drm_printer *p) in ggtt() 184 static int register_save_restore(struct xe_gt *gt, struct drm_printer *p) in register_save_restore() [all …]
|
H A D | xe_gt_sriov_pf.c | 36 static int pf_alloc_metadata(struct xe_gt *gt) in pf_alloc_metadata() 48 static void pf_init_workers(struct xe_gt *gt) in pf_init_workers() 61 int xe_gt_sriov_pf_init_early(struct xe_gt *gt) in xe_gt_sriov_pf_init_early() 90 int xe_gt_sriov_pf_init(struct xe_gt *gt) in xe_gt_sriov_pf_init() 106 static void pf_enable_ggtt_guest_update(struct xe_gt *gt) in pf_enable_ggtt_guest_update() 117 void xe_gt_sriov_pf_init_hw(struct xe_gt *gt) in xe_gt_sriov_pf_init_hw() 140 static void pf_clear_vf_scratch_regs(struct xe_gt *gt, unsigned int vfid) in pf_clear_vf_scratch_regs() 168 void xe_gt_sriov_pf_sanitize_hw(struct xe_gt *gt, unsigned int vfid) in xe_gt_sriov_pf_sanitize_hw() 175 static void pf_restart(struct xe_gt *gt) in pf_restart() 189 struct xe_gt *gt = container_of(w, typeof(*gt), sriov.pf.workers.restart); in pf_worker_restart_func() local [all …]
|
H A D | xe_hw_engine.c | 348 static bool xe_hw_engine_match_fixed_cslice_mode(const struct xe_gt *gt, in xe_hw_engine_match_fixed_cslice_mode() 355 static bool xe_rtp_cfeg_wmtp_disabled(const struct xe_gt *gt, in xe_rtp_cfeg_wmtp_disabled() 371 struct xe_gt *gt = hwe->gt; in xe_hw_engine_setup_default_lrc_state() local 408 struct xe_gt *gt = hwe->gt; in hw_engine_setup_default_state() local 483 static u16 get_msix_irq_offset(struct xe_gt *gt, enum xe_engine_class class) in get_msix_irq_offset() 493 static void hw_engine_init_early(struct xe_gt *gt, struct xe_hw_engine *hwe, in hw_engine_init_early() 572 struct xe_gt *gt = hwe->gt; in adjust_idledly() local 597 static int hw_engine_init(struct xe_gt *gt, struct xe_hw_engine *hwe, in hw_engine_init() 650 static void hw_engine_setup_logical_mapping(struct xe_gt *gt) in hw_engine_setup_logical_mapping() 666 static void read_media_fuses(struct xe_gt *gt) in read_media_fuses() [all …]
|
H A D | xe_gsc.c | 47 struct xe_gt *gt = gsc_to_gt(gsc); in memcpy_fw() local 71 struct xe_gt *gt = gsc_to_gt(gsc); in emit_gsc_upload() local 128 struct xe_gt *gt = gsc_to_gt(gsc); in query_compatibility_version() local 181 static int gsc_fw_is_loaded(struct xe_gt *gt) in gsc_fw_is_loaded() 187 static int gsc_fw_wait(struct xe_gt *gt) in gsc_fw_wait() 202 struct xe_gt *gt = gsc_to_gt(gsc); in gsc_upload() local 262 struct xe_gt *gt = gsc_to_gt(gsc); in gsc_upload_and_init() local 308 static int gsc_er_complete(struct xe_gt *gt) in gsc_er_complete() 351 struct xe_gt *gt = gsc_to_gt(gsc); in gsc_work() local 389 struct xe_gt *gt = hwe->gt; in xe_gsc_hwe_irq_handler() local [all …]
|
H A D | xe_gt_tlb_invalidation.c | 29 static long tlb_timeout_jiffies(struct xe_gt *gt) in tlb_timeout_jiffies() 78 struct xe_gt *gt = container_of(work, struct xe_gt, in xe_gt_tlb_fence_timeout() local 117 int xe_gt_tlb_invalidation_init_early(struct xe_gt *gt) in xe_gt_tlb_invalidation_init_early() 135 void xe_gt_tlb_invalidation_reset(struct xe_gt *gt) in xe_gt_tlb_invalidation_reset() 176 static bool tlb_invalidation_seqno_past(struct xe_gt *gt, int seqno) in tlb_invalidation_seqno_past() 193 struct xe_gt *gt = guc_to_gt(guc); in send_tlb_invalidation() local 264 static int xe_gt_tlb_invalidation_guc(struct xe_gt *gt, in xe_gt_tlb_invalidation_guc() 295 int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt) in xe_gt_tlb_invalidation_ggtt() 357 int xe_gt_tlb_invalidation_range(struct xe_gt *gt, in xe_gt_tlb_invalidation_range() 436 void xe_gt_tlb_invalidation_vm(struct xe_gt *gt, struct xe_vm *vm) in xe_gt_tlb_invalidation_vm() [all …]
|
H A D | xe_gsc_proxy.c | 67 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_init_done() local 76 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_wait_for_proxy_init_done() local 87 struct xe_gt *gt = gsc_to_gt(gsc); in __gsc_proxy_irq_rmw() local 111 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_csme() local 132 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_gsc() local 153 static int validate_proxy_header(struct xe_gt *gt, in validate_proxy_header() 222 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_query() local 326 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_request_handler() local 359 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_irq_handler() local 380 struct xe_gt *gt = xe->tiles[0].media_gt; in xe_gsc_proxy_component_bind() local [all …]
|
H A D | xe_guc_pc.c | 272 struct xe_gt *gt = pc_to_gt(pc); in pc_set_manual_rp_ctrl() local 281 struct xe_gt *gt = pc_to_gt(pc); in pc_set_cur_freq() local 344 struct xe_gt *gt = pc_to_gt(pc); in mtl_update_rpa_value() local 357 struct xe_gt *gt = pc_to_gt(pc); in mtl_update_rpe_value() local 370 struct xe_gt *gt = pc_to_gt(pc); in tgl_update_rpa_value() local 390 struct xe_gt *gt = pc_to_gt(pc); in tgl_update_rpe_value() local 410 struct xe_gt *gt = pc_to_gt(pc); in pc_update_rp_values() local 437 struct xe_gt *gt = pc_to_gt(pc); in xe_guc_pc_get_act_freq() local 455 static u32 get_cur_freq(struct xe_gt *gt) in get_cur_freq() 472 struct xe_gt *gt = pc_to_gt(pc); in xe_guc_pc_get_cur_freq_fw() local [all …]
|
H A D | xe_gt_ccs_mode.c | 17 static void __xe_gt_apply_ccs_mode(struct xe_gt *gt, u32 num_engines) in __xe_gt_apply_ccs_mode() 83 void xe_gt_apply_ccs_mode(struct xe_gt *gt) in xe_gt_apply_ccs_mode() 95 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in num_cslices_show() local 106 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_show() local 115 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_store() local 171 struct xe_gt *gt = arg; in xe_gt_ccs_mode_sysfs_fini() local 189 int xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt) in xe_gt_ccs_mode_sysfs_init()
|
H A D | xe_mocs.c | 26 static inline void mocs_dbg(const struct xe_gt *gt, in mocs_dbg() 260 static bool regs_are_mcr(struct xe_gt *gt) in regs_are_mcr() 270 static void xelp_lncf_dump(struct xe_mocs_info *info, struct xe_gt *gt, struct drm_printer *p) in xelp_lncf_dump() 300 struct xe_gt *gt, struct drm_printer *p) in xelp_mocs_dump() 375 struct xe_gt *gt, struct drm_printer *p) in xehp_lncf_dump() 419 static void pvc_mocs_dump(struct xe_mocs_info *info, unsigned int flags, struct xe_gt *gt, in pvc_mocs_dump() 501 struct xe_gt *gt, struct drm_printer *p) in mtl_mocs_dump() 544 struct xe_gt *gt, struct drm_printer *p) in xe2_mocs_dump() 677 static void __init_mocs_table(struct xe_gt *gt, in __init_mocs_table() 716 static void init_l3cc_table(struct xe_gt *gt, in init_l3cc_table() [all …]
|
H A D | xe_pat.c | 162 static void program_pat(struct xe_gt *gt, const struct xe_pat_table_entry table[], in program_pat() 172 static void program_pat_mcr(struct xe_gt *gt, const struct xe_pat_table_entry table[], in program_pat_mcr() 182 static void xelp_dump(struct xe_gt *gt, struct drm_printer *p) in xelp_dump() 210 static void xehp_dump(struct xe_gt *gt, struct drm_printer *p) in xehp_dump() 240 static void xehpc_dump(struct xe_gt *gt, struct drm_printer *p) in xehpc_dump() 268 static void xelpg_dump(struct xe_gt *gt, struct drm_printer *p) in xelpg_dump() 306 static void xe2lpg_program_pat(struct xe_gt *gt, const struct xe_pat_table_entry table[], in xe2lpg_program_pat() 316 static void xe2lpm_program_pat(struct xe_gt *gt, const struct xe_pat_table_entry table[], in xe2lpm_program_pat() 326 static void xe2_dump(struct xe_gt *gt, struct drm_printer *p) in xe2_dump() 454 void xe_pat_init(struct xe_gt *gt) in xe_pat_init() [all …]
|
H A D | xe_guc_ads.c | 235 static size_t calculate_regset_size(struct xe_gt *gt) in calculate_regset_size() 255 static u32 engine_enable_mask(struct xe_gt *gt, enum xe_engine_class class) in engine_enable_mask() 270 struct xe_gt *gt = ads_to_gt(ads); in calculate_golden_lrc_size() local 338 struct xe_gt *gt = ads_to_gt(ads); in guc_waklv_init() local 410 struct xe_gt *gt = ads_to_gt(ads); in xe_guc_ads_init() local 445 struct xe_gt *gt = ads_to_gt(ads); in xe_guc_ads_init_post_hwconfig() local 479 static void fill_engine_enable_masks(struct xe_gt *gt, in fill_engine_enable_masks() 506 struct xe_gt *gt = ads_to_gt(ads); in guc_golden_lrc_init() local 548 static void guc_mapping_table_init_invalid(struct xe_gt *gt, in guc_mapping_table_init_invalid() 561 static void guc_mapping_table_init(struct xe_gt *gt, in guc_mapping_table_init() [all …]
|
H A D | xe_gt_sriov_pf.h | 18 static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt) in xe_gt_sriov_pf_init_early() 23 static inline int xe_gt_sriov_pf_init(struct xe_gt *gt) in xe_gt_sriov_pf_init() 28 static inline void xe_gt_sriov_pf_init_hw(struct xe_gt *gt) in xe_gt_sriov_pf_init_hw() 32 static inline void xe_gt_sriov_pf_restart(struct xe_gt *gt) in xe_gt_sriov_pf_restart()
|
/linux/drivers/gpu/drm/xe/tests/ |
H A D | xe_gt_sriov_pf_service_test.c | 20 struct xe_gt *gt; in pf_service_test_init() local 50 struct xe_gt *gt = test->priv; in pf_negotiate_any() local 63 struct xe_gt *gt = test->priv; in pf_negotiate_base_match() local 77 struct xe_gt *gt = test->priv; in pf_negotiate_base_newer() local 95 struct xe_gt *gt = test->priv; in pf_negotiate_base_next() local 112 struct xe_gt *gt = test->priv; in pf_negotiate_base_older() local 127 struct xe_gt *gt = test->priv; in pf_negotiate_base_prev() local 138 struct xe_gt *gt = test->priv; in pf_negotiate_latest_match() local 152 struct xe_gt *gt = test->priv; in pf_negotiate_latest_newer() local 166 struct xe_gt *gt = test->priv; in pf_negotiate_latest_next() local [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt.h | 20 #define IS_GFX_GT_IP_RANGE(gt, from, until) ( \ argument 34 #define IS_MEDIA_GT_IP_RANGE(gt, from, until) ( \ argument 56 #define IS_GFX_GT_IP_STEP(gt, ipver, from, until) ( \ argument 74 #define IS_MEDIA_GT_IP_STEP(gt, ipver, from, until) ( \ argument 79 #define GT_TRACE(gt, fmt, ...) do { \ argument 85 static inline bool gt_is_root(struct intel_gt *gt) in gt_is_root() 127 static inline struct intel_guc *gt_to_guc(struct intel_gt *gt) in gt_to_guc() 155 static inline u32 intel_gt_scratch_offset(const struct intel_gt *gt, 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() 167 static inline bool intel_gt_is_wedged(const struct intel_gt *gt) in intel_gt_is_wedged() [all …]
|
H A D | intel_gt_pm_irq.c | 13 static void write_pm_imr(struct intel_gt *gt) in write_pm_imr() 32 static void gen6_gt_pm_update_irq(struct intel_gt *gt, in gen6_gt_pm_update_irq() 52 void gen6_gt_pm_unmask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_unmask_irq() 57 void gen6_gt_pm_mask_irq(struct intel_gt *gt, u32 mask) in gen6_gt_pm_mask_irq() 62 void gen6_gt_pm_reset_iir(struct intel_gt *gt, u32 reset_mask) in gen6_gt_pm_reset_iir() 74 static void write_pm_ier(struct intel_gt *gt) in write_pm_ier() 93 void gen6_gt_pm_enable_irq(struct intel_gt *gt, u32 enable_mask) in gen6_gt_pm_enable_irq() 102 void gen6_gt_pm_disable_irq(struct intel_gt *gt, u32 disable_mask) in gen6_gt_pm_disable_irq()
|
H A D | intel_gt_requests.c | 34 static bool flush_submission(struct intel_gt *gt, long timeout) in flush_submission() 133 long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout, in intel_gt_retire_requests_timeout() 207 struct intel_gt *gt = in retire_work_handler() local 215 void intel_gt_init_requests(struct intel_gt *gt) in intel_gt_init_requests() 220 void intel_gt_park_requests(struct intel_gt *gt) in intel_gt_park_requests() 225 void intel_gt_unpark_requests(struct intel_gt *gt) in intel_gt_unpark_requests() 231 void intel_gt_fini_requests(struct intel_gt *gt) in intel_gt_fini_requests() 241 struct intel_gt *gt = in intel_gt_watchdog_work() local
|
H A D | intel_sseu_debugfs.c | 15 static void cherryview_sseu_device_status(struct intel_gt *gt, in cherryview_sseu_device_status() 49 static void gen11_sseu_device_status(struct intel_gt *gt, in gen11_sseu_device_status() 109 static void gen9_sseu_device_status(struct intel_gt *gt, in gen9_sseu_device_status() 168 static void bdw_sseu_device_status(struct intel_gt *gt, in bdw_sseu_device_status() 231 int intel_sseu_status(struct seq_file *m, struct intel_gt *gt) in intel_sseu_status() 274 struct intel_gt *gt = m->private; in sseu_status_show() local 282 struct intel_gt *gt = m->private; in sseu_topology_show() local 291 void intel_sseu_debugfs_register(struct intel_gt *gt, struct dentry *root) in intel_sseu_debugfs_register()
|
H A D | intel_gt_buffer_pool.c | 91 struct intel_gt *gt = container_of(pool, struct intel_gt, buffer_pool); in pool_free_work() local 103 struct intel_gt *gt = container_of(pool, struct intel_gt, buffer_pool); in pool_retire() local 142 struct intel_gt *gt = container_of(pool, struct intel_gt, buffer_pool); in node_create() local 171 intel_gt_get_buffer_pool(struct intel_gt *gt, size_t size, in intel_gt_get_buffer_pool() 220 void intel_gt_init_buffer_pool(struct intel_gt *gt) in intel_gt_init_buffer_pool() 231 void intel_gt_flush_buffer_pool(struct intel_gt *gt) in intel_gt_flush_buffer_pool() 241 void intel_gt_fini_buffer_pool(struct intel_gt *gt) in intel_gt_fini_buffer_pool()
|
H A D | selftest_reset.c | 18 __igt_reset_stolen(struct intel_gt *gt, in __igt_reset_stolen() 192 struct intel_gt *gt = arg; in igt_reset_engines_stolen() local 211 struct intel_gt *gt = arg; in igt_global_reset() local 241 struct intel_gt *gt = arg; in igt_wedged_reset() local 262 struct intel_gt *gt = arg; in igt_atomic_reset() local 307 struct intel_gt *gt = arg; in igt_atomic_engine_reset() local 385 struct intel_gt *gt = to_gt(i915); in intel_reset_live_selftests() local
|
H A D | selftest_execlists.c | 111 struct intel_gt *gt = arg; in live_sanitycheck() local 164 static int live_unlite_restore(struct intel_gt *gt, int prio) in live_unlite_restore() 327 struct intel_gt *gt = arg; in live_unlite_ring() local 477 struct intel_gt *gt = arg; in live_pin_rewind() local 581 struct intel_gt *gt = arg; in live_hold_reset() local 688 struct intel_gt *gt = arg; in live_error_interrupt() local 978 struct intel_gt *gt = arg; in live_timeslice_preempt() local 1113 struct intel_gt *gt = arg; in live_timeslice_rewind() local 1286 struct intel_gt *gt = arg; in live_timeslice_queue() local 1412 struct intel_gt *gt = arg; in live_timeslice_nopreempt() local [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_gsc_uc.c | 19 struct intel_gt *gt = gsc_uc_to_gt(gsc); in gsc_work() local 98 static bool gsc_engine_supported(struct intel_gt *gt) in gsc_engine_supported() 120 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_init_early() local 148 struct intel_gt *gt = gsc_uc_to_gt(gsc); in gsc_allocate_and_map_vma() local 213 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_init() local 303 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_load_start() local 320 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_uc_load_status() local
|
H A D | intel_gsc_proxy.c | 86 struct intel_gt *gt = gsc_uc_to_gt(gsc); in proxy_send_to_csme() local 125 struct intel_gt *gt = gsc_uc_to_gt(gsc); in proxy_send_to_gsc() local 188 struct intel_gt *gt = gsc_uc_to_gt(gsc); in proxy_query() local 257 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_proxy_request_handler() local 292 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_proxy_irq_handler() local 312 struct intel_gt *gt = i915->media_gt; in i915_gsc_proxy_component_bind() local 334 struct intel_gt *gt = i915->media_gt; in i915_gsc_proxy_component_unbind() local 356 struct intel_gt *gt = gsc_uc_to_gt(gsc); in proxy_channel_alloc() local 386 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_proxy_fini() local 398 struct intel_gt *gt = gsc_uc_to_gt(gsc); in intel_gsc_proxy_init() local
|
/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_irq.c | 27 struct intel_gt *gt; in intel_pxp_irq_handler() local 54 static inline void __pxp_set_interrupts(struct intel_gt *gt, u32 interrupts) in __pxp_set_interrupts() 63 static inline void pxp_irq_reset(struct intel_gt *gt) in pxp_irq_reset() 72 struct intel_gt *gt = pxp->ctrl_gt; in intel_pxp_irq_enable() local 87 struct intel_gt *gt = pxp->ctrl_gt; in intel_pxp_irq_disable() local
|