| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt_sriov_pf_control.c | 57 static int pf_send_vf_control_cmd(struct xe_gt *gt, unsigned int vfid, u32 cmd) in pf_send_vf_control_cmd() 72 static int pf_send_vf_pause(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_pause() 77 static int pf_send_vf_resume(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_resume() 82 static int pf_send_vf_stop(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_stop() 87 static int pf_send_vf_flr_start(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_start() 92 static int pf_send_vf_flr_finish(struct xe_gt *gt, unsigned int vfid) in pf_send_vf_flr_finish() 214 static struct xe_gt_sriov_control_state *pf_pick_vf_control(struct xe_gt *gt, unsigned int vfid) in pf_pick_vf_control() 222 static unsigned long *pf_peek_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_peek_vf_state() 229 static bool pf_check_vf_state(struct xe_gt *gt, unsigned int vfid, in pf_check_vf_state() 235 static void pf_dump_vf_state(struct xe_gt *gt, unsigned int vfid) in pf_dump_vf_state() [all …]
|
| H A D | xe_gt_sriov_pf_config.c | 62 static int pf_send_vf_cfg_reset(struct xe_gt *gt, u32 vfid) in pf_send_vf_cfg_reset() 76 static int pf_send_vf_buf_klvs(struct xe_gt *gt, u32 vfid, struct xe_guc_buf buf, u32 num_dwords) in pf_send_vf_buf_klvs() 87 static int pf_push_vf_buf_klvs(struct xe_gt *gt, unsigned int vfid, u32 num_klvs, in pf_push_vf_buf_klvs() 125 static int pf_push_vf_cfg_klvs(struct xe_gt *gt, unsigned int vfid, u32 num_klvs, in pf_push_vf_cfg_klvs() 138 static int pf_push_vf_cfg_u32(struct xe_gt *gt, unsigned int vfid, u16 key, u32 value) in pf_push_vf_cfg_u32() 148 static int pf_push_vf_cfg_u64(struct xe_gt *gt, unsigned int vfid, u16 key, u64 value) in pf_push_vf_cfg_u64() 159 static int pf_push_vf_cfg_ggtt(struct xe_gt *gt, unsigned int vfid, u64 start, u64 size) in pf_push_vf_cfg_ggtt() 173 static int pf_push_vf_cfg_ctxs(struct xe_gt *gt, unsigned int vfid, u32 begin, u32 num) in pf_push_vf_cfg_ctxs() 185 static int pf_push_vf_cfg_dbs(struct xe_gt *gt, unsigned int vfid, u32 begin, u32 num) in pf_push_vf_cfg_dbs() 197 static int pf_push_vf_cfg_exec_quantum(struct xe_gt *gt, unsigned int vfid, u32 *exec_quantum) in pf_push_vf_cfg_exec_quantum() [all …]
|
| H A D | xe_gt.c | 70 struct xe_gt *gt = arg; in gt_fini() local 77 struct xe_gt *gt; in xe_gt_alloc() local 95 void xe_gt_sanitize(struct xe_gt *gt) in xe_gt_sanitize() 104 static void xe_gt_enable_host_l2_vram(struct xe_gt *gt) in xe_gt_enable_host_l2_vram() 126 static void xe_gt_disable_host_l2_vram(struct xe_gt *gt) in xe_gt_disable_host_l2_vram() 175 static int emit_nop_job(struct xe_gt *gt, struct xe_exec_queue *q) in emit_nop_job() 190 static int emit_wa_job(struct xe_gt *gt, struct xe_exec_queue *q) in emit_wa_job() 314 int xe_gt_record_default_lrcs(struct xe_gt *gt) in xe_gt_record_default_lrcs() 390 int xe_gt_init_early(struct xe_gt *gt) in xe_gt_init_early() 444 static void dump_pat_on_error(struct xe_gt *gt) in dump_pat_on_error() [all …]
|
| H A D | xe_gt.h | 22 #define CCS_MASK(gt) (((gt)->info.engine_mask & XE_HW_ENGINE_CCS_MASK) >> XE_HW_ENGINE_CCS0) argument 64 static inline bool xe_gt_wait_for_reset(struct xe_gt *gt) in xe_gt_wait_for_reset() 76 static inline bool xe_gt_reset(struct xe_gt *gt) in xe_gt_reset() 103 static inline bool xe_gt_has_indirect_ring_state(struct xe_gt *gt) in xe_gt_has_indirect_ring_state() 109 static inline bool xe_gt_is_main_type(struct xe_gt *gt) in xe_gt_is_main_type() 114 static inline bool xe_gt_is_media_type(struct xe_gt *gt) in xe_gt_is_media_type() 119 static inline bool xe_gt_is_usm_hwe(struct xe_gt *gt, struct xe_hw_engine *hwe) in xe_gt_is_usm_hwe()
|
| H A D | xe_gsc_proxy.c | 68 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_init_done() local 77 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_wait_for_proxy_init_done() local 88 struct xe_gt *gt = gsc_to_gt(gsc); in __gsc_proxy_irq_rmw() local 112 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_csme() local 133 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_send_to_gsc() local 154 static int validate_proxy_header(struct xe_gt *gt, in validate_proxy_header() 223 struct xe_gt *gt = gsc_to_gt(gsc); in proxy_query() local 327 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_request_handler() local 360 struct xe_gt *gt = gsc_to_gt(gsc); in xe_gsc_proxy_irq_handler() local 381 struct xe_gt *gt = xe->tiles[0].media_gt; in xe_gsc_proxy_component_bind() local [all …]
|
| H A D | xe_force_wake.c | 45 void xe_force_wake_init_gt(struct xe_gt *gt, struct xe_force_wake *fw) in xe_force_wake_init_gt() 63 void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw) in xe_force_wake_init_engines() 96 static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_ctl() 104 static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_wait() 129 static void domain_wake(struct xe_gt *gt, struct xe_force_wake_domain *domain) in domain_wake() 134 static int domain_wake_wait(struct xe_gt *gt, in domain_wake_wait() 140 static void domain_sleep(struct xe_gt *gt, struct xe_force_wake_domain *domain) in domain_sleep() 145 static int domain_sleep_wait(struct xe_gt *gt, in domain_sleep_wait() 175 struct xe_gt *gt = fw->gt; in xe_force_wake_get() local 226 struct xe_gt *gt = fw->gt; in xe_force_wake_put() local
|
| H A D | xe_guc.c | 149 static bool needs_wa_dual_queue(struct xe_gt *gt) in needs_wa_dual_queue() 180 struct xe_gt *gt = guc_to_gt(guc); in guc_ctl_wa_flags() local 228 struct xe_gt *gt = guc_to_gt(guc); in guc_print_params() local 274 struct xe_gt *gt = guc_to_gt(guc); in guc_write_params() local 288 struct xe_gt *gt = guc_to_gt(guc); in guc_action_register_g2g_buffer() local 308 struct xe_gt *gt = guc_to_gt(guc); in guc_action_deregister_g2g_buffer() local 322 #define G2G_DEV(gt) (((gt)->info.type == XE_GT_TYPE_MAIN) ? 0 : 1) argument 436 struct xe_gt *gt = guc_to_gt(guc); in guc_g2g_size() local 458 struct xe_gt *gt = guc_to_gt(guc); in guc_g2g_alloc() local 512 struct xe_gt *far_gt, *gt = guc_to_gt(guc); in guc_g2g_start() 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_gt_sriov_pf.h | 20 static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt) in xe_gt_sriov_pf_init_early() 25 static inline int xe_gt_sriov_pf_init(struct xe_gt *gt) in xe_gt_sriov_pf_init() 30 static inline void xe_gt_sriov_pf_init_hw(struct xe_gt *gt) in xe_gt_sriov_pf_init_hw() 34 static inline void xe_gt_sriov_pf_stop_prepare(struct xe_gt *gt) in xe_gt_sriov_pf_stop_prepare() 38 static inline void xe_gt_sriov_pf_restart(struct xe_gt *gt) in xe_gt_sriov_pf_restart()
|
| H A D | xe_gt_sriov_pf_service.c | 132 static int pf_alloc_runtime_info(struct xe_gt *gt) in pf_alloc_runtime_info() 162 static void read_many(struct xe_gt *gt, unsigned int count, in read_many() 169 static void pf_prepare_runtime_info(struct xe_gt *gt) in pf_prepare_runtime_info() 200 int xe_gt_sriov_pf_service_init(struct xe_gt *gt) in xe_gt_sriov_pf_service_init() 223 void xe_gt_sriov_pf_service_update(struct xe_gt *gt) in xe_gt_sriov_pf_service_update() 229 static int pf_process_handshake_msg(struct xe_gt *gt, u32 origin, in pf_process_handshake_msg() 271 static int pf_service_runtime_query(struct xe_gt *gt, u32 start, u32 limit, in pf_service_runtime_query() 298 static int pf_process_runtime_query_msg(struct xe_gt *gt, u32 origin, in pf_process_runtime_query_msg() 351 int xe_gt_sriov_pf_service_process_request(struct xe_gt *gt, u32 origin, in xe_gt_sriov_pf_service_process_request() 388 int xe_gt_sriov_pf_service_print_runtime(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_service_print_runtime()
|
| 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_gt_sriov_pf_monitor.c | 24 void xe_gt_sriov_pf_monitor_flr(struct xe_gt *gt, u32 vfid) in xe_gt_sriov_pf_monitor_flr() 35 static void pf_update_event_counter(struct xe_gt *gt, u32 vfid, in pf_update_event_counter() 44 static int pf_handle_vf_threshold_event(struct xe_gt *gt, u32 vfid, u32 threshold) in pf_handle_vf_threshold_event() 78 int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len) in xe_gt_sriov_pf_monitor_process_guc2pf() 118 void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p) in xe_gt_sriov_pf_monitor_print_events()
|
| H A D | xe_gt_idle.c | 51 struct xe_gt *gt = container_of(guc, struct xe_gt, uc.guc); in pc_to_xe() local 100 void xe_gt_idle_enable_pg(struct xe_gt *gt) in xe_gt_idle_enable_pg() 152 void xe_gt_idle_disable_pg(struct xe_gt *gt) in xe_gt_idle_disable_pg() 177 int xe_gt_idle_pg_print(struct xe_gt *gt, struct drm_printer *p) in xe_gt_idle_pg_print() 332 struct xe_gt *gt = kobj_to_gt(kobj->parent); in gt_idle_fini() local 345 struct xe_gt *gt = gtidle_to_gt(gtidle); in xe_gt_idle_init() local 382 void xe_gt_idle_enable_c6(struct xe_gt *gt) in xe_gt_idle_enable_c6() 397 int xe_gt_idle_disable_c6(struct xe_gt *gt) in xe_gt_idle_disable_c6()
|
| H A D | xe_gt_sriov_pf_debugfs.c | 165 static void pf_add_policy_attrs(struct xe_gt *gt, struct dentry *parent) in pf_add_policy_attrs() 256 struct xe_gt *gt = extract_gt(data); in set_threshold() local 273 struct xe_gt *gt = extract_gt(data); in get_threshold() local 354 struct xe_gt *gt = extract_gt(parent); in control_write() local 422 struct xe_gt *gt = extract_gt(parent); in guc_state_read() local 433 struct xe_gt *gt = extract_gt(parent); in guc_state_write() local 460 struct xe_gt *gt = extract_gt(parent); in config_blob_read() local 488 struct xe_gt *gt = extract_gt(parent); in config_blob_write() local 531 void xe_gt_sriov_pf_debugfs_register(struct xe_gt *gt, struct dentry *root) in xe_gt_sriov_pf_debugfs_register()
|
| /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_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 | 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 …]
|
| 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 | intel_gt_clock_utils.c | 172 void intel_gt_init_clock_frequency(struct intel_gt *gt) in intel_gt_init_clock_frequency() 191 void intel_gt_check_clock_frequency(const struct intel_gt *gt) in intel_gt_check_clock_frequency() 206 u64 intel_gt_clock_interval_to_ns(const struct intel_gt *gt, u64 count) in intel_gt_clock_interval_to_ns() 211 u64 intel_gt_pm_interval_to_ns(const struct intel_gt *gt, u64 count) in intel_gt_pm_interval_to_ns() 216 u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns) in intel_gt_ns_to_clock_interval() 221 u64 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u64 ns) in intel_gt_ns_to_pm_interval()
|
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_timer.c | 18 static u64 kvm_riscv_current_cycles(struct kvm_guest_timer *gt) in kvm_riscv_current_cycles() 24 struct kvm_guest_timer *gt, in kvm_riscv_delta_cycles2ns() 47 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_hrtimer_expired() local 86 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_update_hrtimer() local 114 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_vstimer_expired() local 131 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_timer_pending() local 143 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_timer_blocking() local 163 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_get_reg_timer() local 203 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_set_reg_timer() local 290 struct kvm_guest_timer *gt = &vcpu->kvm->arch.timer; in kvm_riscv_vcpu_update_timedelta() 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_guc_ads.c | 163 struct intel_gt *gt = guc_to_gt(guc); in guc_policies_init() local 206 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_global_policies_update() local 228 static void guc_mapping_table_init(struct intel_gt *gt, in guc_mapping_table_init() 301 static long __must_check guc_mmio_reg_add(struct intel_gt *gt, in guc_mmio_reg_add() 337 #define GUC_MMIO_REG_ADD(gt, regset, reg, masked) \ argument 349 static long __must_check guc_mcr_reg_add(struct intel_gt *gt, in guc_mcr_reg_add() 369 #define GUC_MCR_REG_ADD(gt, regset, reg, masked) \ argument 378 struct intel_gt *gt = engine->gt; in guc_mmio_regset_init() local 435 struct intel_gt *gt = guc_to_gt(guc); in guc_mmio_reg_state_create() local 467 struct intel_gt *gt = guc_to_gt(guc); in guc_mmio_reg_state_init() local [all …]
|
| H A D | intel_uc.c | 59 struct intel_gt *gt = uc_to_gt(uc); in __intel_uc_reset_hw() local 83 struct intel_gt *gt = uc_to_gt(uc); in __confirm_options() local 222 struct intel_gt *gt = guc_to_gt(guc); in guc_enable_communication() local 278 struct intel_gt *gt = uc_to_gt(uc); in __uc_fetch_firmwares() local 365 struct intel_gt *gt = uc_to_gt(uc); in uc_init_wopcm() local 418 struct intel_gt *gt = uc_to_gt(uc); in uc_is_wopcm_locked() local 444 static void print_fw_ver(struct intel_gt *gt, struct intel_uc_fw *fw) in print_fw_ver() 455 struct intel_gt *gt = uc_to_gt(uc); in __uc_init_hw() local 712 struct intel_gt *gt = guc_to_gt(guc); in __uc_resume() 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
|