Lines Matching refs:guc

42 	struct intel_guc *guc = log_to_guc(log);  in _guc_log_init_sizes()  local
85 guc_err(guc, "Mis-aligned log %s size: 0x%X vs 0x%X!\n", in _guc_log_init_sizes()
90 guc_err(guc, "Zero log %s size!\n", sections[i].name); in _guc_log_init_sizes()
98 guc_err(guc, "log %s size too large: %d vs %d!\n", in _guc_log_init_sizes()
105 guc_err(guc, "Unit mismatch for crash and debug sections: %d vs %d!\n", in _guc_log_init_sizes()
182 static int guc_action_flush_log_complete(struct intel_guc *guc) in guc_action_flush_log_complete() argument
189 return intel_guc_send_nb(guc, action, ARRAY_SIZE(action), 0); in guc_action_flush_log_complete()
192 static int guc_action_flush_log(struct intel_guc *guc) in guc_action_flush_log() argument
199 return intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_flush_log()
202 static int guc_action_control_log(struct intel_guc *guc, bool enable, in guc_action_control_log() argument
214 return intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_control_log()
376 struct intel_guc *guc = log_to_guc(log); in _guc_log_copy_debuglogs_for_relay() local
386 if (guc_WARN_ON(guc, !intel_guc_log_relay_created(log))) in _guc_log_copy_debuglogs_for_relay()
401 guc_err_ratelimited(guc, "no sub-buffer to copy general logs\n"); in _guc_log_copy_debuglogs_for_relay()
454 guc_err(guc, "invalid log buffer state\n"); in _guc_log_copy_debuglogs_for_relay()
522 struct intel_guc *guc = log_to_guc(log); in guc_log_relay_create() local
523 struct drm_i915_private *i915 = guc_to_i915(guc); in guc_log_relay_create()
545 if (!guc->dbgfs_node) in guc_log_relay_create()
549 guc->dbgfs_node, in guc_log_relay_create()
553 guc_err(guc, "Couldn't create relay channel for logging\n"); in guc_log_relay_create()
575 struct intel_guc *guc = log_to_guc(log); in guc_log_copy_debuglogs_for_relay() local
576 struct drm_i915_private *i915 = guc_to_i915(guc); in guc_log_copy_debuglogs_for_relay()
586 guc_action_flush_log_complete(guc); in guc_log_copy_debuglogs_for_relay()
591 struct intel_guc *guc = log_to_guc(log); in __get_default_log_level() local
592 struct drm_i915_private *i915 = guc_to_i915(guc); in __get_default_log_level()
602 guc_warn(guc, "Log verbosity param out of range: %d > %d!\n", in __get_default_log_level()
616 struct intel_guc *guc = log_to_guc(log); in intel_guc_log_create() local
626 vma = intel_guc_allocate_vma(guc, guc_log_size); in intel_guc_log_create()
646 guc_dbg(guc, "guc_log_level=%d (%s, verbose:%s, verbosity:%d)\n", in intel_guc_log_create()
654 guc_err(guc, "Failed to allocate or map log buffer %pe\n", ERR_PTR(ret)); in intel_guc_log_create()
666 struct intel_guc *guc = log_to_guc(log); in intel_guc_log_set_level() local
667 struct drm_i915_private *i915 = guc_to_i915(guc); in intel_guc_log_set_level()
687 ret = guc_action_control_log(guc, in intel_guc_log_set_level()
692 guc_dbg(guc, "guc_log_control action failed %pe\n", ERR_PTR(ret)); in intel_guc_log_set_level()
772 struct intel_guc *guc = log_to_guc(log); in intel_guc_log_relay_flush() local
784 with_intel_runtime_pm(guc_to_gt(guc)->uncore->rpm, wakeref) in intel_guc_log_relay_flush()
785 guc_action_flush_log(guc); in intel_guc_log_relay_flush()
798 struct intel_guc *guc = log_to_guc(log); in guc_log_relay_stop() local
799 struct drm_i915_private *i915 = guc_to_i915(guc); in guc_log_relay_stop()
884 struct intel_guc *guc = log_to_guc(log); in intel_guc_log_dump() local
885 struct intel_uc *uc = container_of(guc, struct intel_uc, guc); in intel_guc_log_dump()
891 if (!intel_guc_is_supported(guc)) in intel_guc_log_dump()
896 else if (guc->log.vma) in intel_guc_log_dump()
897 obj = guc->log.vma->obj; in intel_guc_log_dump()
906 intel_guc_dump_time_info(guc, p); in intel_guc_log_dump()
910 guc_dbg(guc, "Failed to pin log object: %pe\n", map); in intel_guc_log_dump()