/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc.c | 35 void intel_guc_notify(struct intel_guc *guc) in intel_guc_notify() argument 37 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_notify() 45 intel_uncore_write(gt->uncore, guc->notify_reg, GUC_SEND_TRIGGER); in intel_guc_notify() 48 static inline i915_reg_t guc_send_reg(struct intel_guc *guc, u32 i) in guc_send_reg() argument 50 GEM_BUG_ON(!guc->send_regs.base); in guc_send_reg() 51 GEM_BUG_ON(!guc->send_regs.count); in guc_send_reg() 52 GEM_BUG_ON(i >= guc->send_regs.count); in guc_send_reg() 54 return _MMIO(guc->send_regs.base + 4 * i); in guc_send_reg() 57 void intel_guc_init_send_regs(struct intel_guc *guc) in intel_guc_init_send_regs() argument 59 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_init_send_regs() [all …]
|
D | intel_guc.h | 37 void (*reset)(struct intel_guc *guc); 38 void (*enable)(struct intel_guc *guc); 39 void (*disable)(struct intel_guc *guc); 83 inline int intel_guc_send(struct intel_guc *guc, const u32 *action, u32 len) in intel_guc_send() argument 85 return intel_guc_ct_send(&guc->ct, action, len, NULL, 0); in intel_guc_send() 89 intel_guc_send_and_receive(struct intel_guc *guc, const u32 *action, u32 len, in intel_guc_send_and_receive() argument 92 return intel_guc_ct_send(&guc->ct, action, len, in intel_guc_send_and_receive() 96 static inline void intel_guc_to_host_event_handler(struct intel_guc *guc) in intel_guc_to_host_event_handler() argument 98 intel_guc_ct_event_handler(&guc->ct); in intel_guc_to_host_event_handler() 117 static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc, in intel_guc_ggtt_offset() argument [all …]
|
D | intel_uc.c | 91 intel_guc_init_early(&uc->guc); in intel_uc_init_early() 115 intel_guc_init_send_regs(&uc->guc); in intel_uc_init_mmio() 120 struct intel_guc *guc = &uc->guc; in __uc_capture_load_err_log() local 122 if (guc->log.vma && !uc->load_err_log) in __uc_capture_load_err_log() 123 uc->load_err_log = i915_gem_object_get(guc->log.vma->obj); in __uc_capture_load_err_log() 141 static inline bool guc_communication_enabled(struct intel_guc *guc) in guc_communication_enabled() argument 143 return intel_guc_ct_enabled(&guc->ct); in guc_communication_enabled() 152 static void guc_clear_mmio_msg(struct intel_guc *guc) in guc_clear_mmio_msg() argument 154 intel_uncore_write(guc_to_gt(guc)->uncore, SOFT_SCRATCH(15), 0); in guc_clear_mmio_msg() 157 static void guc_get_mmio_msg(struct intel_guc *guc) in guc_get_mmio_msg() argument [all …]
|
D | intel_guc_submission.c | 62 static struct guc_stage_desc *__get_stage_desc(struct intel_guc *guc, u32 id) in __get_stage_desc() argument 64 struct guc_stage_desc *base = guc->stage_desc_pool_vaddr; in __get_stage_desc() 69 static int guc_workqueue_create(struct intel_guc *guc) in guc_workqueue_create() argument 71 return intel_guc_allocate_and_map_vma(guc, GUC_WQ_SIZE, &guc->workqueue, in guc_workqueue_create() 72 &guc->workqueue_vaddr); in guc_workqueue_create() 75 static void guc_workqueue_destroy(struct intel_guc *guc) in guc_workqueue_destroy() argument 77 i915_vma_unpin_and_release(&guc->workqueue, I915_VMA_RELEASE_MAP); in guc_workqueue_destroy() 83 static int guc_proc_desc_create(struct intel_guc *guc) in guc_proc_desc_create() argument 87 return intel_guc_allocate_and_map_vma(guc, size, &guc->proc_desc, in guc_proc_desc_create() 88 &guc->proc_desc_vaddr); in guc_proc_desc_create() [all …]
|
D | intel_guc_ads.c | 44 static u32 guc_ads_private_data_size(struct intel_guc *guc) in guc_ads_private_data_size() argument 46 return PAGE_ALIGN(guc->fw.private_data_size); in guc_ads_private_data_size() 49 static u32 guc_ads_private_data_offset(struct intel_guc *guc) in guc_ads_private_data_offset() argument 54 static u32 guc_ads_blob_size(struct intel_guc *guc) in guc_ads_blob_size() argument 56 return guc_ads_private_data_offset(guc) + in guc_ads_blob_size() 57 guc_ads_private_data_size(guc); in guc_ads_blob_size() 119 static void __guc_ads_init(struct intel_guc *guc) in __guc_ads_init() argument 121 struct intel_gt *gt = guc_to_gt(guc); in __guc_ads_init() 123 struct __guc_ads_blob *blob = guc->ads_blob; in __guc_ads_init() 148 intel_engine_context_size(guc_to_gt(guc), in __guc_ads_init() [all …]
|
D | intel_guc_submission.h | 15 void intel_guc_submission_init_early(struct intel_guc *guc); 16 int intel_guc_submission_init(struct intel_guc *guc); 17 void intel_guc_submission_enable(struct intel_guc *guc); 18 void intel_guc_submission_disable(struct intel_guc *guc); 19 void intel_guc_submission_fini(struct intel_guc *guc); 20 int intel_guc_preempt_work_create(struct intel_guc *guc); 21 void intel_guc_preempt_work_destroy(struct intel_guc *guc); 24 static inline bool intel_guc_submission_is_supported(struct intel_guc *guc) in intel_guc_submission_is_supported() argument 30 static inline bool intel_guc_submission_is_wanted(struct intel_guc *guc) in intel_guc_submission_is_wanted() argument 32 return guc->submission_selected; in intel_guc_submission_is_wanted() [all …]
|
D | intel_guc_debugfs.c | 15 struct intel_guc *guc = m->private; in guc_info_show() local 18 if (!intel_guc_is_supported(guc)) in guc_info_show() 21 intel_guc_load_status(guc, &p); in guc_info_show() 23 intel_guc_log_info(&guc->log, &p); in guc_info_show() 31 void intel_guc_debugfs_register(struct intel_guc *guc, struct dentry *root) in intel_guc_debugfs_register() argument 37 if (!intel_guc_is_supported(guc)) in intel_guc_debugfs_register() 40 intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), guc); in intel_guc_debugfs_register() 41 intel_guc_log_debugfs_register(&guc->log, root); in intel_guc_debugfs_register()
|
D | intel_guc_log.c | 24 static int guc_action_flush_log_complete(struct intel_guc *guc) in guc_action_flush_log_complete() argument 30 return intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_flush_log_complete() 33 static int guc_action_flush_log(struct intel_guc *guc) in guc_action_flush_log() argument 40 return intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_flush_log() 43 static int guc_action_control_log(struct intel_guc *guc, bool enable, in guc_action_control_log() argument 55 return intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_control_log() 364 struct intel_guc *guc = log_to_guc(log); in guc_log_relay_create() local 365 struct drm_i915_private *dev_priv = guc_to_gt(guc)->i915; in guc_log_relay_create() 411 struct intel_guc *guc = log_to_guc(log); in guc_log_capture_logs() local 412 struct drm_i915_private *dev_priv = guc_to_gt(guc)->i915; in guc_log_capture_logs() [all …]
|
D | intel_guc_fw.c | 119 int intel_guc_fw_upload(struct intel_guc *guc) in intel_guc_fw_upload() argument 121 struct intel_gt *gt = guc_to_gt(guc); in intel_guc_fw_upload() 132 guc_xfer_rsa(&guc->fw, uncore); in intel_guc_fw_upload() 138 ret = intel_uc_fw_upload(&guc->fw, 0x2000, UOS_MOVE); in intel_guc_fw_upload() 146 intel_uc_fw_change_status(&guc->fw, INTEL_UC_FIRMWARE_RUNNING); in intel_guc_fw_upload() 150 intel_uc_fw_change_status(&guc->fw, INTEL_UC_FIRMWARE_FAIL); in intel_guc_fw_upload()
|
D | intel_huc.c | 60 struct intel_guc *guc = >->uc.guc; in intel_huc_rsa_data_create() local 81 vma = intel_guc_allocate_vma(guc, PAGE_SIZE); in intel_huc_rsa_data_create() 157 struct intel_guc *guc = >->uc.guc; in intel_huc_auth() local 169 ret = intel_guc_auth_huc(guc, in intel_huc_auth() 170 intel_guc_ggtt_offset(guc, huc->rsa_data)); in intel_huc_auth()
|
D | intel_guc_ads.h | 11 int intel_guc_ads_create(struct intel_guc *guc); 12 void intel_guc_ads_destroy(struct intel_guc *guc); 13 void intel_guc_ads_reset(struct intel_guc *guc);
|
D | intel_guc_ct.c | 98 static int guc_action_register_ct_buffer(struct intel_guc *guc, in guc_action_register_ct_buffer() argument 110 return intel_guc_send_mmio(guc, action, ARRAY_SIZE(action), NULL, 0); in guc_action_register_ct_buffer() 123 static int guc_action_deregister_ct_buffer(struct intel_guc *guc, u32 type) in guc_action_deregister_ct_buffer() argument 132 return intel_guc_send_mmio(guc, action, ARRAY_SIZE(action), NULL, 0); in guc_action_deregister_ct_buffer() 155 struct intel_guc *guc = ct_to_guc(ct); in intel_guc_ct_init() local 184 err = intel_guc_allocate_and_map_vma(guc, PAGE_SIZE, &ct->vma, &blob); in intel_guc_ct_init() 190 CT_DEBUG(ct, "vma base=%#x\n", intel_guc_ggtt_offset(guc, ct->vma)); in intel_guc_ct_init() 223 struct intel_guc *guc = ct_to_guc(ct); in intel_guc_ct_enable() local 232 base = intel_guc_ggtt_offset(guc, ct->vma); in intel_guc_ct_enable() 276 struct intel_guc *guc = ct_to_guc(ct); in intel_guc_ct_disable() local [all …]
|
D | intel_uc.h | 28 struct intel_guc guc; member 77 uc_state_checkers(guc, guc); 79 uc_state_checkers(guc, guc_submission);
|
D | intel_guc_fw.h | 11 int intel_guc_fw_upload(struct intel_guc *guc);
|
D | intel_guc_debugfs.h | 12 void intel_guc_debugfs_register(struct intel_guc *guc, struct dentry *root);
|
D | intel_uc_debugfs.c | 57 intel_guc_debugfs_register(&uc->guc, root); in intel_uc_debugfs_register()
|
D | intel_uc_fw.c | 18 return container_of(uc_fw, struct intel_gt, uc.guc.fw); in ____uc_fw_to_gt()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | intel_wopcm.c | 224 u32 guc_fw_size = intel_uc_fw_get_upload_size(>->uc.guc.fw); in intel_wopcm_init() 234 GEM_BUG_ON(wopcm->guc.base); in intel_wopcm_init() 235 GEM_BUG_ON(wopcm->guc.size); in intel_wopcm_init() 272 wopcm->guc.base = guc_wopcm_base; in intel_wopcm_init() 273 wopcm->guc.size = guc_wopcm_size; in intel_wopcm_init() 274 GEM_BUG_ON(!wopcm->guc.base); in intel_wopcm_init() 275 GEM_BUG_ON(!wopcm->guc.size); in intel_wopcm_init()
|
D | intel_wopcm.h | 24 } guc; member 39 return wopcm->guc.base; in intel_wopcm_guc_base() 54 return wopcm->guc.size; in intel_wopcm_guc_size()
|
D | i915_gpu_error.c | 1500 memcpy(&error_uc->guc_fw, &uc->guc.fw, sizeof(uc->guc.fw)); in gt_record_uc() 1507 error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL); in gt_record_uc() 1511 uc->guc.log.vma, "GuC log buffer", in gt_record_uc()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gt.h | 27 static inline struct intel_gt *guc_to_gt(struct intel_guc *guc) in guc_to_gt() argument 29 return container_of(guc, struct intel_gt, uc.guc); in guc_to_gt()
|
D | intel_gt_irq.c | 17 static void guc_irq_handler(struct intel_guc *guc, u16 iir) in guc_irq_handler() argument 20 intel_guc_to_host_event_handler(guc); in guc_irq_handler() 104 return guc_irq_handler(>->uc.guc, iir); in gen11_other_irq_handler() 359 guc_irq_handler(>->uc.guc, iir >> 16); in gen8_gt_irq_handler()
|
D | intel_reset.c | 1169 ret = intel_guc_reset_engine(&engine->gt->uc.guc, engine); in intel_engine_reset()
|